I am confused as to what to use for this. Is it possible to use SASS to calculate the padding for an element based on another's height?
for example:
<div class="element-1">
<h2>Some Title</h2>
</div>
<div class="element-2">
<h2>Element Contents</h2>
</div>
Styles for the elements (varying according to screen size):
.element-1{
height:200px;
@extend .pos-fixed;
width:$site-width;
}
.element-2{
width:$site-width;
padding-top:calc(element-height(.element-1)+20px);
}
Compass enables me to do a similar thing with image-height and image-width, but how can apply this with padding-top:element-height(.element-1)+20px;?
Is this possible?