... What? Wasn't Netscape the first to support JavaScript? And CSS? IE was always the lazy one.jason wrote:when IE was the browser you loved and Netscape was the horrid abomination
Why Divs when tables work, in all browsers
Moderator: General Moderators
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
I think you forget the history. Originally you were supposed to do your layout all the semantic elements plus <div> (no <span> then). The problem was it just didn't work. There were a number of problems, but one of them what that HTML was just not designed to do the kind of layouts that people started doing. It was Adobe and Macromedia that built those incredible <table> based layout editors. Remember when the whole page was sliced up images! Tables just workedjason wrote:And the ONLY reason it's harder is because of the browsers.
Again, I think my point is that design of <div> still suffers. Good grief, have you all forgotten the slew of articles by guys trying to figure out how to do columns with <divs>'s (the holy grail
(#10850)
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
But it DOES make it standardized.arborint wrote:Maybe you are used to <div>'s now and all the floating nonsense -- but that does not make it a good design.
CSS can't become better if it does not have people trying to push the envelope and expose the flaws. CSS is not perfect, just like HTML is not perfect, or PHP is not perfect. But version after version, they find out what the developers need because the developers had to find a way to make it happen. Then, when the next version emerges, they make it better supported.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
One bad browser does not make the purpose of HTML and CSS irrelevant. IE6 (and other variants of IE on different platforms) have made semantic markup with CSS supported styling very difficult. Standard browsers, for the most part, get it right. Not all browsers render the same, regardless of the standard. I have coded pages that render completely different in all four major browsers, so trying to get a site the render exactly the same on all browsers on all platforms is a bit of a pipe dream I imagine.
However, markup is exactly that... markup. Open a text editor (any editor, even Word if you wish, though this is more fun with something like Notepad/gEdit/TextEdit) and write some stuff in it. Then, inside the editor, add style to it, like a heading or red text or a border. Outside of Word processing applications like Word, it is next to impossible becuase the purpose of the editor is to write/display text. Markup is akin to that.
In Word, you can apply styles to a document just like you can to markup. Word manages styles outside of the document, so even though you see it in your Word window, the styles are controlled by underlying style rules. Even if you change the way the page looks in the Window, the underlying document is still the same.
Markup and CSS work the same way. Markup is essentially the text to be presented with some default, minimalistic styles associated with it. Styling the document should be done with Stylesheets as that is the purpose of the Stylesheet. The markup presents the data/text/images to be presented, the stylesheets format it.
Going back to my Word example, has anyone ever used a gigantic series of tables to generate a Word document that was not tabular data? Seems silly, doesn't it?
Using markup to mark up a document just makes sense. Using style to stylize the mark up just makes sense. If it happens that you cannot make a columnar layout using CSS then perhaps it is time to learn a few CSS techniques as opposed to using a markup element out of context.
PS CSS and DIV tags should not be confused with one another. The TABLE vs. DIV debate is, in my opinion, an incorrect debate. I believe the debate here should be TABLE vs. CSS, as there are a whole gang of markup tags that can be styled outside of a simple DIV tag that can handle positioning and the what not.
However, markup is exactly that... markup. Open a text editor (any editor, even Word if you wish, though this is more fun with something like Notepad/gEdit/TextEdit) and write some stuff in it. Then, inside the editor, add style to it, like a heading or red text or a border. Outside of Word processing applications like Word, it is next to impossible becuase the purpose of the editor is to write/display text. Markup is akin to that.
In Word, you can apply styles to a document just like you can to markup. Word manages styles outside of the document, so even though you see it in your Word window, the styles are controlled by underlying style rules. Even if you change the way the page looks in the Window, the underlying document is still the same.
Markup and CSS work the same way. Markup is essentially the text to be presented with some default, minimalistic styles associated with it. Styling the document should be done with Stylesheets as that is the purpose of the Stylesheet. The markup presents the data/text/images to be presented, the stylesheets format it.
Going back to my Word example, has anyone ever used a gigantic series of tables to generate a Word document that was not tabular data? Seems silly, doesn't it?
Using markup to mark up a document just makes sense. Using style to stylize the mark up just makes sense. If it happens that you cannot make a columnar layout using CSS then perhaps it is time to learn a few CSS techniques as opposed to using a markup element out of context.
PS CSS and DIV tags should not be confused with one another. The TABLE vs. DIV debate is, in my opinion, an incorrect debate. I believe the debate here should be TABLE vs. CSS, as there are a whole gang of markup tags that can be styled outside of a simple DIV tag that can handle positioning and the what not.
- Bill H
- DevNet Resident
- Posts: 1136
- Joined: Sat Jun 01, 2002 10:16 am
- Location: San Diego CA
- Contact:
First, what I find fascinating and delightful is that this discussion has gone on for four pages with considerable passion and not one trace of "you're an idiot" in it. Speaks to the courtesy and friendliness which is the nature of this group of people.
I couldn't agree more. I found CSS difficult at first, but the flexibility is porecisely what I enjoy most about using it now. In part, probably, because I have been a programmer back to the days when C was new and desktop computers had not yet been invented.I like to think of CSS as just bringing the actual programming back to HTML. If there was only one way to do everything when programming, there's a lack of creativity in solutions. CSS is flexible. There are a million and one ways to display things. Floats, absolute / relative positioning, altering the 'display' property, negative margins, overflowing, etc.
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
Everah wrote:Going back to my Word example, has anyone ever used a gigantic series of tables to generate a Word document that was not tabular data? Seems silly, doesn't it?
Bill H wrote:First, what I find fascinating and delightful is that this discussion has gone on for four pages with considerable passion and not one trace of "you're an idiot" in it. Speaks to the courtesy and friendliness which is the nature of this group of people.
- AKA Panama Jack
- Forum Regular
- Posts: 878
- Joined: Mon Nov 14, 2005 4:21 pm
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm