Call (877) SITE-OPT (748-3678)

Code: Convert spacer cells

From Chapter 6: Web Page Optimization

A common practice is to use spacer cells with a single-pixel GIF that is stretched to enforce the spacing distance. Here is an example from

<!-- Empty spacer row -->
<td colspan="2" width="223"><img border="0" alt="" height="10" width="223" src="/

Even rocket scientists can use some help with their HTML. A better way would be to use CSS to add spacing between cells:

<style type="text/css"><!--
    .vmargin {margin-top:10px;} --></style></head><body>
<td colspan="2" width="223" class="vmargin">Content goes here</td>

Even better is to use relative "em" spacing to allow for changes in font size made by the user and div elements:

<style type="text/css"><!--
    .vmargin {margin-top:1em;} --></style></head><body>
<div class="vmargin">Content goes here</div>
Copyright © 2002-2018 Website Optimization, LLC. All Rights Reserved - Free website speed test - Privacy Policy
Last modified: February 19, 2009.

Follow us on: Twitter, Google+, Facebook, Linked In