Results 1 to 5 of 5

Thread: divs going under divs problem

  1. #1
    Join Date
    Jun 2007
    Posts
    18
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default divs going under divs problem

    http://www.powered-designs.com/ethan/test.html

    The title and content divs are going behind the divs when they sould go under the divs I am guessing its coz of the css that this is happening ...

    here is the image version so u can see how it sould look
    http://www.powered-designs.com/ethan/jpg.jpg

    also the boder on the topnav is not working please help ...

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Just this:

    Code:
    #title{
    width: 790px;
    height: 20px;
    margin-left: 30px;
    margin-right: 30px;
    margin-top:20px;
    background-color: #FF0066;
    color: #FFFFFF;
    clear:both;
    }
    will help a lot, it may be all you need. The floated content above the title section takes up no layout height until cleared.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jun 2007
    Posts
    18
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    omg nice it worked

    but the border on the nav is still not working how do I fix that?

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    OK, there is a portion of your styles that won't do anything, here:

    Code:
    topnav{
    width: 850px;
    height: 31px;
    border-bottom-color: #ff0066;
    border-bottom: 1px solid;
    }
    It should be:

    Code:
    #topnav {
    width: 850px;
    height: 31px;
    border-bottom: 1px solid #ff0066;
    }
    And I think you will like this addition here:

    Code:
    #topnav a:link {
    	margin-left: 30px;
    	color: #FFFFFF;
    	text-decoration: none;
    	vertical-align: -5px;
    }
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Jun 2007
    Posts
    18
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    :O

    I feel stupid for over looking such a simple mistake .. yay everything is working now .. Thanks a lot

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
  •