I'm busy editing my site from HTML to XHTML but I've run into a problem. I was using CSS in the head section, with class selectors to make my table rows alternate colours: td,pre,p{font-size: 13px; font-family: verdana;} td{line-height: 20px;} .tp{color:#0000FF; font-weight: bold;} .rb{background:#FFFFFF} .ry{background:#F0F0F0} It looked fine until I changed the DOCTYPE to XHTML - then for some reason only one table on my page (the one with the alternate colours) seemed to become double spaced. Anyone have any ideas why this might have happened? You can see the source at mrquicker.com
I took the DOCTYPE out because it was causing these problems with the layout of my page. The layout as it appears now is how I want it to be, but when I put the XHTML DOCTYPE in (which I copied from w3schools) it doubles the line spacing in the second table.... Any ideas?
I understand that. The problem, though, is that when I put the XHTML DOCTYPE declaration in there, the formatting on one of the tables on my page changes.....! I don't understand why this is happening...
well if you had left the doctype in when you posted so we could see i could help but you took it out so i cant be bothered to pretend its there
You didn't have a doctype at all so you were in quirks mode. When you entered the xhtml doctype, you went into standards mode and that's why everything moved around.