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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -