CSS Trouble

Discussion in 'HTML' started by PRESENT321, Aug 31, 2006.

  1. PRESENT321

    PRESENT321 Guest

    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.

    Any ideas how to fix this?

    PRESENT321, Aug 31, 2006
    1. Advertisements

  2. What is the purpose of the #wrapper?

    I removed the:

    #wrapper {
    position:relative; <-- this

    and the problem went away.

    You'll want to take a look at the rest of the errors, as well.
    Beauregard T. Shagnasty, Aug 31, 2006
    1. Advertisements

  3. PRESENT321

    Paul Watt Guest

    Have you tried (without me looking at your code, too lazy!);
    body {margin:0;


    le singe est dans l'arbre
    Paul Watt, Aug 31, 2006
  4. PRESENT321

    PRESENT321 Guest

    PRESENT321, Aug 31, 2006
  5. PRESENT321

    PRESENT321 Guest

    Nope, that's not it.

    PRESENT321, Aug 31, 2006
  6. 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:


    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


    Fix your markup and then come back and we may be able to spot your trouble.
    Jonathan N. Little, Aug 31, 2006
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.