Webpage CSS problems

Soldato
Joined
6 Jun 2011
Posts
2,741
So I am creating a website and have a horizontal nav bar, it looks and works fine. However as soon as I add borders to the side of my buttons and zoom out on the page it actually moves the buttons.

Has anybody else had a problem with using the browser zoom function and it moving something on your page?

Thanks
 
Have you taken into account that the width will change when you add a border?

How have you defined the width? Fluid or Fixed?
 
Hello,

Thanks for your response, I have taken the border thickness into account. When I am not zoomed in it is fine. However I have not set fluid or fixed. What do these mean?

Thanks :)
 
Pixels:

div.menu a{

float: left;
text-decoration: none;
color: white;
text-align:center;
line-height:2.5em;

width:240px;
height: 40px;
background-color: #4F4F4F;
margin-bottom: 40px;

border-right-style:solid;
border-right-width:1px;
border-right-color: #000000;

}

Also have a border around the main div:

div#main{

background-color:#FFFFFF;
width:960px;
margin:0 auto;
padding-bottom: 750px;
border-style:solid;
border-width:1px;
border-color: #DBDBDB;
}
 
Back
Top Bottom