I have the following HTML structure:
<div class="outer">
<div class="inner">
<a href="#"/>
<a href="#"/>
<a href="#"/>
</div>
</div>
And CSS:
div.outer{
position:relative;
height:177px;
width: 495px;
margin: 0 10px 0 10px;
overflow: hidden;
}
div.inner{
position: absolute;
}
How is it possible to resize the outer div dinamically ? Height min-max does not work. Thank you !
For this to work the way I think you want it to work, then you’d need to use all three declarations:
min-height,heightandmax-height, with theheightbeing a relative measure, and themin-heightandmax-heightboth used to constrain that relative sizing to an appropriate minimum or maximum. For example:JS Fiddle demo
In the demo, resize the window to cause the ‘preview’ pane to expand/contract to see the effects.