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.

    http://www.dse33.com/Tests
    http://www.dse33.com/Tests/style.css

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

    Thanks!
    Vernontheiii

    # 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.

*May or may not contain any actual "CSS" or "Tricks".