Results 1 to 6 of 6

Thread: Help with a styling issue Smooth Navigational Menu

  1. #1
    Join Date
    Dec 2008
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Help with a styling issue Smooth Navigational Menu

    Hi all, I've installed the very excellent Smooth Navigational Menu but would like to make a few modifications but my CSS skills aree not good enoughg. I would like to change the menu backgrounds and background on mouse over to an image. I would also like to have the last top level meny item to have a different default image (a stand out colour) on default. I would appreciate any advice. Cheers

  2. #2
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    Go to ddsmoothmenu.css.

    If you read the code, it was well explained.

    If you would like to change the background of the top level menu, it's this part:
    Code:
    /*Top level menu link items style*/
    .ddsmoothmenu ul li a{
    display: block;
    background: #414141; /*background of menu items (default state)*/
    color: white;
    padding: 8px 10px;
    border-right: 1px solid #778;
    color: #2d2b2b;
    text-decoration: none;
    }
    ...you can change highlighted to any color of your desire.

    If you intend to replace it with an image, do it like this:
    Code:
    background: #414141 url('bg.gif');; /*background of menu items (default state)*/
    For the hover state background, it's this part:
    Code:
    .ddsmoothmenu ul li a:hover{
    background: black; /*background of menu items during onmouseover (hover state)*/
    color: white;
    }
    Hope that helps.
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  3. The Following User Says Thank You to rangana For This Useful Post:

    jasonmullee (12-12-2008)

  4. #3
    Join Date
    Dec 2008
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    thanks for the reply.

    I understand how to change the colour for both states, my CSS is good enough for that.

    My question was:

    1. how to change the background states of the tabs to an image
    2. how to have the last tab (to the right hand side) in its default state a different image (and colour) to the other tabs.

    Hope this helps clarify my question and demonstarte my reading ability.

    Thanks.

  5. #4
    Join Date
    Dec 2008
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    I tried the image change for the tab it works fine with a repeat-x thanks.

    So how can i define the last tab as a different image to the others in the default state, i tried different html tags <b> <i> <dd> <dt> to allow the definition of a further CSS state but it messes up the tab format???

    eg.


    /*Top level menu link items style*/
    .ddsmoothmenu ul li a b{
    display: block;
    background: #414141; /*background of menu items (default state)*/
    color: white;
    padding: 8px 10px;
    border-right: 1px solid #778;
    color: #2d2b2b;
    text-decoration: none;
    }

    and the menu code to:

    <li><a href="#"><b>Offertas</b></a></li>

    Thanks again in advance.

  6. #5
    Join Date
    Dec 2008
    Posts
    3
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Ditto on the last tab color/img change. I'm stuck as well. I tried everything I could think of html wise to make that last li have a diff bgcolor and think the JS won't let it. Anyone have a answer?

    Also, related to breaking that last tab away... Guess if there were some way to make a seperate class for one tab I could strip away the "border-right" as well since it looks pretty stupid with nothing to the right of it.



    ....help?

  7. #6
    Join Date
    Jan 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Similar Problem with changing styles.....

    Has anyone found a solution to either of these? I want to change the color of the submenu choices, and have the main links use a x-repeated 1px gradient image instead of a hex color....I know how to do the bg image, but I cant seem to figure out how to change the css file to give me a different color for the submenus........I came close, but no cigar...sometimes it changes the submenu to transparant and sometimes it pads the submenu heavily with the color I want to change it to.....

    and that thing on the right needs to go too.....any help would be GREAT.



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
  •