Reply
layer positioning
Old 09-24-2004, 11:58 AM layer positioning
Novice Talker

Posts: 11
Hi,

I have a web page, and I have inserted a layer, with absolute positioning, but when I resize the browser the layer moves...

Can anyone explain why this is, and how do I stop it doing such a thing as people will view the website with different browser sizes...

I can send a copy of the page and code...

Many thanks

Wood1e
wood1e is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 09-26-2004, 08:13 PM Pixels or Percentages?
Novice Talker

Posts: 8
Location: southern California
Not sure what effect you want your guests to see if they resize their browser window, or have a monitor other than the one you design for, but you might play around with the following code to see how pixels and percentages effect the position of an element on the screen as it is resized. Absolute positioning with pixels, for example, is a bit more "absolute" than with percentages...

<head>
<title>PIXELS OR PERCENTAGES?</title>
<style>
.pixel {position:absolute; top:150px; left:600px; font-size:10px; color:blue;}
.percentage {position:absolute; top:25%; left:75%; font-size:10px; color:red;}
</style>
</head>

<body>
<p class="pixel">TOP:150PX; LEFT:600PX </p>
<p class="percentage">TOP:25%; LEFT:75%</p>
</body>
Banner Up is offline
Reply With Quote
View Public Profile Visit Banner Up's homepage!
 
Reply     « Reply to layer positioning
 

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.22864 seconds with 12 queries