Jump to content
Free Indeed

random spaces

Recommended Posts

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

Share this post


Link to post
Share on other sites

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. Edited by chibineku

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...