How to convert this Table into DIv

Discussion in 'HTML & Website Design' started by unlisted80, Jun 18, 2009.

  1. #1
    can someone give me an example how to convert this table into DIV

    Thanks advance

     <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table>
    HTML:

     
    unlisted80, Jun 18, 2009 IP
  2. TechnoGeek

    TechnoGeek Peon

    Messages:
    258
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Here you have a tutorial on converting from tables to DIVs:

    CSS tutorial

    Good luck.
     
    TechnoGeek, Jun 18, 2009 IP
  3. unlisted80

    unlisted80 Peon

    Messages:
    644
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i am asking for DIV not CSS
     
    unlisted80, Jun 18, 2009 IP
  4. contentmatters

    contentmatters Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    In order to transfer a table to a div with the correct width's height's etc, you will need CSS to define the sizes you require. You can replace the table tags with div tags..pretty similar to what you have there but with <div></div>. But you have to define the size.
     
    contentmatters, Jun 19, 2009 IP
  5. bluebenz

    bluebenz Well-Known Member

    Messages:
    876
    Likes Received:
    9
    Best Answers:
    2
    Trophy Points:
    138
    #5
    yup, transforming a table to div is not simple.
    understanding css would be a 100% advantage..
     
    bluebenz, Jun 19, 2009 IP