![]() | |
![]() |
| | Thread Tools | Display Modes |
#21
| |||
| |||
|
|
Help -> Using Dreamweaver. Search tab - 'layers' as the keyword About Layers in Dreamweaver should be near the top somewhere. |
#22
| |||
| |||
|
|
Believe it or not, About Layers doesn't appear in DW8's search results with the keyword "layers". |
#23
| |||
| |||
|
|
Hey, I'm just quoting what Dreamweaver's own help file says. If that's not the case, then it's not the case. *shrug* |
#24
| |||
| |||
|
|
MrBonk wrote: Hey, I'm just quoting what Dreamweaver's own help file says. If that's not the case, then it's not the case. *shrug* I see from another post that you're using MX 2004, and you're correct that that's what the MX 2004 help files say. Murray's correct in saying that you cannot define a relative position in the Property inspector. The Livedoc page that I pointed you to is the help file from Dreamweaver 8. If and when you upgrade to DW8, you'll discover that "layers" have changed. The style definition is no longer in the opening div tag, but in a style block in the head of the web page. My personal feeling is that Macromedia has caused endless, unnecessary confusion by using the expression "layer". Absolute and relative positioning work in very different ways, and using the same name for both just leads to confusion. It certainly had me confused for several months. I've no idea if Dreamweaver will continue to use the expression "layer" in future versions, but the way that it's currently used refers only to absolute positioning. -- David Powers Author, "Foundation PHP for Dreamweaver 8" (foED - forthcoming) Author, "Foundation PHP 5 for Flash" (friends of ED) http://computerbookshelf.com |
#25
| |||
| |||
|
#26
| |||
| |||
|
|
Looks like the MM technical writers have got shorter memories than you, eh, Murray? :-) -- Regards John Waller |
#27
| |||
| |||
|
#28
| |||||||||
| |||||||||
|
|
Being new to DW, I too, am confused with this concept. Below is out of the help file in DW 2004. Notice that it says that "all" <div> tags are Layers. |
|
At this stage in my learning of DW, it is my understanding that "relative" <div tags are layers that are positioned according to where they are in the code. |
|
"Absolute" (Layers in DW) are positioned relative to the upper-left corner of the browser window (in most cases that is...see my question below), so they will not move when you resize the browser window. |
|
So, if you want to have a something (layer, image, etc) reside underneath an element that "floats" (not float in DW) because it is positioned "relative", then you must use another "relative" element. |
|
Or.......I have found that you can place a Layer (absolute positioned div>) inside a relative element and have it "float" with that relative element? |
|
In other words, the absolute position of the layer is not positioned relative to the upper-left of the browser window, but relative to the bottom-left of the first "relative" element (or maybe it is in relation to the upper-left of the element...can't remember). |
|
Now, I know that Murray will say, "why do you want to do that? Why not just use another "relative" tag. |
|
Well, I have found that, if I do this, the original relative element acts in unpredictable ways (like jumping out of a #wrapper element that is made to float in the center of the browser window). Oh, bty, as to Mr Bonk's advise of placing a layer inside of a table. I guess it can be done, but it will not work in many browsers. On page 275-76 of "the Missing Manual" David McFarland speaks to this. He does say that you can have a layer overlap or appear to be inside of a table cell, but you should not have the layer handle inside of the cell. |
| ----from the DW 2004 help file-------- Laying Out Pages with CSS In Macromedia Dreamweaver MX 2004, you can use CSS to add content blocks to your document for layout. You can either insert div tags and apply CSS positioning styles to them, or you can use Dreamweaver layers to create your layout. Note: Dreamweaver treats all div tags with absolute or relative position as layers. Tip: You can use a Dreamweaver design file as a starting point for your CSS layout. Select a file from the Page Designs (CSS) category of the New Document dialog box (see Creating a document based on a Dreamweaver design file). Whether you use CSS, tables, or frames to lay out your pages, Dreamweaver has rulers and grids for visual guidance in your layout. Dreamweaver also has a tracing image feature, which you can use to re-create a page design that was created in a graphics application. Note: If you're unfamiliar with using layers and Cascading Style Sheets (CSS), but are familiar with using tables, try using tables or Layout mode for page layout (see Presenting Content with Tables and Laying Out Pages in Layout Mode). |
#29
| |||
| |||
|
|
In other words, the absolute position of the layer is not positioned relative to the upper-left of the browser window, but relative to the bottom-left of the first "relative" element (or maybe it is in relation to the upper-left of the element...can't remember). |
#30
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |