Sent by Kevin Smith on 25 June 2002 12:12
On 06.25.2002 11:37 AM, lon.kraemer wrote:
> File size wise, I've saved only about 1K against the table based page.
> So, looking at the style block, what might be done to "shorten" it?
You could probably save a few bytes by dropping Tantek's hack & using
conditional comments to link a separate style sheet to WinIE5x.
Use shorthand hex colors: #fff instead of #ffffff
background-color:#1818D6 could be written as background:#1818D6
Also, how about #headrow div{float:left} & drop the float declaration from
the individual #mcN's?
FWIW, if you're trying to prove a point regarding CSS-based layout &
download times, It might be more impressive to use relative numbers. In this
case, your ~1K amounts to a ~16% reduction in file size.
Also, keep in mind that linked style sheets will be cached, so for
subsequent requests, there's a ~52% decrease in data transfer, when compared
to the table-based layout.
--
kevin c smith tel: 410.571.9462
[EMAIL-REMOVED] http://www.tatnet.com