Time to set the table

The most popular way to add borders to tables is with the primitive border="n" tag where “n” is a number expressing the thickness in pixels, so a table using <table boder="1"> looks like this:

Email: info at Admaris dot com
Phone/ Fax: 613.225.6324
Mail: 61-261 Botanica Pvt,Ottawa, Ontario, Canada, K1Y 4P9

But CSS comes to the rescue with a few simple statements like these:
table { border-collapse: collapse; border: 1px solid #0214cf; }
th, td { border: 1px dashed #0214cf;}

To give you this instead:

Email: info at Admaris dot com
Phone/ Fax: 613.225.6324
Mail: 61-261 Botanica Pvt, Ottawa, Ontario, Canada, K1Y 4P9

For a full treatment on the subject, see w3schools.com/css/css_table.asp

This entry was posted in Technical and tagged , . Bookmark the permalink.

Comments are closed.