0 Members and 1 Guest are viewing this topic.
#2: the first questin, its easier that way, and it helps with the few bugs and such.
Authors should consider using style sheets for layout and positioning. This technique deprecates the use of layout tables. It is recommended that authors not use the table element for layout purposes unless the desired effect absolutely cannot be achieved using CSS.
the second question: because div makes it more spicific and thats how xhtml functions(I beleve, ask EH, he knows more then me)
The code element contains a fragment of computer code.
<!--if it IE><link href="ie_fixes_stylesheet" type="text/css" rel="stylesheet" /></ENDIF--!>
IE can display divs and css pages fine, you just have to be really careful and use an IE only stylesheet with IE fixes and IE hacksCode: [Select]<!--if it IE><link href="ie_fixes_stylesheet" type="text/css" rel="stylesheet" /></ENDIF--!>
<!--[if lte IE 6]><link href="ie_fixes_stylesheet" type="text/css" rel="stylesheet" /><![endif]-->
Quote from: jrgp on September 26, 2006, 10:37:29 pmIE can display divs and css pages fine, you just have to be really careful and use an IE only stylesheet with IE fixes and IE hacksCode: [Select]<!--if it IE><link href="ie_fixes_stylesheet" type="text/css" rel="stylesheet" /></ENDIF--!>You have it right on your site but you typed it wrong here.Code: [Select]<!--[if lte IE 6]><link href="ie_fixes_stylesheet" type="text/css" rel="stylesheet" /><![endif]-->Still It can be done even without that!Edit: One more added to list. <blockquote>
IE6 and under have extremely bad css support, like ****ing up margins and not rendering floats and positioning and stuff like that. If you wanna make a css design for IE6 and under ur gunna have to use some IE only css stlylesheets
No, you only have to know what you do.
Why is the google analytics tracker outside of the entire html document? No way its valid like that.Ask Flies
Why make the site valid xhtml and put everything in a table?I'll take old fashion tables vs. divs and css hacks any day.
Why use <div class="code">This is code</div> in stead of <code>This is code</code>?Why use <div class="quote">This is quote</div> in stead of <blockquote>This is quote</blockquote>?There was no reason for me to modify SMF to use the code or blockquote tags.
Quote from: ElephantHunter on September 28, 2006, 01:36:38 amWhy is the google analytics tracker outside of the entire html document? No way its valid like that.Ask Flies I did, and he said to ask you.
Quote from: ElephantHunter on September 28, 2006, 01:36:38 amWhy make the site valid xhtml and put everything in a table?I'll take old fashion tables vs. divs and css hacks any day.Not hacks just %25 more CSS. And about %60 less xhtml.Quote from: ElephantHunter on September 28, 2006, 01:36:38 amWhy use <div class="code">This is code</div> in stead of <code>This is code</code>?Why use <div class="quote">This is quote</div> in stead of <blockquote>This is quote</blockquote>?There was no reason for me to modify SMF to use the code or blockquote tags.Lazy.
Most of that modern div evangelist crap is nothing more than div tags molded into tables using CSS. As a result, you use more CSS and tags than necessary to complete the job.
And the bigger table, the bigger the difference.
Bja... Have you ever heard the phrase, "If it ain't broke, don't fix it"?
Quote from: ElephantHunter on September 28, 2006, 09:10:24 pmMost of that modern div evangelist crap is nothing more than div tags molded into tables using CSS. As a result, you use more CSS and tags than necessary to complete the job.It's not about divs. It's about semantic code (using proper tags for right things).But believe me, this:<table><tr><td></td></tr><tr><td></td></tr></table>takes more space than this:<div></div><div></div>or even this:<h4></h4><p></p>Even a n00b can see the difference. And the bigger the table, the bigger the difference. So don't post poor excuses, just say you don't know how to do it.