Results 1 to 2 of 2

Thread: Float?

  1. #1
    Join Date
    Feb 2012
    Posts
    33
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default Float?

    Hey, i'm using this css:

    Code:
    #top {
    background: url('images/content-top.gif');
    background-repeat: no-repeat;
    position: relative;
    left: 0%;
    top: 0%;
    z-index: -1;
    float: left;
    width: 481px;
    height: 22px;
    }
    
    #mid  {
    background: url('images/content-middle.gif');
    background-repeat: repeat-y;
    padding: 60px;
    float: left;
    width: 481px;
    margin: 0px;
    }
    
    #bot {
    background: url('images/content-bottom.gif');
    background-repeat: no-repeat;
    float: left;
    height: 23px;
    width: 481px;
    margin: 0px;
    }
    
    .home {
    background: url('images/nav-home.gif');
    z-index: 1;
    float: right;
    width: 129px;
    height: 39px;
    }
    
    .radio {
    
    }
    
    .extra {
    
    }
    
    .about {
    
    }
    However when the "home" image floats right, it leaves a massive gap:



    How can I stop this?

    Thanks

    ~ David

  2. #2
    Join Date
    Apr 2012
    Location
    Chester, Cheshire
    Posts
    329
    Thanks
    7
    Thanked 35 Times in 35 Posts

    Default

    Add clear: both; to #top

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •