Forum Moderators: not2easy

Message Too Old, No Replies

layout destroyed

same old story

         

humpingdan

12:23 pm on Dec 2, 2003 (gmt 0)

10+ Year Member



ive written this in the css

.guest {
Z-INDEX: 99; VISIBILITY: hidden; MARGIN: -40px -120px 0px -108px; WIDTH: 220px; COLOR: #000033; POSITION: absolute; HEIGHT: 250px; BACKGROUND-COLOR: #ffffff; layer-background-color: #cccccc

this is a hidden div that is set to show on a javascript button click, it holds my php comments script, the <div id=guest> is set in a floating div to the right, problem being that the positioning ive used onl works on a 17" monitor, the minute i try it on 19" the layer when visible is way out, how can i get the layer to size with the floating layer?

SuzyUK

11:30 am on Dec 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



can you set the parent div to position: relative;?

Then the absolute div should position itself according to the position of its parent as opposed to the viewport..

Suzy