Previous Message
Next Message

[css-d] <div> usage clarification

Sent by drt - lists on 4 February 2002 04:04


Hello,

I am not using CSS for positioning, but from what I read, it seems to make
sense to use the following...

----
<div class="header">
    header/top of page here
</div>

<div class="menu">
    menus here
</div>

<div class="content">
    page content here
</div>

<div class="footer">
    page footer/close here
</div>
----

to help divide up my pages.

Now the question is, in my style sheet, can I define separate classes under
each section? For example have <H4> with certain values when placed within
the header section and other values when say in the footer section?

Or do I have to create say

P.header { stuff here }
P.content { stuff here }
P.footer { stuff here }


Thanks

Dale

p.s. Over the weekend I got a few of my primary personal site to validate
using the htmlhelp css validator and the iCab built-in validator :)

Sent using the Entourage X Test Drive.
Previous Message
Next Message

Message thread: