|
|
HTML Code TutorialColor in TablesFor browser compatibility color settings in tables should use the inline bgcolor attribute:
Tags that accept the bgcolor attribute are:
The code below shows how to set the color within the tags that accept the bgcolor attribute, to produce the table exhibited above..
<table width="200" cellpadding="2" cellspacing="15" border="0" bgcolor="#7F7F7F">
Note: If you are viewing this page in a Netscape browser the appearance of the table will be quite different than that of the IE display. Using Inline Style SheetsSimilar results can be obtained using Inline Style sheets. There are still problems with browser compatibility using this method in tables. The code and resulting table, below.
<table STYLE="background-color :#7F7F7F" width="200" cellpadding="2" cellspacing="15" border="0">
|
Contents Table of ContentsIntroduction Page Structure Basic HTML PageDoctype The Body Tag The Header Tag The Division Tag Horizontal Rule Anchor Tag Anchor Tag - Intradocument Anchor Tag - Image Using Borders The ID Attribute Meta Tags Text Controls Style SheetsWorking With Fonts The Paragraph Tag Paragraphs-Images Using Lists The Pre Tag Line Break Tag Tables Basics of TablesColspan Rowspan Bgcolor Attribute Background Images Forms Form BasicsCheck Boxes Text Boxes Selection Boxes Frames Basic FramesTarget and Scrolling Search Engines Miscellaneous Buttons with CSSUsing Color Using Images Using Templates Uploading HTML pages. | ||||||||
|
Copyright © 2008 - Net Success 2000 Plus Inc - Somerset KY 42502 |