Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dreamweaver Layer positioning problem

Status
Not open for further replies.

Guest_imported

New member
Joined
Jan 1, 1970
Messages
0
Hi,

I made a web page using the Dreamwear program. The Layers change their position when I change screen resolution. For example when the screen resolution is set 800 X 600 the layer are in correct position, then I change it to 1024 X 768 one layer slides to right the other goes to left.
Isn't there a way to set the positining tunings to center all the time.
Your help will be appericiated. Thamks.
Canan Cakir
 
You need to use relative positioning. Even then you will still have problems with positioning because the coordinates are from the upper left hand corner of the frame and not the center of the frame.

You could do something like this though. The only problem is that the layer resizes in order to stay centered:

<div id=&quot;Layer1&quot; style=&quot;position:absolute; left:40%; top:40%; width:20%; height:20%; z-index:1; background-color: #FF00FF; layer-background-color: #FF00FF; border: 1px none #000000&quot;></div>



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top