Thierry wrote up an excellent technique for this that is incidentally very
useful when scaling embedded media. The linked article frames it in that
context, but the principles are the same: a padding property percentage
will take relative width as its reference:

alistapart.com/article/creating-intrinsic-ratios-for-video
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to