HighDots Forums  

css related: layers

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss css related: layers in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Lucho16 webforumsuser@macromedia.com
 
Posts: n/a

Default css related: layers - 11-19-2003 , 12:56 PM






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.

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?

Any comments will be very much appreciated. Thanks.



Reply With Quote
  #2  
Old   
Al Sparber- PVII
 
Posts: n/a

Default Re: css related: layers - 11-19-2003 , 01:06 PM






"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
---------------------------------------------------------------------






Reply With Quote
  #3  
Old   
Antony Eggert webforumsuser@macromedia.com
 
Posts: n/a

Default Re: css related: layers - 11-19-2003 , 01:12 PM



You are absolutely correct.

With the ID selector you identify an element to be an *unique instance* in a document.



Anthony Eggert
{stylehreak;}
http://stylephreak.frogrun.com

Reply With Quote
  #4  
Old   
darrel
 
Posts: n/a

Default Re: css related: layers - 11-19-2003 , 01:39 PM



Quote:
Does anyone know if this is correct ...or normal ...or am I doing
something wrong?

The term 'layer' is a DW-invented concept (well, NN4 used it too). In DW, a
layer = absolutetly positioned DIV with a z-index. So, it's just a DIV with
some very specific style attributes.

-Darrel




Reply With Quote
  #5  
Old   
Lucho16 webforumsuser@macromedia.com
 
Posts: n/a

Default Re: css related: layers - 11-19-2003 , 03:28 PM



Thank you Al Sparber- PVII, thank you Antony Eggert, thank you darrel.
Your comments hit the spot. Thanks. Again.
Now, back to DW ...to the next wrinkle!



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.