Reply
layers moving when different resolution
Old 02-10-2006, 09:11 AM layers moving when different resolution
Extreme Talker

Posts: 222
Name: Sylwester
Location: Europe
Hi,

i have problem with layers (DW4). The website designed in 1024 x 768 resolution and in this resolution is OK. The problem is for higher resolution visitor, for example 1280 x 1024, content layers moving to the left and design looks bad.

I will be grateful for help,

Syl
sylwester is offline
Reply With Quote
View Public Profile Visit sylwester's homepage!
 
When You Register, These Ads Go Away!
Old 02-11-2006, 07:45 AM Re: layers moving when different resolution
chrishirst's Avatar
Super Moderator

Latest Blog Post:
Am I impressed or what?
Posts: 14,872
Location: Blackpool. UK
You have a mix of absolute and relative positioning

Get rid of the absolute then it will all move together
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-11-2006, 12:50 PM Re: layers moving when different resolution
Extreme Talker

Posts: 222
Name: Sylwester
Location: Europe
Quote:
Originally Posted by chrishirst
You have a mix of absolute and relative positioning

Get rid of the absolute then it will all move together
I have changed
<div id="Layer2" style="position:absolute;
to
<div id="Layer2" style="position:relative;

but it is worst than before
see it here http://www.sovren.pl/index-relative.htm

Last edited by sylwester : 02-11-2006 at 01:08 PM.
sylwester is offline
Reply With Quote
View Public Profile Visit sylwester's homepage!
 
Old 02-12-2006, 10:08 AM Re: layers moving when different resolution
chrishirst's Avatar
Super Moderator

Latest Blog Post:
Am I impressed or what?
Posts: 14,872
Location: Blackpool. UK
it'd be nice if it worked just like that

you need to tidy the code up properly there is 4 nested <center> tags for a start.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-13-2006, 11:58 PM Re: layers moving when different resolution
Experienced Talker

Posts: 40
You could also try to get rid of tables and just use css the following code is an example. it goes between the head tags. you can change right to left or change the px adjust top, height , and width this will tell the layer exactly where to be and how to look.

.header {z-index: 4; background-color: #95b0cb; position: absolute; right: 112px; top: 119px; height: 150px; width: 612px; padding: 1em; }

in the body you can use almost any normal tag like <p> or <div> then add class="header" example <div class="header"></div> or <p class="header"></p>
you can also change the name of the class to what ever you want.
mrksoliz is offline
Reply With Quote
View Public Profile
 
Old 04-15-2006, 10:04 AM Re: layers moving when different resolution
sherkhan's Avatar
Skilled Talker

Posts: 57
Try center tags it may solve your problem
sherkhan is offline
Reply With Quote
View Public Profile Visit sherkhan's homepage!
 
Reply     « Reply to layers moving when different resolution
 

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13394 seconds with 12 queries