| Web Business Forms |
| Colour Chart |
| Color Impact |
| CSS Editing Tools |
| Search Engine Tips |
| DW/FW Tutorials |
| Submit Your Site |
| Useful Links |
| RSS News Feeds |
| Site Map |
| Contact Us |
![]() |
![]() |
| Page 1| Page 2 | Page 3 | Page 4 | Template Packages | Template Sale |
RESOURCES :: Mini Tutorials:: Table Border using CSS |
Setting a class or ID for table border:This goes in your stylesheet:
OR directly on your page:Cut this code and paste it directly before the closing </head> tag of your pages code. The </head> is near the top of the page in code view.
<style type="text/css"> and apply to the table <table class="bordertable"> |
Table Markup:<table border="0" cellpadding="0" cellspacing="0" class="borderTable"> Table looks like this: |
| Table class .borderTable |
We have given the table a 1px border.
Top and bottom padding of 2px
Left and right padding of 4px
A class may be used as many times as you like on a page.
This goes in your stylesheet:
Cut this code and paste it directly before the closing </head> tag of your pages code. The </head> is near the top of the page in code view.
<style type="text/css">
<!--
#borderTable {
padding: 2px 4px 2px 4px;
border: 1px solid #660000;
}
-->
</style>
and apply to the table
<table id="bordertable">
<table border="0" cellpadding="0" cellspacing="0" id="borderTable">
<tr><td>Table</td>
</tr>
</table>
| Table ID #borderTable |
We have given the table a 1px border.
Top and bottom padding of 2px
Left and right padding of 4px
An ID can only be used once per page.
| Templates | Nav Bars | Free Downloads | Resources | Ecommerce | Books | SEO | RSS Feeds | Contact Us | |
|
Dreamweaver Resources is owned & operated by Nadia Perre of PerreLink Web Solutions PO Box 250 Fairy Meadow (Wollongong) 2519 NSW Australia Copyright © 2003 - 2007 PerreLink Web Solutions |