![]() The method of handling HTML table borders without CSS has been around since the earliest days of Internet, so much so that with some adjustment it works in Netscape 3.04 - 6.0, Mozilla 0.6 - 1.7. That space gets the color set by bgcolor attribute of table tag and since it differs from the background of rows and cells, this creates visual boundary line of the table background's color around the cells. ![]() Cellspacing attribute of table tag is used to create a space around table cells.Bgcolor attribute of tr tag is employed to make the background of table's content (that is, rows and cells) to be of a certain, different from table background's, color.Bgcolor attribute of table tag is used to make its background to be of a certain color.Nowadays, as with HTML centering, this method is perfectly usable, even if CSS border styling is more convenient in most cases. to table cells can be interpreted a bit more loosely by browsers. div elements obey the box model strictly, while adding padding etc. It is not exactly handling borders themselves, but rather imitating doing it by exploiting the cellspacing and bgcolor attributes. Default margins, borders and padding are all 0, so when you wrap a div around some text, there is no space between its edges and the text. Handling HTML table visual borders was one of them. Some time ago, mostly (but not only) in 1990s there were several pure HTML tricks used to achieve things now done by CSS.
0 Comments
Leave a Reply. |