Tag Archive: css

Jul 07

CSS is crap!

…not that I want to go back to straight HTML, because that's crap, but CSS is crap too. After pulling my hair out for a bit and wondering why my styles weren't applying I found this helpful article on CSS specificity. Here's the good part: Element, Pseudo Element: d = 1 – (0,0,0,1) Class, Pseudo …

Continue reading »

Dec 14

The order matters! Are you kidding me?

While carefully coding a web site template by hand I couldn't figure out why my "a:hover" selector wasn't working. I Googled it and came across this website that explains that order matters in CSS… Note: a:hover MUST come after a:link and a:visited in the CSS definition in order to be effective!! Note: a:active MUST come …

Continue reading »

Jan 21

Justification and Orphans with paragraphs displayed on the web

What do you know! You can fully justify text using CSS (text-align: justify). You can also control orphans (single words on a line at the end of a paragraph) by adding a <span> element and setting the white-space style to no-wrap (white-space: nowrap). Who knew! As a note, the Chicago Manual of Style is silent …

Continue reading »