In the DOM are node ids case sensititve?

Yes. It is case-sensitive. Attribute values are always case-sensitive. Different browsers seem to be doing different things though. Handling document.getElementById is different across browsers: Mozilla performs case-sensitive search. Internet Explorer: IE 8 and later performs case-sensitive search, while IE 7 and earlier performs case-insensitive search.

CSS for changing color of last word in h1

This is not possible with pure CSS. However you can use lettering.js to get a ::last-word selector. CSS-Tricks has an excelent article on this: CSS-Tricks: A call for nth-everything. You can then do the following: h1 { color: #f00; } /* EDIT: Needs lettering.js. Please read the complete post, * before downvoting. Instead vote up. … Read more

Center and bottom-align flex items

Below are five options for achieving this layout: CSS Positioning Flexbox with Invisible DOM Element Flexbox with Invisible Pseudo-Element Flexbox with flex: 1 CSS Grid Layout Method #1: CSS Positioning Properties Apply position: relative to the flex container. Apply position: absolute to the green flex item. Now the green square is absolutely positioned within the … Read more

Footer below content, but not floating mid-air if not enough content

If the height of the footer is unknown, it’s best to use flex, something in the lines of: <body> <header></header> <div class=”content”></div> <footer></footer> </body> And for CSS only this is needed: body { display: flex; min-height: 100vh; flex-direction: column; } .content { flex: 1; } And you don’t need to set display:flex to body, it … Read more