Get a free trial // Grow your CSS skills // Land your dream job

Problem with main nav

  • # September 12, 2008 at 4:56 pm

    So i was going through one of the video tuts and i was following along and am having some difficulties.

    Now keep in mind I was just messing around seeing if i could get it to work.

    Why wont the buttons go side-by-side horizontally instead of vertically.


    # September 12, 2008 at 6:01 pm

    The anchor elements don’t have any width set on them, but they are set to display block. When you make an element display: block;, it defaults to 100% wide. What you’ll need to do is FLOAT those anchor elements to the left and then set a WIDTH on them (the width of the images you created).

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

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed