How to place a background for a single table cell?
You can put a background for a single table cell in two ways namely:
Either by using HTML
Using CSS
HTML Approach:
In this one can make use of the td tag as follows:
text
But the above approach is not fully compatible or does not follow the HTML specification.
CSS Approach: This approach is much easier and simpler to follow rather the earlier one especially in case when there is a need to apply for a single cell. This is specified as follows:
...
Not only for a single cell is this approach easier. Even if one wishes to apply the same background for multiple cells or for several pages this approach is easier. This is because in those cases the user can specify the rule as specified above and define that rule using a CLASS attribute that making it applied to multiple cells or several pages.
Asked by:
GeekAdmin |
Member Since Oct-2005
| Asked on: Sep 23rd, 2006
Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.