PDA

View Full Version : Why does this happend


moviemastersdk
03-30-2012, 12:21 PM
I've created a spry menu bar, which looks GREAT in the design view
http://i42.tinypic.com/20ihxyr.png

but as soon as i go into live view
it shifts about 20px or so to the right
http://i41.tinypic.com/2u5b76f.png

Heres the code
ul.MenuBarHorizontal
{
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 ?

gentleone
03-30-2012, 04: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.

moviemastersdk
03-31-2012, 11: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 :)