View Full Version : Why does this happend

03-30-2012, 11:21 AM
I've created a spry menu bar, which looks GREAT in the design view

but as soon as i go into live view
it shifts about 20px or so to the right

Heres the code
list-style-type: none;
font-size: 22px;
cursor: default;
font-family: 'Bangers', cursive;
color: #FFF;
width: 750;
height: 30px;
float: left;
margin-left: 74px;
margin-bottom: 0px;
margin-top: 8px;
padding: -1px;
the div tag containing it, has no margin or padding, but is aligned to the center
can someone tell me why ?

03-30-2012, 03:24 PM
fix the width value... it misses a unit... px in your case. Also a negative padding value (-1px) is not allowed and it doesn't make sense either.

03-31-2012, 10:23 AM
sometimes, you forget the simplest things in life...

and i really dont know why i thought -1px padding would fix it :D

thanks for the BIG help :)