DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Making Bordercolor Work In FireFox / Mozilla
IE and Safari support the bordercolor attribute directly on TABLE elements which colors the external and internal borders. FireFox does not, but you can use standard CSS to fix it.
TABLE { border: 1px solid #eee; }
TABLE TD { border: 1px solid #eee; }Unlike most solutions, this also correctly changes the color of the cell borders.






Comments
Ahsan Gill replied on Fri, 2013/05/10 - 6:45am
event security newry event security lisburn event security londonderry event security belfast event security armagh event security county-armagh event security swansea event security st asaph event security newport event security cardiff event security bangor event security stirling event security perth event security inverness event security glasgow event security edinburgh
Snippets Manager replied on Wed, 2009/06/03 - 7:57pm
Snippets Manager replied on Mon, 2012/05/07 - 2:12pm
#mytable1, #mytable1 td {border: 1px solid #eee;}html:Snippets Manager replied on Mon, 2007/02/05 - 10:02pm
Snippets Manager replied on Thu, 2006/03/16 - 10:26pm
/* same rule, applied to two elements */ table, table td {border: solid 1px #eee;}Snippets Manager replied on Thu, 2006/03/16 - 10:26pm