div nesting in Firefox

Discussion in 'Firefox' started by gpw, Sep 5, 2006.

  1. gpw

    gpw

    Joined:
    Sep 5, 2006
    Messages:
    1
    Hi
    Can anyone help?

    Following code works ok with IE6 and Opera but not with Firefox.

    I'm new to Firefox so apologies if it's a dumb question.

    Thanks

    Code:

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <title>
    menu
    </title>
    <style
    type="text/css">

    div#wrapper {
    width:800px;
    margin-left:auto;
    margin-right:auto;
    background:lightblue;
    }

    div#banner {
    width:100%;
    margin-left:auto;
    margin-right:auto;
    background:green;
    }

    div#header {
    float:left;
    width:auto;
    color:yellow;
    }

    div#logo {
    float:right;
    width:auto;
    color:yellow;
    }

    div#main {
    width: auto;
    color:blue;
    }

    </style>
    </head>
    <body>
    <div
    id="wrapper">
    <div
    id="banner">
    <div
    id="header">
    <h1>
    header
    </h1>
    </div>
    <div
    id="logo">
    <p>
    xxxxxxxxxxxxxxxxxxxxxxxxxxxx LOGO
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    </p>
    </div>
    </div>
    <div
    id="main">
    Main content block
    </div>
    </div>
    </body>
    </html>
    gpw, Sep 5, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Arne
    Replies:
    0
    Views:
    3,678
  2. David K

    group nesting

    David K, Dec 10, 2003, in forum: MCSE
    Replies:
    6
    Views:
    818
  3. Mike

    excel #DIV/0! ?

    Mike, Aug 18, 2003, in forum: Computer Support
    Replies:
    5
    Views:
    3,989
    Monsignor Larville Jones MD
    Aug 19, 2003
  4. ECLiPSE 2002

    Help with Div X5 format

    ECLiPSE 2002, Oct 23, 2003, in forum: Computer Support
    Replies:
    3
    Views:
    1,567
    ECLiPSE 2002
    Oct 25, 2003
  5. peace2007

    Display Banner in DIV control

    peace2007, Sep 25, 2007, in forum: Software
    Replies:
    0
    Views:
    597
    peace2007
    Sep 25, 2007
Loading...

Share This Page