NameSilo

FREEZE! A layer

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
Spacemail by SpaceshipSpacemail by Spaceship
Watch
Impact
0
Im currently using dreamweaver MX (not 2004 edition) to create a site and im trying to stop layers moving when the explorer window is resized.
Is it possible to do this? Ive spent a long time trying to figure it out.
If this is not possible can you create tables on top of tables so that they are completely independant of each other?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Can't help unfortunately but I was wondering if you ever found a solution? Can you let me know if you did (or do in future) 'cos I'm having the same problem... :) The site http://www.urthboy.com has a layer in it that doesn't change when the window is resized.
 
Last edited:
0
•••
looking at the source from the site you showed... i found this:

<div style="position:absolute; left:45px; top:127px; width:384px; height:324px; z-index:1; overflow: auto;">


is it the "z-index:1;"?
 
0
•••
Thanks for your reply Wildchild22... I tried it and unfortunately it didn't work. Everything else in the div on my page is the same as that one too :(
 
0
•••
I also use Dreamweaver and have several layers within, I think the reason your layers are appearing to be moving is because your page may be centering the content. And In the Design view you place the layer, (note in design view the main content of the page is not centered where it wll show in the browser) so actually the layer is exactly where it is suposed to be, the main page content moves to the center of the browser, thus making it seem that the layer has moved on you. So I found the only way to use layers accurately is to make a left and top margin, so that when you are in design view the placing of the layer is accurate. I may and I think I am wrong of your situation, you may already know this and I may be totaly wrong of you situation.

How to make margins if you dont know how, edit the body tag:

<body leftmargin="50" topmargin="10">
</body>

- Wildchild22 the z-index is the position of the layer "front to back" so If "layer 1" has a z-index of 1 and "layer 2" has a z-index of 2, "layer 2" will appear on top of "layer 1". If "layer 1" had a z-index of 3 then it would be above/on top of "layer 2".
 
Last edited:
0
•••
Hey Mr Plague!

Thanks heaps for the reply... I actually just figured out thismorning that it wasn't the frames moving! However, I didn't know about the margin setting thing - this is very interesting.

The way I have set it up just in the last hour or so is using an extension I found for Dreamweaver that lets you 'snap' the layers to an object on the page. I've used it to snap the layers to a picture so that when the page centers, so does the layer...

Everyone please feel free to let me know if there's any reason why this aint gonna work! 8-X

Cheers
Neil
 
0
•••
O, would you care to tell me the extension you downloaded to make layer snap to object it would be very useful to me.

please and thank you
 
0
•••
0
•••
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Escrowly
CryptoExchange.com
Domain Recover
URLs.com
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back