Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

  1.  permalink
    Hello there,
    I am very new to CSS, and could use some help with the layout of a site I just made. I ended up having to use a table for the content, which I know is not the best solution. Now I have to center the table within a main wrapper, and can not figure out how to do it. I tried using a div align center tag for the table, but in IE6 & 7 it centered the text within the table also (over riding the CSS). Is there a way to center the table within the white background?

    The site is http://www.riverstonehomesny.com
    -to see the CSS: http://www.riverstonehomesny.com/styles.css

    Also, can anyone give me a general approach for getting rid of the table and using columns in CSS?
    • CommentAuthorlasconici
    • CommentTimeMay 7th 2008
     permalink
    Is not so hard to do this. You could put insted of the <table>, <div id="content"> in there you will have to columns <div class="col_left"> and <div class="col_right".
    For .col_left{ float: left;} and .col_right {float: right;}
    Inside them you can put you content like you have in the table. You have to be more carefully because you have o lot of clases and is not just fine.
    I hope that you understand me because i don't know english to well.
    • CommentAuthorarvana
    • CommentTimeMay 7th 2008
     permalink
Add your comments
    Username Password
  • Format comments as (Help)