DaveLinger Posted July 28, 2006 Share Posted July 28, 2006 hello everyone,I'm looking to add a 5 or 10 pixel white border around the outside of my table. Dunno the code to do that.Thanks! Link to comment https://forums.phpfreaks.com/topic/15885-adding-a-colored-border-around-the-outside-of-a-table/ Share on other sites More sharing options...
wildteen88 Posted July 28, 2006 Share Posted July 28, 2006 This should do it:[code]table { border: 5px solid #FFFFFF;}[/code]This will affect all tables on your webpage. If you give your table a class name called say, tbl-border, you can do this instead:[code]table.tbl-border { border: 5px solid #FFFFFF;}[/code]Also this wont affect the table cells, it'll only add a border around the parameter of the table. Link to comment https://forums.phpfreaks.com/topic/15885-adding-a-colored-border-around-the-outside-of-a-table/#findComment-65145 Share on other sites More sharing options...
DaveLinger Posted July 28, 2006 Author Share Posted July 28, 2006 thanks for the help, I went ahead and used it in-line, style="" style. Link to comment https://forums.phpfreaks.com/topic/15885-adding-a-colored-border-around-the-outside-of-a-table/#findComment-65261 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.