Free Indeed Posted September 22, 2010 Share Posted September 22, 2010 I tried to switch this page over to strictly using CSS, but couldn't make it work, so I decided to use tables for overall layout and incorporate CSS in where I could. I'm having a lot of trouble with extra space appearing here and there though, as can be seen just under my "header bar". If I remove the CSS formatting from the "addybox" everything lines up right, so I assume something in my CSS for the "addybox" is screwing things up. However I have a break before the footer too. Can anyone see what I'm missing? Thanks.The page Link to comment Share on other sites More sharing options...
chibineku Posted September 22, 2010 Share Posted September 22, 2010 The first step is to check if your page validates - both as XHTML 1.1 and CSS. The CSS is fine, but there are a number of problems with the XHTML, the first being that there is an error in your doctype: Warning Mismatch between Public and System identifiers in the DOCTYPE declarationThis document uses an inconsistent DOCTYPE declaration. The Public Identifier -//W3C//DTD XHTML 1.0 Strict//EN declares the XHTML 1.0 Strict document type, but the associated System Identifier http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd does not match this document type.The recommended System Identifier for XHTML 1.0 Strict is http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd.Fixing that might sort out some of your problems, since with an invalid doctype the page will probably revert to quirks mode. Link to comment Share on other sites More sharing options...
Free Indeed Posted September 22, 2010 Author Share Posted September 22, 2010 I switched it to HTML 4.01 transitional and that took care of the spaces! I had to do a lot of editing to change the closed tags, but I got rid of most of the errors on validation. My Google custom search is still giving a couple of errors, but it seems to work and it's their code, so I think I'll leave it. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.