Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorplynomo
    • CommentTimeMar 15th 2008 edited
     permalink
    I am new here if you have not already noticed. Here is mmy issue. I want mmy website split into thirds. The first part being the logo and navigation menu. The second part is the body split into four sections. The last part in the limo image with a contact form. Now as you can from my link how far I have gotten. http://www.metropolitanvip.com

    This is my first time developing html/css webpages. It has been a very long day! The part I am banging my head against is centering the body and spliting the limo and contact formm to merge next to each other. Can anyone provide the direction I need to go? You do not have to give me the full answer. If you point me in the right direction I can figure it out.

    I am using the reset style provided by man in blue and the following:

    #header {
    background: #000000;
    height: 150px;
    padding: 10px 0 10px 0;
    color: #FFFFFF;
    }

    body {
    background: #FFFFFF;
    font-family: sans-serif;
    font-size: 62.5%;
    margin: 0 auto;
    }

    h2 {
    font-size: 1.5em;
    padding: 0 0 10px 0;
    }

    img {
    padding: 0 0 5px 0;
    }

    #contentSpecialEvents, #contentCorporate, #contentAirport, #contentWedding {
    padding: 5px 5px 5px 5px;
    width: 200px;
    height: 500px;
    float: left;
    margin: 5px;
    text-align: justify;
    background: #FFDFBF;
    border: thin solid;
    border-top-color: #E5E5E5;
    border-right-color: #B2B2B2;
    border-bottom-color: #999999;
    border-left-color: #CCCCCC;
    }

    #contactForm {
    background: #FFC080;
    }

    #limo {
    position: fixed;
    bottom: 0;
    left: 0;
    background: #FFFFFF url('../images/imgLimo.png') no-repeat fixed left bottom;
    width: 600px;
    height: 150px;
    }

    #footer {
    background: #FF8000;
    position: absolute;
    bottom: 1%;
    height: 25px;
    }
    •  
      CommentAuthorthe.x.man
    • CommentTimeMar 16th 2008
     permalink
    Well, I cannot rebuild your page properly at the moment (until my main pc is back up and running), in order to properly check my suggestions before offering them, but...

    Firstly, if you were to add <div class="clearFloat"></div> (or whatever you would rather call it), place it immediately before <div id="contactFormm"> and include it in your css as:
    .clearFloat {
    clear: both;
    }

    - it should solve your 4 column issue. Although I would also suggest a width for <div id="content">, say about 850px or so, to stop <div id="contentWedding"> dropping down to beneath the others on a narrower screen than 1024px (ie, someone not running their browser full screen).

    for centering the entire page, you need to enclose everything currently inside your <body> tags in another div, and in your css-
    #wrapper {
    /* or whatever you wish to call it */
    text-align: left;
    margin: 0 auto;
    width: 850px;
    /* just for example */
    }
Add your comments
    Username Password
  • Format comments as (Help)