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 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Mar 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Problem: Dashes between lists

    I'm trying to make a navigation bar and I made one id for the whole div but now I have dashes in between my list for some reason.




    here is the css and html code that is relevant.

    PHP Code:
    <div id="Navigationbar">
                    <
    ul>
                        <
    li id=><a href="?act=Home">Home</li>
                        <
    li id=><a href="?act=About">About us</li>
                        <
    li id=><a href="?act=Contact">Contact us</li>
                    </
    ul>
                </
    div
    PHP Code:
    #Navigationbar ul {
            
    margin:0px;
            
    padding:5px;
            list-
    style-type:none;
            
    text-align:center;
            
    background-color:#FFFFFF;
            
    font-familyArial;
            
    background-color:#F7F7F2;
    }

    #Navigationbar ul li {
            
    displayinline;
            
    border1px solid black;
            
    background-color#FDD017;
            
    padding:5px;
    }

    #Navigationbar ul li a {
            
    text-decoration:none;
    }

    #Navigationbar ul li a:hover {
            
    colorwhite;

    If someone has experienced this problem or knows the cause I would greatly appreciate your help!

  • #2
    Regular Coder
    Join Date
    Jul 2011
    Posts
    101
    Thanks
    7
    Thanked 6 Times in 6 Posts
    Do you have a live link that you could share? Easier to figure out the problem.

  • #3
    New to the CF scene
    Join Date
    Mar 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I actually resolved the problem I forgot the end tags on the links and also left empty ids.

  • #4
    New Coder
    Join Date
    Sep 2012
    Location
    USA
    Posts
    13
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Problem : Dashes between lists

    Hi ! I must tell you thanks for informing us that you solved your problem and which error made by you.

  • #5
    Senior Coder jerry62704's Avatar
    Join Date
    Oct 2007
    Location
    Springfield, IL
    Posts
    1,100
    Thanks
    13
    Thanked 87 Times in 87 Posts
    Note that while W3C CSS likes it, there are logic errors in your css.

    What color background do you want?
    .
    .
    ...and gladly would he learn and gladly teach

    Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls


  •  

    Posting Permissions

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