Reply
re Absolute positioning of Divs??
Old 08-25-2004, 06:39 AM re Absolute positioning of Divs??
numbenator's Avatar
Ultra Talker

Posts: 413
Location: London
Hi,

I have three divs which are horizontally side by side.

<div id="Layer1" style="position: absolute; left: 13px; top: 14px; width: 258px; height: 23px; z-index: 1; vertical-align: middle">div 1</div>

<div id="Layer2" style="position: absolute; left: 277px; top: 14px; width: 232px; height: 23px; z-index: 2; vertical-align: middle">div 2</div>

<div id="Layer3" style="position: absolute; left: 515px; top: 14px; width: 233px; height: 23px; z-index: 3; vertical-align: middle">div 3</div>


My question is, Can I define divs in same way but not position absolutely. I want Divs to maintain size and postition but the second Div to be positioned relative to the first and the third to the second.

cheers.
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
When You Register, These Ads Go Away!
Old 08-25-2004, 11:57 AM
ibbo's Avatar
Super Spam Talker

Posts: 880
Location: Leeds UK
try

position: relative;

Ibbo
ibbo is offline
Reply With Quote
View Public Profile Visit ibbo's homepage!
 
Reply     « Reply to re Absolute positioning of Divs??
 

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