So, I've got confused over this and then realized I actually don't have an idea what should I type as a query in Google so I'd get the answer:
If I wanted to define height and width in CSS3 using percentages, for example:
#wrap{
width: 100%;
height: 250%;
}
Is height calculated according to the full height of the view port, or is it calculated according to defined width (as if - the set width becomes a base value for everything)? For example:
width = 1000px
height = 1200px
Is then:
width = 100% <=> width = 1000px
height = 250% <=> height = 2.5 * 1200px = 3000px
or is:
width = 100% <=> width = 1000px
height = 250% <=> height = 2.5 * width = 2.5 * 1000px = 2500px
?
Also, does the same rule, whichever it may be, apply to all other elements as well? Do I calculate the height according to the height of the parent and width according to the width of the parent, or does width become THE 100% which everything relates to?