Grow your CSS skills. Land your dream job.

Works in IE but not Firefox – Header and Nav Align (SOLVED)

  • # January 23, 2009 at 10:13 am

    So I am an admitted noob to all this but thought I had followed everything the way I should, however on the site I am building I can not get the nav bar and header to align properly to the center. The header works just fine but the nav bar does not while it is wrapped in the main div as well. It appears to be fine in IE7 but not Firefox and can not figure it out worth a darn. Any help would be much appreciated.

    http://feelinganxiouspr.com/site/testing/

    Thanks.

    Rob
    # January 23, 2009 at 12:27 pm

    add

    padding:0;

    to your ul#nav (or your * selector at the start of your style sheet)

    its probably picking up a default padding from the browser because at the top your universal selector " * " has only reset the margin and not the padding :)

    # January 23, 2009 at 3:17 pm

    Thanks Rob, worked like a charm, such a simple thing driving me nuts! Appreciate it!

    Rob
    # January 23, 2009 at 6:41 pm
    "emtowns" wrote:
    Thanks Rob, worked like a charm, such a simple thing driving me nuts! Appreciate it!

    No worries :) funny its always the simple things too – its amazing how a fresh pair of eyes can help :)

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

You must be logged in to reply to this topic.

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