HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 21st, 1999, 03:30 AM
L0-t3k
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
How can I get my layers to show up centered
as opposed to a specific distance from top
and left of screen?
I'm using DreamWeaver2

Reply With Quote
  #2  
Old April 22nd, 1999, 11:53 PM
Ranj
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Hi I have just started using DW2, I think you can justt stack the layers on top of one another.

Reply With Quote
  #3  
Old April 26th, 1999, 02:40 AM
nico
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
in dreamweaver2, you cannot position your layers in the center (or any other percentage values) of your page.

one solution would be to code some javascript that checks the window's innerHeight and innerWidth, and the layer's height and width, and then set the layers top position to (innerHeight-height)/2 and the left position to (innerWidth-width)/2.
it will be centered then.. however, this requires some javascript skills, since this has to be done in 2 completely different ways on IE and Netscape...

another solution would be to put the layers in a frame, that has a fixed size, i.e. 500x400 px or so. if that frame is centered, and you position the layer at the correct position, it will be centered in all screen resolutions..

(i think i have that layer-centering javascript stuff around somewhere, email me if you want it --> nico@better-image.nl)

Reply With Quote
  #4  
Old April 28th, 1999, 02:56 PM
L0-t3k
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Thank you. That answers the question. URL

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Layers Problems


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway