Yes, but XHTML isn't widly supported yet, and actually may fall out of favor. I wouldn't be using that either.
instead of using div.className, just use .classname, then you can assign that class name to whatever tag you want. a ul, li, p or a div, or use ID's for single applications:
Code:
#wrapper {
width: 710px;
min-height: 100%;
color: #FFF;
background: #000 url('/images/background.gif');
}
#nav {
position: absolute;
background-color: #F00;
color: #00F;
}
.nav {
background-color: #0F0;
}
Now using that mix (which is very ugly, btw) you can mix and match:
HTML Code:
<body>
<div id="wrapper">
<div id="nav">
<ul>
<li>text blah blah or a link</li>
<li>text blah blah or a link</li>
<li>text blah blah or a link</li>
<li class="nav">text blah blah or a link</li>
<li>text blah blah or a link</li>
<li>text blah blah or a link</li>
</ul>
</div>
</div>
</body>
Perhaps that marks the current page, or something. But I am not limited to using it in a div only.
Bookmarks