Sent by lon.kraemer on 25 June 2002 14:02
> Next, I want to pull the CSS from the page so's I can hide it from
NN4,
> et al.
>
> 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?
Kevin, Xian, Scott, Big John, etc.
I instituted all of the great suggestions you made in the CSS structure.
I didn't use Kevin's suggestion of using conditional comments in this
case, but I did find the idea intriging. It was interesting to note that
NN4+ also allows CCs:
http://www.dynamicdrive.com/newsletter/issue9.htm
I can see where this could be a useful alternative to feeding the Box
Model Hack to non-IE5.+ browsers.
For comparison, the XHTML/CSS page weighs 8.6% smaller than the
Table-based page on first load, then 17.5% smaller on subsequent loads
due to CSS caching. The savings would be more impressive hadn't it been
for the basic image dependencies in this case.
I've checked the page in IE6, N6.2 and O6 on my Win2kPro PC and IE5 on
Win98SE PC. I'm now ready to hear about other OS/Browser combos,
particulary MAC. I have my fingers crossed ;)
Original Table-based page: http://www.cityremodel.com/
XHTML/CSS-based page: http://www.cityremodel.com/xhtmlstrict.html
CSS: http://www.cityremodel.com/common.css
TIA,
--
Lon Kraemer
-----------------------------------------