Hmm,
First of all I think you should learn the selectors in css.
If you want to associate a certain style to an element you can and should use classes.
So doing a style like
Code:
.myclass {
position: absolute;
etc:etc;
}
you can then associate it with an html element like this
Code:
<div class="myclass"></div>
There are a lot of selectors like:
Code:
* - all elements
div - all divs
img - all imgs
div span - a span within a div
div, span - <div> and a <span>
div + span - <span> preceded by a <div>
.class - this you already know, is for an element with class="class"
div.class - and <div> with class="class"
#id - an element with the id="id"
Bookmarks