Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: difference between<table> and <div>

  1. #11
    Join Date
    Mar 2010
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Can i insert a table in Div

    HI

    I have designed a page with div, now i need to put some text in this page that can be easily managed in table, can i add a table inside a div or i have to design whole page with table?
    I m using 1024px of widh but the page is scrolling on monitor from left / right what should be the size to maintain the screen without scrolling???

  2. #12
    Join Date
    Mar 2010
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Can i insert a table in Div

    I have designed a site on div, now i want to add a page with table, Can i insert a table in a Div or i have to design a seperate page with table?

  3. #13
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    You can insert a table inside a div. Make sure you declare the table properties correctly in the CSS to achieve the look you are after.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  4. #14
    Join Date
    Mar 2010
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    hi

    i have designed asite on div , can i insert table inside a div or i have to create a new page for tabular data

    should i give table id as i define div in css

    As i have created one css for whole site containing three pages with same div , but now i need a 4th page that should contain a table inside a div.
    for this purpose , shall i create a new css with table info or i will add in same style sheet that is attached
    Last edited by djr33; 03-27-2010 at 12:32 AM. Reason: Don't post more than once in a row-- just post once or use "edit"

  5. #15
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Add it to the same sheet. Unless you want multiple smaller css files. But adding css directions for ul and li, won't take up that much space.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  6. #16
    Join Date
    Jan 2010
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Regarding SEO view point, div based structure is better than table based structure to use. But it's your choice.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •