Treehouse: Grow your CSS skills. Land your dream job.

help with dropdown menu

  • # March 14, 2012 at 11:20 pm

    I am working in wordpress trying to make a dropdown menu for my blog. I have it working and it looks okay but I don’t really like the css that runs it. The menu looks to wide in places for the link that is in it. I am trying to figure out how I can have the background of the menu just be as wide as the longest link with a few extra pixels for padding on the right and left. As it is right now, I have to set a width for the background. I have to do this I think because of the absolute positioning. Do you have any advice on the best way to code a dropdown menu?

    # March 15, 2012 at 1:11 am

    Howdy, Can you show us what you have so far in a jsfiddle
    That way we can see the direction you’re heading with it and nudge you along the way to success

    # March 15, 2012 at 1:18 am

    I am not using javascript. It is a menu being generated by WordPress using only css to manage the dropdown menu. I am using css to add an image in between the main nav. I just can’t post an example right now. So I guess it wouldn’t be that easy to help.

    # March 15, 2012 at 1:31 am

    You could always post a link to the blog you are working on…

    # March 15, 2012 at 7:51 pm

    Got it sorted. Thanks guys for your interest

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.