<div style="color: blue">
<h1>Wahooo!</h1>
<p>Wow. I can't believe I'm actually writting a sentence. There goes my ultra lazy streak. T_T</p>
</div>
Two HTML elements, div and span, were especially created for use wih style sheets. They have no inherent properties of their own, but can be used to designate elements on a web page that should be affected by style sheet instructions. They will be ignored by browsers that do not understand them.
The <div> tag is used to delimit block-level tags and can contain other HTML elemnts within it.
<div style="position:absolute; leftmargin:123px; rightmargin:34px; topmargin:59px>Your text here</div>
<div class="main">Your text here</div>
And then in the <head> section:
<style>
.main {position:absolute; leftmargin:123px; rightmargin:34px; topmargin:59px}
</style>
Volt wrote:Well if you want you can buy/get Dreamweaver which is Great at div layers and a million other things too. I just started using them. I mean they're handy but not practical enough to want to put them into your web page for no reason. Of course I'm still experimenting, I'll probably find a good use for them on my websites and take back my statement on them being non-practical.
<style type="text/css"><!--
A:visited {color:"#00FFFF"; text-decoration:none; cursor:crosshair}
A:hover {color:"#00FFFFFF"; text-decoration:none;cursor:crosshair;blur(Add=1,Direction=180,Strength=5)}
A:link {color:"#00FFFF";text-decoration:none;cursor:crosshair}
A:active {color:"#00FFFF";text-decoration:none;cursor:crosshair}--></style>
Users browsing this forum: No registered users and 206 guests