![]() |
Centering "tables" and columns with css
Anyone know how to center a "table" of two columns using CSS? When I redesigned theredcherry, all the category pages are tableless and optimized for 1024 resolution. But in the bigger resolutions, it is all crammed to the left.
I used this: Code:
/* --- LEFT SIDE BAR --- */ This is the first big project I did almost completely tableless, so I'm still learning. |huh |
What I'd do is create a container for the two other divs. on that container that holds the two divs you do a margin auto for the left and right sides.
So if your container is XYZ pxs wide... then it will auto adjust the margins on the side so it will be centered. |
Heh that worked, thanks. Now I just have to add the code to all the pages. |bananna|
|
Hi RedCherry, saw the pm reply but see bDok beat me to it :)
|
All times are GMT -4. The time now is 05:38 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc