Working on a responsive design and gradually losing hair and sleep. This one seems like a genuine webkit bug: http://jsfiddle.net/TAvec/
The problem is quite clear there – webkit interprets the 20% padding as 20% of the parent’s content box, while firefox and opera interpret it as 20% of the parent’s total box (including the parent’s padding).
Any ideas how to work around this whilst retaining the absolute positioning?
You can wrap the content of your
<aside>in adivand assign the padding to that, rather than to the<aside>. That way you can ensure that the padding in both FF and Chrome (haven’t tested O or IE) renders relative to the container i.e., the<aside>.Here it is in action: http://jsfiddle.net/KYyR7/3/