I have a menubar with 6 items:


When I zoom in/out, the layout changes:
Why could this be happening?
CSS:
.menubar {
float:left;
width:920px;
background:url(../images/nav-back.png) top left repeat-x;
height:52px;
padding:9px 10px 8px 10px;
margin-bottom:32px;
}
.menubar ul {
float:left;
background:url(../images/nav-bg.gif) top left repeat-x;
width:100%;
display: block;
}
.menubar li { float:left; background:url(../images/depth.gif) top right no-repeat; }
.menubar li.last { background:none; }
.menubar li.first a { padding:16px 42px 16px 43px; }
.menubar li.last a { padding: 16px 43px 16px 44px; }
.menubar li a { padding:16px 18px; display: block; }
It’s because the part of code is in
percentsand another part in fixed size. But as there is no code in your question, i cant say how to improve it.