...

View Full Version : center on ie and firefox



esthera
10-21-2007, 09:34 AM
i've had this issue before and went back to old threads but still having trouble.
iv'e tried many things and none seem to work on both ie and firefox.

please see http://www.awebfo ryou.com/j/

how can i center it to the middle in both ie and firefox

i need the div's under homemain to be able to be displayed relative to the position of homemain.

CaptainB
10-21-2007, 10:37 AM
Site is not avaible.

However, you just need to set a width on the div and then apply following:

margin-left:auto;
margin-right:auto;

(or margin:0 auto; )?

esthera
10-21-2007, 10:39 AM
i did that - please remove space from site link

div#homemain {
width: 727px;
height:781px;
margin-left:auto;
margin-right:auto;
background-color:#222d2d;
text-align:left;
padding: 0px;
background-image: url(images/jwebhome.jpg);
display:block;
position: absolute;
background-repeat: no-repeat;



}

Fang
10-21-2007, 10:58 AM
Change position: absolute; to position: relative;

Having all the layout divs position: absolute is no a good strategy.

esthera
10-21-2007, 11:28 AM
but then how do i put for example the search box in the exact spot that I want it on the top?

if it's relative it won't go to the right place.

Fang
10-21-2007, 12:47 PM
float:right; or position relative; right:0;



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum