
February 5th, 2013, 06:18 PM
|
|
Registered User
|
|
Join Date: Jan 2013
Posts: 6
Time spent in forums: 45 m 44 sec
Reputation Power: 0
|
|
|
New Member - Using Inverse Percentages
Is it possible to use inverse percentage in padding? For example, I have the following structure:
<div class="parent">
<div class="child">
</div>
</div>
The CSS is:
.parent {
width: 300px;
height:300px;
}
So can I use something like:
.parent .child {
width: 90px;
height: 20000/height-of-parent-in-percentage
}
That way, as the height of the parent increases, the padding of the child decreases. So is something like this possible?
|