Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS centering an absolutely positioned area

Status
Not open for further replies.

Graeme06

Technical User
Jun 6, 2006
60
Hi, I have a small problem. I have a floating frame (by frame I just mean an "id" specified area) that goes over top of everything else, so because of this I had to put position:absolute;. Now this cancels out the other propery, margin: 0 auto; that is supposed to automatically center the floating frame.

Is there any way to keep the absolute positioning and have the frame automatically center without knowing the persons resolution in advance (and the floating frame is a set 1000px no matter what the resolution)?

Thanks,
Grame
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top