WordPress.org

Ready to get started?Download WordPress

Forums

highligts in a nav bar (7 posts)

  1. stchatterbox
    Member
    Posted 9 years ago #

    well, I've played around with the codes and used liewcf's code without much success with the highlighting [although his bar looks super cool]

    then i went to codex and followed the instructions, and succeeded making my own nav bar.

    but the problem is with the highlighting.
    what i mean by that is for example, i have 3 pages, when i click to the 1st page, the link to 1st page is red, when clicked to 2nd page, the 2nd page is red....and so on.

    I want mine to be highlight in RED too!

    Now, this is the code for my nav bar. can anyone tell me how to make it highlighted in the current page? [hope you get what i'm saying :)]

    <style type="text/css" media="screen">
    #navmenu ul {margin: 0; padding: 0;
    list-style-type: none; list-style-image: none; }

    #navmenu li {display: inline; }

    #navmenu ul li a {text-decoration:none; margin: 4px;
    padding: 5px 20px 5px 20px; color: #63AAE7;
    background: white;
    -moz-border-radius-topright: 6px;
    -moz-border-radius-topleft: 6px;}

    #navmenu ul li a:hover {color: white;
    background: #63AAE7;
    -moz-border-radius-topright: 6px;
    -moz-border-radius-topleft: 6px;}

    </style>

    <div id="navmenu">

    <code><ul>
    <li><a>">Home</a></li>
    <li><a href="http://www.sv.formulx.com/blog/?page_id=19">Old Blahs</a></li>
    <li><a href="http://sv.formulx.com/blog/lazy-index.php/">Gallery</a></li>
    </ul></code>
    </div>

  2. moshu
    Member
    Posted 9 years ago #

  3. stchatterbox
    Member
    Posted 9 years ago #

    yup, i have followed the rules in both the codex in dynamic menu and horizontal, but can't figure out why it isn't working...

    or just, simply would appreciate if you could tell me where to insert the code and what code to inert. thanks very much.

  4. moshu
    Member
    Posted 9 years ago #

    Unfortunately my English is not that eloquent as the Codex article, so you are better off if you really read that piece very carefully till the end. You'll find all the answers to your questions. But you have to read the whole article...

  5. stchatterbox
    Member
    Posted 9 years ago #

    yup, i had, but i think the problem lies within my lack of knowledge in css stuffs.....

    if the highlighing is successful, i think more or less my blog layout is done.

  6. moshu
    Member
    Posted 9 years ago #

    Even if you have no idea what css is... you just have to copy/paste from the Codex page I've linked.

  7. stchatterbox
    Member
    Posted 9 years ago #

    yup, i had....haha, but it didn't work, perhaps i put it in a wrong location or whatever, and my aim putting the whole code i use for my present nav bar is to let you know what i did, and where to insert that highlighting code.

Topic Closed

This topic has been closed to new replies.

About this Topic