• Resolved pavlos1982

    (@pavlos1982)


    im trying to add a css navigation to my wordpress header and im having problems with it , it wont display correctly

    in my header.php the code is:

    <div id=”menu”>

    <?php wp_list_pages(‘sort_column=menu_order&title_li=’); ?>
    </div>

    and in the style.css:

    .menu {
    padding:0;
    margin:0;
    list-style-type:none;
    white-space:nowrap;
    }
    .menu li {
    float:left;
    min-width:100px;
    }
    .menu a {
    position:relative;
    display:block;
    text-decoration:none;
    min-width:100px;
    float:left;
    }
    * html .menu a {
    width:100px;
    }
    .menu a span {
    display:block;
    color:#000;
    background:#c4c4c4;
    border:1px solid #fff;
    border-width:2px 1px;
    text-align:center;
    padding:4px 16px;
    cursor:pointer;
    }
    * html .menu a span {
    width:100px;
    cursor:hand;
    w\idth:66px;
    }
    .menu a b {
    display:block;
    border-bottom:2px solid #06a;
    }
    .menu a em {
    display:none;
    }
    .menu a:hover {
    background:#fff;
    }
    .menu a:hover span {
    color:#fff;
    background:#08c;
    }
    .menu a:hover em {
    display:block;
    overflow:hidden;
    border:6px solid #06a;
    border-color:#06a #fff;
    border-width:6px 6px 0 6px;
    position:absolute;
    left:50%;
    margin-left:-6px;
    }

    anybody can help me out?? what im i doing wrong there , or how i can get my navigation to be displayed correctly with the rules i have set for it in css??? help

Viewing 2 replies - 1 through 2 (of 2 total)
  • it wont display correctly

    how does it display?
    without seeing what your nav does, it is virtually impossible to comment.

    can you give a link to your site?

    Thread Starter pavlos1982

    (@pavlos1982)

    i manage to sort it out , sorry took a while to get back here been very busy , here is the link https://webdeveloper.byethost11.com/, before the css id for the nav and the div id was different and i think that was what making it display incorectly and the style was nt applied properly

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘css navigation issue’ is closed to new replies.