CSS replacement for actual table (4 posts)

  1. major
    Posted 11 years ago #

    Ok, I think I've pretty much got css layout sussed, but ran into a problem today and my brain is fried as it is. I want to layout an actual table in css (ie. one you would use in a word document, not a layout table).
    Written in html the table could appear like this:
    <table border="1">
    <td>Period 1</td>
    <td rowspan="2">Learn CSS</td>
    <td>Learn HTML</td>
    <td>Learn XHTML</td>
    <td>Learn to read</td>
    <td>Learn to write</td>
    <td>Period 2</td>
    <td>Learn to ride</td>
    <td>learn to drive</td>
    <td>Write a book</td>
    <td>Drive a Car</td>
    what's the easiest way to lay this out using css - it's the rowspan giving my the headache. it's been a long day.

  2. OperaManiac
    Posted 11 years ago #

    tabular data stays in tables. that would be what css gurus say. what u represented here is not a layout. if its really a table, use a table.

  3. moisie
    Posted 11 years ago #

    Designing without tables does not mean doing away with them entirely, it's all about only using them where appropriate - where you are displaying tabular data.
    css does not replace html, it's used to style it. If your html happens to have a table in it then you use css to style it the same as you would style anything else.

  4. divrom
    Posted 11 years ago #

    I wante to say something clever, but - yeah, what those guys said. :o)

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.