HighDots Forums  

difference between <div> and layer???

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss difference between <div> and layer??? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
xmanli
 
Posts: n/a

Default difference between <div> and layer??? - 08-02-2004 , 12:38 AM






I am learning to use css positioning and styles, I have read a lot tutorials
but I am seeing the layer button also creates <div>. So what is the difference
between these 2. How can I know which one to use when both looks the same.?
Also when I try to remove the height or width or some other atrributes from the
layer, it will disapper from the layers panel but the <div> will still remain
in the code.
Can anyone help me?

I hope I made myself clear. All I want to know is the difference between
<div> and layers and when shall I use them?
Thanks in advance

Xmanli


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

Default Re: difference between <div> and layer??? - 08-02-2004 , 12:44 AM






xmanli wrote:
Quote:
I am learning to use css positioning and styles, I have read a lot
tutorials but I am seeing the layer button also creates <div>. So
what is the difference between these 2. How can I know which one to
use when both looks the same.? Also when I try to remove the height
or width or some other atrributes from the layer, it will disapper
from the layers panel but the <div> will still remain in the code.
Can anyone help me?

I hope I made myself clear. All I want to know is the difference
between <div> and layers and when shall I use them?
Thanks in advance
Perhaps this tech note will be helpful:
http://www.projectseven.com/support/answers.asp?id=138


--
Al Sparber - PVII
http://www.projectseven.com
DW Extensions - Menu Systems - Tutorials - CSS FastPacks
---------------------------------------------------------
Webdev Newsgroup: news://forums.projectseven.com/pviiwebdev/
CSS Newsgroup: news://forums.projectseven.com/css/
RSS/XML Feeds: http://www.projectseven.com/xml/






Reply With Quote
  #3  
Old   
David Stiller
 
Posts: n/a

Default Re: difference between <div> and layer??? - 08-02-2004 , 09:01 AM



PVII has a wealth of information. Good stuff, all around.

Short and sweet, a "layer" is simply an positioned <div>; that is, a
<div> with a style attribute that specifies position: absolute, relative,
etc.; typically positioning of some kind, such as top: 20px, left: 100px,
etc.; and a z-index (stacking order). You'd use a layer when you want to
override the natural positioning of HTML elements, which is top-to-bottom,
left-to-right.


David
stiller ( at ) quip ( dot ) net



"Al Sparber- PVII" <adSTRApmin (AT) projectseven (DOT) com> wrote

Quote:
xmanli wrote:
I am learning to use css positioning and styles, I have read a lot
tutorials but I am seeing the layer button also creates <div>. So
what is the difference between these 2. How can I know which one to
use when both looks the same.? Also when I try to remove the height
or width or some other atrributes from the layer, it will disapper
from the layers panel but the <div> will still remain in the code.
Can anyone help me?

I hope I made myself clear. All I want to know is the difference
between <div> and layers and when shall I use them?
Thanks in advance

Perhaps this tech note will be helpful:
http://www.projectseven.com/support/answers.asp?id=138


--
Al Sparber - PVII
http://www.projectseven.com
DW Extensions - Menu Systems - Tutorials - CSS FastPacks
---------------------------------------------------------
Webdev Newsgroup: news://forums.projectseven.com/pviiwebdev/
CSS Newsgroup: news://forums.projectseven.com/css/
RSS/XML Feeds: http://www.projectseven.com/xml/







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

Default Re: difference between <div> and layer??? - 08-02-2004 , 09:39 PM



Thanks david, I got your point.

xmanli

Reply With Quote
  #5  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: difference between <div> and layer??? - 08-03-2004 , 09:57 AM



Actually, Microsoft calls them "layers" too.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Michael Fesser" <netizen (AT) gmx (DOT) net> wrote

Quote:
.oO(David Stiller)

Short and sweet, a "layer" is simply an positioned <div>;

Only MM calls it a "layer", which IMHO is misleading and confusing.
There's nothing special about them (besides the fact that improper and
inflationary use of "layers" without understanding them often leads to
unusable websites).

You'd use a layer when you want to
override the natural positioning of HTML elements, which is
top-to-bottom,
left-to-right.

You don't necessarily have to use a "layer" for this, you can position
_every_ block-level element.

Micha



Reply With Quote
  #6  
Old   
Michael Fesser
 
Posts: n/a

Default Re: difference between <div> and layer??? - 08-03-2004 , 10:31 AM



.oO(David Stiller)

Quote:
Short and sweet, a "layer" is simply an positioned <div>;
Only MM calls it a "layer", which IMHO is misleading and confusing.
There's nothing special about them (besides the fact that improper and
inflationary use of "layers" without understanding them often leads to
unusable websites).

Quote:
You'd use a layer when you want to
override the natural positioning of HTML elements, which is top-to-bottom,
left-to-right.
You don't necessarily have to use a "layer" for this, you can position
_every_ block-level element.

Micha


Reply With Quote
  #7  
Old   
Michael Fesser
 
Posts: n/a

Default Re: difference between <div> and layer??? - 08-03-2004 , 11:49 AM



.oO(Murray *TMM*)

Quote:
Actually, Microsoft calls them "layers" too.
Hmmpf, no surprise.

Micha


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.