1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

CSS can instead of html table?

Discussion in 'CSS' started by Adulu, Apr 5, 2011.

  1. #1
    I had heard that CSS can instead of html table?

    can you show me 2 rows 2 columns of CSS table?

    <table border="1" width="100%">
      <tr>
        <td width="50%"> </td>
        <td width="50%"> </td>
      </tr>
      <tr>
        <td width="50%"> </td>
        <td width="50%"> </td>
      </tr>
    </table>
    HTML:
    thank you
     
    Adulu, Apr 5, 2011 IP
  2. ApocalypseXL

    ApocalypseXL Notable Member

    Messages:
    6,095
    Likes Received:
    103
    Best Answers:
    5
    Trophy Points:
    240
    #2
    DIVs can act as a table cell . But they will still need to be contained and are impractical for holding data , oh and you still need the HTML .
     
    ApocalypseXL, Apr 5, 2011 IP
  3. Martin K

    Martin K Active Member

    Messages:
    262
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    <style type="text/css">
    div{
    border:1px solid #000;
    width:49%;
    height:100px;
    }
    .left{
    float:left;
    }
    .right{
    float:right;
    }
    .clear{
    clear:both;
    }
    </style>
    <div class="left"></div>
    <div class="right"></div>
    <p class="clear"></p>
    <div class="left"></div>
    <div class="right"></div>
     
    Martin K, Apr 5, 2011 IP