Welcome to the IMTalk - Internet Marketing & SEO Forum.
  • Login:
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 20 of 21

Thread: Tables VS DIV

  1. #1
    bluearrow's Avatar
    bluearrow is offline IM & SEO Chatty bluearrow is just really nice bluearrow is just really nice bluearrow is just really nice bluearrow is just really nice
    Join Date
    Feb 2011
    Location
    Mount Olympus
    Posts
    1,916
    Thanks Given
    118
    Thanked 356 Times in 262 Posts

    Tables VS DIV

    This question is for those who still make static web pages and layouts like my self. Do you still make table based web pages or you use DIV tags ?

    I'm a old schooler who is way too used to tables. But I'm trying to move to DIV tags.

  2. #2
    wink0r's Avatar
    wink0r is offline Moderator wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold
    Join Date
    Oct 2010
    Location
    East Coast, USA
    Posts
    2,183
    Thanks Given
    941
    Thanked 651 Times in 491 Posts
    Div based design has significant accessibility advantages if you are using any sort of multi-column layout. Tables are properly used for tabular data. A single column site like a sales letter may not suffer, but those using screen readers or other alternative browsers can have problems making sense of multi-column table based layouts.

    Div based layouts using proper semantic markup (h tags, p tags, and list tags) are likely to do better in the search engines, as well.

  3. #3
    bluearrow's Avatar
    bluearrow is offline IM & SEO Chatty bluearrow is just really nice bluearrow is just really nice bluearrow is just really nice bluearrow is just really nice
    Join Date
    Feb 2011
    Location
    Mount Olympus
    Posts
    1,916
    Thanks Given
    118
    Thanked 356 Times in 262 Posts
    Search engines probably prefer cleaner and higher codes. You can get whole page done lighter with DIV tags then Tables. Also most of Web 2.0 sites are made with DIV. It also speed up the site loading time.

    Couple of years ago I didn't want to move to DIV tags. But things have changed with time. DIV is the future of HTML I think.

  4. #4
    Nemanja's Avatar
    Nemanja is offline IMTalk.org Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute
    Join Date
    Jun 2010
    Location
    www
    Posts
    4,870
    Thanks Given
    703
    Thanked 3,044 Times in 1,247 Posts
    Always choose DIV instead of table, it may be harder to design that but it is better in may ways guys already wrote in above posts.

  5. #5
    wink0r's Avatar
    wink0r is offline Moderator wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold
    Join Date
    Oct 2010
    Location
    East Coast, USA
    Posts
    2,183
    Thanks Given
    941
    Thanked 651 Times in 491 Posts
    Once you learn the box model and css designing with divs is not so hard, especially since IE6 is falling out of the picture. The transition from designing with tables to designing with divs does have a learning curve, though.

    My first pages used table based layouts. When I put them up in the 'show your site' section of the web editor forum I got complaints about the table based layout so I started learning about div based layouts. Now working with a table based layout requires more thought than building the site with divs.

  6. #6
    bluearrow's Avatar
    bluearrow is offline IM & SEO Chatty bluearrow is just really nice bluearrow is just really nice bluearrow is just really nice bluearrow is just really nice
    Join Date
    Feb 2011
    Location
    Mount Olympus
    Posts
    1,916
    Thanks Given
    118
    Thanked 356 Times in 262 Posts
    Yeah Now I have grasp the theory so now I feel comfortable with it. HTML codes now looks clean and neat than with tables. Loads fast too. I still use table but less and less. There are still more to learn about these CSS layout design techniques.

  7. #7
    SocialArc is offline IM & SEO Small Talker SocialArc will become famous soon enough
    Join Date
    Feb 2011
    Location
    http://www.techdeer.com
    Posts
    592
    Thanks Given
    5
    Thanked 64 Times in 45 Posts
    Choose div instead of table, they are more clean and better.

  8. #8
    madhusmita is offline IM & SEO Whisperer madhusmita is on a distinguished road
    Join Date
    May 2011
    Posts
    46
    Thanks Given
    0
    Thanked 1 Time in 1 Post
    Using tables in the designing is becoming outdated now.Tables are more space consuming.So, they take more time for loading.Loading time is very important for the web designing.So, DIV tag is becoming more popular now.It works better than the tables.

  9. #9
    bluearrow's Avatar
    bluearrow is offline IM & SEO Chatty bluearrow is just really nice bluearrow is just really nice bluearrow is just really nice bluearrow is just really nice
    Join Date
    Feb 2011
    Location
    Mount Olympus
    Posts
    1,916
    Thanks Given
    118
    Thanked 356 Times in 262 Posts
    One problem have with DIV tag is centers problems.

  10. #10
    wink0r's Avatar
    wink0r is offline Moderator wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold
    Join Date
    Oct 2010
    Location
    East Coast, USA
    Posts
    2,183
    Thanks Given
    941
    Thanked 651 Times in 491 Posts
    One problem have with DIV tag is centers problems.
    I am not sure that I understand what problem you have, but layout should be handled with css. Inline style <div style="width: xxxpx; margin: o auto;">content</div> would do it, the key being to set the left and right margins to auto and having a width less than the viewport width specified. Inline styles are fine for one time situations but if it is a recurring situation you should make a css class rule and just apply the class to the div ( <div class="centered">content</div> ).

    You have mentioned using php, so I would expect that you know your way around css coding.

  11. #11
    bluearrow's Avatar
    bluearrow is offline IM & SEO Chatty bluearrow is just really nice bluearrow is just really nice bluearrow is just really nice bluearrow is just really nice
    Join Date
    Feb 2011
    Location
    Mount Olympus
    Posts
    1,916
    Thanks Given
    118
    Thanked 356 Times in 262 Posts
    When i want to align center one DIV element inside another DIV element I get this problem.

  12. #12
    wink0r's Avatar
    wink0r is offline Moderator wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold
    Join Date
    Oct 2010
    Location
    East Coast, USA
    Posts
    2,183
    Thanks Given
    941
    Thanked 651 Times in 491 Posts
    You may need to give one a position relative rule, the outer one I think. position: relative; is the syntax as I recall. There is probably a float in there somewhere to add to the excitement?

  13. #13
    brothersadventures is offline IM & SEO Quiet One brothersadventures is on a distinguished road
    Join Date
    May 2011
    Posts
    1
    Thanks Given
    0
    Thanked 0 Times in 0 Posts
    div base layout (Desing) is more flexible compare to table design. But i use most div structure in where data is deplays as form, i use table structure. to design quickly.

  14. #14
    Delois is offline Banned Delois is on a distinguished road
    Join Date
    Aug 2011
    Posts
    78
    Thanks Given
    0
    Thanked 10 Times in 8 Posts
    Div breaks the web page in similar parts. It can divide the section of the web page in few columns which shows the information side-by-side. It breaks the class in the CSS to end the class before its occurrence. In the DIV it is very easy to get the formation.

    On the other hand table is using the rows and columns. In the table it is difficult to get the formation in the website. In the table the size is fixed as the percentage of the screen resolution.

  15. #15
    stronywwwlublin's Avatar
    stronywwwlublin is offline IM & SEO Small Talker stronywwwlublin has a spectacular aura about stronywwwlublin has a spectacular aura about stronywwwlublin has a spectacular aura about
    Join Date
    Jun 2011
    Posts
    601
    Thanks Given
    77
    Thanked 192 Times in 106 Posts
    Quote Originally Posted by bluearrow View Post
    When i want to align center one DIV element inside another DIV element I get this problem.
    try command:
    margin 0 auto;
    or just calculate all wanted distance rigidly in Your box model layout.

    If You have trouble with heredity of div classes, just use separator div trick:
    <div style="clear:both;"></div>
    Another argument for div is maintaining web standards

  16. #16
    mapetshi is offline IM & SEO Quiet One mapetshi is on a distinguished road
    Join Date
    Feb 2012
    Posts
    18
    Thanks Given
    0
    Thanked 2 Times in 2 Posts
    Div is more better to use

  17. #17
    Phoenyx's Avatar
    Phoenyx is offline Super Moderator Phoenyx is a name known to all Phoenyx is a name known to all Phoenyx is a name known to all Phoenyx is a name known to all Phoenyx is a name known to all Phoenyx is a name known to all
    Join Date
    Jan 2011
    Location
    South Africa
    Posts
    3,158
    Thanks Given
    608
    Thanked 542 Times in 412 Posts
    Quote Originally Posted by mapetshi View Post
    Div is more better to use
    Why though? It would be great to know why you said that.
    Kanashimi no oto ga kikoenai you na sewashii sekai ga.
    IMT Forum Member Groups, Features, Options & Permissions and IMT Forum Rules.


  18. #18
    webdesigneriqbal is offline IM & SEO Whisperer webdesigneriqbal is on a distinguished road
    Join Date
    Feb 2012
    Location
    sheffield
    Posts
    36
    Thanks Given
    3
    Thanked 6 Times in 6 Posts
    I use div all the way Table is inefficient. I even use div to display tabular data like menu.

  19. #19
    templates2011 is offline IM & SEO Quiet One templates2011 is on a distinguished road
    Join Date
    Feb 2012
    Posts
    18
    Thanks Given
    0
    Thanked 6 Times in 4 Posts
    i also use div base. is easy to make static web pages

  20. #20
    onehandharry is offline IM & SEO Whisperer onehandharry is on a distinguished road
    Join Date
    Sep 2011
    Posts
    47
    Thanks Given
    8
    Thanked 4 Times in 4 Posts
    I remember when table based designs were the standard thing. That was horrible, too much nesting. Love div's though! That and HTML5 has really made things so much easier to make a static site/template


 

Posting Permissions

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