I currently have a page design that uses absolute positioning and z-indexing to set my background images. What I would like to do is create a table, containg the same layout my page has, that centers itself in the page. I believe this can be done using relative positioning. Any ideas how I would work this out?
A couple of things... first you're not specifying the units (i.e. px, etc..) in your CSS. Some browsers (any standards compliant browser, in fact) will ignore it because of this.
Second, what you want to do is not going to work as long as you're using acutal numbers for your positioning... You need to be using percentages in order for it to work with all browsers.
Other than that, I don't see a problem... Just position the table using CSS. Either that or, using percentages, get the images centered and let the table center itself using (this one'll blow you away, they actually programmed it right into the HTML language) align="center"
OK... I see that I am missing my px on the positioning.
Also let me clarify. The code above is not centered it is positioned absolutely. I want to change this. I want to center the content in a specific height and width to keep the images and their layout intact and unchanged.
Can I do this with or without a table using CSS?
To address the multiple classes being referenced. I have yet to read anywhere that says you can or cannot do this. I would like to become more informed. If you can reference multiple classes it saves time and coding. BTW I have only checked my page in IE5 but the CSS is working perfectly in that browser.
If we can ignore my code (the good the bad and the ugly) and if someone can tell me how to keep my content (text and images) centered in a page without changing the layout using CSS, then please help. Thank you.
PS I will validate the page once I am home. I still have a problem that I mentioned in an earlier post where the w3c.org doesn't display properly and the links do not work (page cannot be displayed error) I have yet to discover the cause for this either