Re: CSS Trouble
- From: "Jonathan N. Little" <lws4art@xxxxxxxxxxxxx>
- Date: Thu, 31 Aug 2006 15:03:51 -0400
PRESENT321@xxxxxxxxx wrote:
Paul Watt wrote:<PRESENT321@xxxxxxxxx> wrote in message
news:1156990626.683274.184780@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On my site, I have this added as a temporary workaround:Have you tried (without me looking at your code, too lazy!);
#wrapper {
border:1px solid black;
}
If I take it off, in Firefox the whole site is offset about 10em from
the top of the page.
www.osbornewood.com
Any ideas how to fix this?
Matthew
body {margin:0;
padding:0;}
Nope, that's not it.
Matthew
Matthew as BTS suggested, fix your markup errors first. If you have errors and your are relying on the browser to 'guess' what you meant, how things display can be very unpredictable. Also each browser can 'guess' and come to a different conclusion compounding the problem! I can see quickly that you are using HTML but no DOCTYPE you should att this at the top:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
Next you have several places where you are using XHTML style closing for a tag, this is invalid for HTML so:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
should be:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Lastly you have some nesting errors and at least one paragraph where you have a closing '</p>' tag but was not opened.
Use the validator as BTS has shown you
http://validator.w3.org
Fix your markup and then come back and we may be able to spot your trouble.
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
.
- References:
- CSS Trouble
- From: PRESENT321
- CSS Trouble
- Prev by Date: Re: CSS Trouble
- Previous by thread: Re: CSS Trouble
- Next by thread: xhtml e-books
- Index(es):
Relevant Pages
|