Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS HTML5 and divs now showing up correctly Re: HTML5 and divs now showing up correctly

#105819
TheDoc
Member

No problem. It’s just a tiny error in your code. You have:
#faculty-info .row-a { background: #e5e5e5;}
When it should be:
#faculty-info.row-a { background: #e5e5e5;}
Note the space that I’ve removed. You were looking for #faculty-info with a child element called .row-a. Mine is targeting any #faculty-info with a class of .row-a.

Speaking of IDs and classes, you should only be using an ID once per page. In your page, you’ve got a number of duplicates.