![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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 |
#3
| |||
| |||
|
|
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/ |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
.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 |
#6
| |||
| |||
|
|
Short and sweet, a "layer" is simply an positioned <div>; |
|
You'd use a layer when you want to override the natural positioning of HTML elements, which is top-to-bottom, left-to-right. |
#7
| |||
| |||
|
|
Actually, Microsoft calls them "layers" too. |

![]() |
| Thread Tools | |
| Display Modes | |
| |