Working on an older site or with tables and need to remove spaces for image mactch-up or continuous backgrounds?

You will need to update your table elements. Remove cellpadding, cellspacing and border controls and replace them with CSS.

  1. make sure each table element has at least style="margin:0; padding:0; border:none;"
  2. place similar CSS code (in 1 above) into all images within the table elements
  3. Use the global CSS
    table {border-collapse:collapse;}

You may have to tweak vertical-align to top or bottom for image alignments, but the spaces should now be gone.

Have Fun! Visit our HTML Playground (now in HTML5).

VN:F [1.9.17_1161]
Rating: 7.0/10 (1 vote cast)
VN:F [1.9.17_1161]
Rating: 0 (from 0 votes)
W3C Valid removal of spaces between tables, rows and columns , 7.0 out of 10 based on 1 rating
 
Take a piece of the Web from WebPaws.com: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Facebook
  • LinkedIn
  • TwitThis
  • MySpace
  • Google Bookmarks
  • Webnews
  • Digg
  • del.icio.us
  • StumbleUpon
  • eKudos
  • email
  • Fleck
  • Hype
  • MisterWong
  • Print
  • Technorati
  • YahooMyWeb