|
-
Dec 5th, 2005, 10:58 PM
#1
Thread Starter
PowerPoster
Writing proper HTML with CSS...
Alright, not that I honestly give a crap about old browers,
HTML Code:
<div id="dvHeader">
<span id="HeaderRightCol">Styles</span>
<span style="clear:left">
<span id="HeaderSiteLogo">Pc_Madness's Page of Pageness!</span>
</span>
<br>
<span style="float:right">Month Selector</span>
<span style="clear:left">Nav Bar That Sits Below Here</span>
</div>
The styles aren't particular important I guess (all a work in progress ). Basically Styles and Month are floatted to the right and the others sit on the left.
Anyway, just wondering if using Span's is the correct way to go? People are always talking about markup that degrades well with older browsers (that the right word?), so I'm not sure if I should be using Paragraphs and stuff instead?
-
Dec 6th, 2005, 10:55 AM
#2
Re: Writing proper HTML with CSS...
You should use SPAN if you have no other way to do it. I'm guessing that you avoid the usage of tables in setting your layouts, so you could either use DIVs or SPANs.
However, it is considered better if you use <p>s instead of a combination of <span>s and <br>s.
-
Dec 6th, 2005, 06:55 PM
#3
Re: Writing proper HTML with CSS...
Span's mostly a bad choice in this situation. Div is a block, which creates a new line.
Use Firefox's developer toolbar, "disable styles", to test what the page looks like without styles.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Dec 7th, 2005, 09:30 AM
#4
Re: Writing proper HTML with CSS...
Where can I find FF's developer toolbar? I have IEs dev toolbar, but didn't know FF had one.
-
Dec 7th, 2005, 09:53 AM
#5
Re: Writing proper HTML with CSS...
Inside a <div> block you can denote chunks of text using <p> tags and within paragraphs you can apply styles to individual bits of text using <span>'s. That's how I use it.
-
Dec 7th, 2005, 11:26 AM
#6
Re: Writing proper HTML with CSS...
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|