1. Home
  2. Computing & Technology
  3. Web Design / HTML

Using Temporary Styles to Convert an HTML Document

By , About.com Guide

If you're trying to convert an HTML document to be HTML+CSS or XHTML it helps if you understand the layout of the old page. The best way to do that is to style the tables and cells within the document to show borders and spacing.

table { border: solid 2px red; margin : 2px; }
td { border: dotted 1px blue; padding : 2px; }

This will set the outer borders of the tables to a thick red line while the borders of the cells themselves are a dotted blue line.

Using these temporary styles will make it easy to see the tables and the shape of the entire page without having to excavate the actual HTML code.

Explore Web Design / HTML
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Web Design / HTML

©2009 About.com, a part of The New York Times Company.

All rights reserved.