1

for some unknown reason, my navigation bar is shifted over to the right, on Firefox and also on Chrome. See https://i.stack.imgur.com/dskZy.png

And what's weird is that the issue doesn't arise on jsfiddle. See http://jsfiddle.net/bMAGX/

Any ideas? Thanks.

Dave2
  • 17
  • 3

3 Answers3

1

Are you using a CSS Reset? I'm guessing not. You should consider using one to help with issues like this.

I think you need this CSS to remove the default ul margin/padding:

#topmenu ul {
    margin: 0;
    padding: 0
}
Community
  • 1
  • 1
thirtydot
  • 224,678
  • 48
  • 389
  • 349
0

Perhaps because your DOCTYPE is malformed.

<!DOCTYPE html> should be one of the types defined here.

adarshr
  • 61,315
  • 23
  • 138
  • 167
0

You can add this to top of your CSS:

* { padding: 0; margin: 0;}
TNC
  • 5,388
  • 1
  • 26
  • 28
  • It's best to avoid the star selector if possible. Here, it's possible to use a CSS Reset instead of that. See: http://stackoverflow.com/questions/1714096/why-is-the-css-star-selector-considered-harmful – thirtydot Feb 22 '11 at 14:40