It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming CSS Forum

Centering content...

Centering content...

Postby flashArtist on Sat Feb 10, 2007 4:50 am

I have a problem. This should be pretty easy for anybody to solve, cause I'm not very good with CSS.
I'm trying to center items on my page. Simple enough. For IE, i can apply text-align: center; to the body to center it. However, this doesn't work for Firefox. So I put in margin-left: auto; and margin-right:auto;. This solves it for both firefox and IE. HOWEVER, this means I cannot use position absolute for my content, meaning i can't use a z-index to put some objects on top of others, so my content is hidden by other objects. Is there some simple code to align my content horizontally in the center and somehow use the z-index?
flashArtist
 
Posts: 5
Joined: Wed Jan 31, 2007 11:46 pm

Postby flashArtist on Sat Feb 10, 2007 4:56 am

Anybody?!?! This shouldn't be too hard... I've seen it done everywhere!
flashArtist
 
Posts: 5
Joined: Wed Jan 31, 2007 11:46 pm

Postby ReFredzRate on Sat Feb 10, 2007 7:22 am

If it isn't too hard you'd have found out by yourself now, wouldn't you ;)

I have to be honest with you, I have been working on a design with content centered for a few years and then got off the idea, because I couldn't find out how it was supposed to be done.
ReFredzRate
1000+ Club
 


Who is online

Users browsing this forum: No registered users and 0 guests