CSS-optimized table.

Power Java
Techniques for Optimizing Web Site Development and Runtime Characteristics

Christopher A. Fregly
Listing 11. CSS-optimized table.


<HTML>
<HEAD>
<LINK REL=STYLESHEET
HREF="Sample.css"
TYPE="text/css">
</HEAD>
<BODY>
<TABLE border = "5">
<TR>
	<TD class="SpecialFlag">Special</TD>
	<TD class="LineNumber">Line 1</TD>
	<TD class="Description">Canned Peas(15928)</TD>
	<TD class="Brand">BrandX</TD>
	<TD class="CasePrice">3.97</TD>
	<TD class="EachPrice">1.97</TD>
</TR>
<!- 236 chars repeated * 1,000 rows = 236,000 = approx. 65%
reduction in size ->
</TABLE>
</BODY>
</HTML>

About the Author

Christopher A. Fregly is Senior Cunsultant for BEA Systems Inc. in Chicago. He can be contacted at chris@fregly.

Featured

Most   Popular
Upcoming Events

AppTrends

Sign up for our newsletter.

Terms and Privacy Policy consent

I agree to this site's Privacy Policy.