html - Regarding the absolute positioning property -


i have div have positioned using absolute positioning property of css. , want know whether there way allow div showing in exact same position seeing right in screen when screen smaller or larger without changing absolute positioning property of div?

this rough example:

<div class="name"> somewhere in body </div> ................... ..................so , codes... .................. <div class="display">i want stand beside class called name </div> 

if write css display, comes beside class name

.display {     position: absolute;     width: 200px;      top : 132px; [assume]     left : 200px; [assume]     border: #d3d3d3;      -webkit-box-shadow: 5px 5px 15px #888;     -moz-box-shadow: 5px 5px 15px #888;     box-shadow: 5px 5px 15px #888; } 

it displaying correct screen. if screen size varies no longer showing correct position since have used absolute positioning property. want find whether there way or trick solve without changing absolute positioning property.

wrap -

<div id="someid">     <div class="display"></div> </div> 

and add css

#someid {     position: relative;      width: 0;      height: 0; } 

Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -