Hey! I am doing this for the first time, so forgive any mistakes.
I am currenyly doing the “building with bootstrap” lesson and couldn’t help wondering: is what I am currently doing “inline CSS”? As all the customisations seem to be done on the HTML page and not the external css one.
From the lesson overview page (can’t find the link!), the image of the 12-column grid included .col-span-3 class names. Since these are classes that Bootstrap gives CSS for, you assign the class and the CSS to make it span 3 columns happens.
It should work just the same as if you wrote the styling in your own CSS file for .col-span-3 {column-span: 3;} yourself, right? (My apologies for any syntax errors!)
I’m just a noob too, so same disclaimer here: I could be totally wrong.
If we’re assigning classes like ‘text-right’ and ‘row’, I expect these are also styled to match.
.text-right {
align-text: right;
}
/* and */
.row {
row-span: 100%; /* tho this one feels incorrect */
}
(These might need to be some grid ‘justify-item’ -type declaration in the parent container. I’m still struggling with CSS grids generally, tbf.)
I think it isn’t inline CSS since we’re not applying any styles in the HTML, we’re just applying class properties. These act like shorthand styling so it’s more like linking to a stylesheet (like regular CSS you write yourself) than adding style as a property?
Inline CSS would be: <div style="font-weight: bold;"> ... </div>
(<element style="property: value;"> is roughly correct! I checked with a coworker.)
Jumbotron can be used without a container but here in the lesson CC is making you style with it as the result is different and they are aiming for that outcome.
I was wondering the same thing. I think it’s confusing here because there is only that one <div> child, but in theory when building an actual website you might have a background image or something that you want to span the whole width of the webpage. Changing that <section> element to class="container" would limit its contents to only taking up the 12 columns.
I thought of it as the section is the whole jumbotron, the first container div is a 12-column-wide box within the jumbotron, and then the subsequent row div is the first line in that 12-column-wide box.
When using button classes on <a> elements that are used to trigger in-page functionality (like collapsing content), rather than linking to new pages or sections within the current page, these links should be given a role="button" to appropriately convey their purpose to assistive technologies such as screen readers.