css - How to place a div on top of another div? -



css - How to place a div on top of another div? -

i have layout looks this: http://img33.imageshack.us/img33/4637/unleddrawing.png

it's table on cell @ top , 3 cells below. 3 cells 150px, auto, 200px.

inside middle cell have div containing calendar. want able set div opacy on top of one, in order "blur" , create unusable process ajax request.

i've tried styling opacy-div with

position: absolute; margin-left:150px; margin-right:200px; width:100%

but turned out width 100% 100% of entire screen, not cell.

i've tried putting div underneath calendar div in code , styling with:

position: relative; top: -100%; height: auto;

but doesn't seem work @ since have no way of knowing how tall calendar be, can't determine height , how much should move up.

any help much appreciated. //andreas

you'd need set container div within blurrable cell, surrounding cell's contents.

<tr> <td>...</td> <td> <div style="position: relative"> <div id="calendar">...</div> <div id="blur"></div> </div></td> etc...

this way guarantee absolute positioning done relative container div, , not whatever element farther tree relative (which <body> or <html>).

css

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -