[thelist] (no subject)
{ schaapy }
list01 at theparagon.org
Thu Apr 18 16:49:01 CDT 2002
> Can anyone tell me what's a DIV? Sorry for asking this kinda stupid
questions
> but I'm a newbie in this domain .
The <div> tag defines the start of a division/section in a document.
However - browsers usually place a line break before the <div> tag.
Helpful Tip: Use the <div> tag to group block-elements to format them with
styles.
source from http://www.w3schools.com/html/attr_div.asp
For example:
<style type="text/css">
.forshow{
color: #f00;
font-size: 10px;
background-color: #fff;
}
</style>
<div class="forshow">This text will be red with a white background</div>
You could also do:
<span class="forshow">This text will be red with a white background</span>
The SPAN is another way of doing almost the same thing. However you won't
have any browsers putting a block around your text. It will only control
your text.
----------------
Aaron Schaap
www.theparagon.org
More information about the thelist
mailing list