Jump to content

Archived

This topic is now archived and is closed to further replies.

DaveLinger

Adding a colored border around the outside of a table

Recommended Posts

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!

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.