Jump to content


Photo

Adding a colored border around the outside of a table


  • Please log in to reply
2 replies to this topic

#1 DaveLinger

DaveLinger
  • Members
  • PipPipPip
  • Advanced Member
  • 268 posts
  • LocationWV, USA

Posted 28 July 2006 - 01:37 PM

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!
http://www.DaveLinger.com
dave at linger dot com

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 28 July 2006 - 01:54 PM

This should do it:
table {
    border: 5px solid #FFFFFF;
}
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:
table.tbl-border {
    border: 5px solid #FFFFFF;
}
Also this wont affect the table cells, it'll only add a border around the parameter of the table.

#3 DaveLinger

DaveLinger
  • Members
  • PipPipPip
  • Advanced Member
  • 268 posts
  • LocationWV, USA

Posted 28 July 2006 - 05:10 PM

thanks for the help, I went ahead and used it in-line, style="" style.
http://www.DaveLinger.com
dave at linger dot com




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users