...

View Full Version : trying to position a div 375px left of center



bazz
03-14-2005, 07:03 PM
Hi, I have searched for this but did not find it.

I have a div that is 145px wide and I want to position it so that its left edge is 375px left of center.

I recall from a couple of years ago that you can tell it to center and then use negative measurements to shift it left. But I can't remember how.

#linksdiv {
margin : auto auto;
border-left : -375px;
}
doesn;t work and I though it would.

plz help;


bazz

_Aerospace_Eng_
03-14-2005, 08:01 PM
what about

#linksdiv {
margin-left:auto;
margin-right:auto;
position:relative;
left : -375px;
}

bazz
03-14-2005, 08:49 PM
Thanks, I'll try that

Bazz



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum