Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Horizontal Div List not staying inside of container

    Hi

    I have a #main div tag to affect the content part of my website. I am trying to create a horizontal list to display picture names inside the main. I created the list with the ul and il tags. The list was created fine but it doesn't appear inside the main content area, it appears below it. Here's the styles i created:

    #main{
    position:relative;
    margin-right:5px;
    margin-top: 10px;
    background-color: #FBC246;
    left:5px;
    top: -21px;
    padding-bottom:5px;
    }

    #main li{
    width: 13%;
    margin: 5px;
    padding: 5px;
    background-color: #353E49;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 14px;
    font-weight: bold;
    color: #FBC246;
    float:left;
    }

    #nav{
    overflow:hidden;
    background-color: #FBC246;

    }

    #main ul{
    margin:0px;
    display:inline;
    }

    Any idea of how to fix this problem? i'd really like to get it to work.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    We need to see your code, a link wouldn't hurt either. Can't do much from just a snippet of CSS.


  •  

    Posting Permissions

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