Problem with rendering of css

Weird! Using the Darie/Barnett book, everything good apart from one css rule not rendering. The weird thing is, all the other rules in that particular style definition do render correctly! The instance is on p.456 of the book (3rd edn, 2008) for the .gridheader class. Colour and font-weight are OK, but the text is still centred, not left-aligned. Here’s a copy of the style definition:

.gridheader
{text-align:left; background-color: #ADDE86;font-weight: bold;}

There must be something else that has text-align:center that would have a higher level of specificity to it. Just because you’ve tagged something with a class doesn’t mean it’s not going to get overridden with a more generic css identifier. I like this infographic which shows how specificity can be identified.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.