Re: CSS Trouble



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:

#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

Have you tried (without me looking at your code, too lazy!);
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
.



Relevant Pages

  • Re: XMLDoc.Load problem
    ... If you want to parse HTML and not XML then google for HTML agility pack ... error when the XML file is wrong (unended tag, missing start tag, missing "" from attribute ...), like IE Developer Toolbar or just a simple Browser? ... XML is _not_ HTML tag soup where browsers try to fix your markup errors and try to guess how the document structure is meant to look. ...
    (microsoft.public.dotnet.xml)
  • Re: is anyone here going to help me??? does anyone here know anything at all???
    ... :>: the simple fix. ... I specifically requested HTML ubergeeks only in these threads. ... debugged the entire BIOS for both operating systems. ... like you and Patti Beetles talking down like you know more about computers ...
    (rec.gambling.poker)
  • Calling all Internet and HTML Ubergeeks
    ... I have easily spent 24 hours trying to fix the problems, ... "I don't think you supposed HTML ubergeeks know the first fucking thing ... My third post on will be titled "Broken Ramashiva Rules Template". ... I could eventually find and fix the problemmyself, but I am an HTML ...
    (rec.gambling.poker)
  • Re: Chez Watt Re: Atheists support evolution because evolution
    ... enriched this group when s/he wrote: ... The king then asks where the man's job is, ... Please note that due to your continued refusal to fix your ... This is nothing to do with HTML. ...
    (talk.origins)
  • Re: [Full-Disclosure] Exploits in websites due to buggy input validation where mozilla is at fault a
    ... It wouldn't affect too many products to fix this. ... When you're repairing a script tag, close the tag at the first ... Seth Alan Woolley, ...
    (Full-Disclosure)