"Lucho16" <webforumsuser (AT) macromedia (DOT) com> wrote
Quote:
I'm trying to learn this css thing.
I followed this tutorial that "asked" me to put my text (or other
elemente) within a div id tag and name it. Then from the css file doing a
|
#name I can manipulate the element in the html page.
Quote:
My question. I've noticed that when I place the div tag, in essence I'm
creating a layer, and by naming the element with the id thingie, I am naming
|
the layer. Does anyone know if this is correct ...or normal ...or am I
doing something wrong?
You are only making the element a "Layer" is you set its position to
"absolute". Consider the following scenario:
1. You make a DIV:
<div id="mydiv">
My text or whatever is inside the div
</div>
2. You make a style:
#mydiv {
padding: 20px;
background-color: gray;
width: 300px;
}
This DIV is static. In "dreamweaverspeak" it is not a Layer.
But if you make this style:
#mydiv {
padding: 20px;
background-color: gray;
width: 300px;
position: absolute;
top: 0px;
left: 0px;
}
....then you have a "Layer" that is positioned flush in the top left corner
of your window.
--
Al Sparber - PVII
http://www.projectseven.com
Dreamweaver Extensions - DesignPacks - Tutorials - Books
---------------------------------------------------------------------
The PVII Newsgroup | news://forums.projectseven.com/pviiwebdev
The CSS Newsgroup | news://forums.projectseven.com/css
---------------------------------------------------------------------