The percentage works on the width of the container block, according to the css specifications
The percentage is calculated with respect to the width of the
generated box's containing block. Note that this is true for
'margin-top' and 'margin-bottom' as well.
See w3.org for more information.