A lot of web developers are strongly opinionated that divs should be used for design and tables for tabular data, but I am still not entirely convinced that website designers should jump on it yet. I haved designed web sites using both, and in my experience I have found that carefully using tables produces more cross browser compatible designs than using divs carefully. Does anybody have any strong evidence or convictions on either side of the fence for this argument?
Arizona Web
5
Junior Poster
Recommended Answers
Jump to PostOk, you may shoot me now then. LOL
Just so I'm not misunderstood - divs ARE the way to go IF they are needed. Tables should definitely NOT be used for layout. IMO, anyone still using tables for general layout should be shot.
Jump to Postyou can use a motorcyle to deliver a houseload of bricks, two or three at a time,
a truck delivers the bricks, they arrive less damaged, faster, and use less fuel to do it.can <> should
possible <> best
<table>s and <div>s have their strengths, it is difficult …
Jump to PostHmm. I always try to stay clear of inline styles and presentational classitis:
<div id="my_id"> ... </div> <br />
and
#my_id + br{ clear:both; }
Would be my take if the previous tag (container) had an id. Perhaps that's being a bit anal, but …
Jump to PostTechnically there is little difference between the 2 - both are block-level elements so you could basically manipulate them in the same way, with CSS, nesting or otherwise.
Table vs div on image stealing? Again they're both the same. If a user can see it he can make a …
Jump to Postexactly lol, thankfully these days it's rare to find an "old-school" designer.
unfortunately, it's too easy to find stubborn old-styled clients *sigh*
All 35 Replies
Innocent
0
Newbie Poster
Dani
4,039
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
Killer_Typo
82
Master Poster
Kaycy
0
Light Poster
almostbob
866
Retired: passive income ROCKS
Kaycy
0
Light Poster
laura_ci
0
Junior Poster in Training
diafol
MJ Pieterse
2
Poster
Kaycy
0
Light Poster
Kaycy
0
Light Poster
Kaycy
0
Light Poster
diafol
Rider99
0
Newbie Poster
Kaycy
0
Light Poster
newviewit.com
2
Junior Poster in Training
Veneficae
1
Light Poster
MidiMagic
579
Nearly a Senior Poster
webdeveloperr
0
Newbie Poster
charlesying
0
Newbie Poster
ebay1989
0
Light Poster
Dani
4,039
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
almostbob
866
Retired: passive income ROCKS
prashantsnv
-1
Newbie Poster
nav33n
commented:
divs are secure ? What ?
-1
kate0558
0
Newbie Poster
zukilover
0
Newbie Poster
zukilover
0
Newbie Poster
Dani
4,039
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
zukilover
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.