PDA

View Full Version : Locking Layer Postions in Dreamweaver



sintax321
September 17th, 2003, 06:10 PM
I have alayer that is part of a drop down. If the window stays the right size it is fine but if the window size is adjusted the layer postion doesnt' adjust with it. HOw do u lock a layers postion so it stays in the right place?

Kitiara
September 17th, 2003, 06:49 PM
The layer sounds like it's in 'absolute' positioning... I can't recall exactly, but there should be an option to adjust this to 'relative', where it will move in proportion to your screen. :)

sintax321
September 17th, 2003, 06:51 PM
thanks kit going to check some things out.

Kitiara
September 17th, 2003, 06:57 PM
S'OK. :) I'll see if I can find the bit I mean...

sintax321
September 17th, 2003, 07:03 PM
here is the code i'm using

<div id="Layer1" style="position:relative; left:360px; top:59px; width:272px; height:22px; z-index:1; visibility: visible;">

abzoid
September 17th, 2003, 08:16 PM
Relative positioning of layers is messy, because they are relative to where they would have been without any positioning.

What you're trying to do requires the use of CSS and Javascript to maintain proper positioning.

sintax321
September 18th, 2003, 11:29 AM
Ya I have found a extension that does jsut that. It alows the layer to be defined in a spot and then dynamicly changes it postion based on browser window size. Thanks for all the help guys.:thumb:

abzoid
September 18th, 2003, 11:54 AM
I love behavior extensions, 'cuz I HATE coding javascript. :}

sintax321
September 18th, 2003, 11:55 AM
yep it is sweet and it was a free extension too.

abichap
September 18th, 2003, 09:17 PM
Hi abzoid, can you tell me how you did that? What extension did you use?

abzoid
September 18th, 2003, 09:25 PM
sintax321 did it, not me. I just stood back and pointed. ;)

reverendflash
September 18th, 2003, 09:26 PM
no giggling in class!

:evil:

Revhttp://www.aulman.com/rev.gif

abzoid
September 18th, 2003, 09:30 PM
Dang, I never get to have any fun :(

abichap
September 19th, 2003, 07:30 AM
yah sorry, my mistake. sintax 321, how did you do it?

sintax321
September 19th, 2003, 11:29 AM
sent u a PM. But for every one else here is the link to the site wiht the extensions needed and the tutorial on how to do it

http://www.projectseven.com/extensions/info/snaplayers/snapinfo.htm

abichap
September 20th, 2003, 02:59 AM
thanks sintax321. will go and check the link out now.