html - Aligning opposite edges of divs-2 -


i want green box lie immediate bottom left red header always, if user zooms in , out web page.

demo: http://jsfiddle.net/bvqcx/

now, want margin-left property given green box. or red box @ center. can provide me jsfiddle solution? solution must div based layout.

similar question: aligning opposite edges of divs

                         |red box|                |green box| 

place green box inside red box div, make position: absolute. shift left width of green box:

html:

<div class="header">this header.     <div class="leftsection">this left section</div> </div> 

css:

.header {     margin:0px auto;     width:100px; } .leftsection {     position: absolute;     width: 100px;     left: -100px; } 

fiddle: http://jsfiddle.net/bvqcx/1/


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -