HighDots Forums  

Newbie: How to work with Layers?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Newbie: How to work with Layers? in the Macromedia Dreamweaver forum.



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

Default Newbie: How to work with Layers? - 08-02-2004 , 01:25 AM






Correct me if I'm wrong, but it seems that a layer is nothing but a div that
has a style of "position:absolute;" and a z-index. For example, if I want
to work with layers, the div ID must be defined on the page (not in the
style sheet) and include the "absolute position" and the "z-index" - it
might look something like this for a left nav bar:

<div id="Layer1" style="position:absolute; left:0px; top:60px; width:120px;
height:800px; z-index:1"></div>

I'd like to use layers on my site, but because my site resizes for different
resolutions, I don't think I can. I have a gif as a header bar that is
760px wide, and the whole page is basically a div of the same width. So the
page fills up the entire screen at 800x600 and has white space on the sides
at 1024x768. If I were to have an absolutely positioned div, the position
would be wrong in one resolution and right in the other.

Is there any other way to use Layers?

Thanks in advance.



Reply With Quote
  #2  
Old   
Boris
 
Posts: n/a

Default Re: Newbie: How to work with Layers? - 08-02-2004 , 07:52 AM






deko wrote:
Quote:
Correct me if I'm wrong, but it seems that a layer is nothing but a
div that has a style of "position:absolute;" and a z-index. For
That's right. There once was a layer tag in Netscape 4 but now layer is just
a (absolutely) positioned div.
By the way, there's an article about CSS positioning in Dreamweaver MX 2004
at http://www.macromedia.com/devnet/mx/...ntro_cssp.html

Quote:
[...]
Is there any other way to use Layers?
Why do you want to use layers? It seems like you want your webpages to scale
to the visitor's screen size? Then don't use layers?

Boris




Reply With Quote
  #3  
Old   
deko
 
Posts: n/a

Default Re: Newbie: How to work with Layers? - 08-02-2004 , 04:48 PM



Quote:
Why do you want to use layers? It seems like you want your webpages to
scale
to the visitor's screen size? Then don't use layers?
That pretty much answers my question: If a page is designed to scale with
different screen resolutions, then using layers is not an option.

Thanks for the tip on the Dreamweaver article.




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 - 2008, Jelsoft Enterprises Ltd.