We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Borders Within Borders
Topic Started: Jun 29 2012, 03:31 AM (327 Views)
Silas09
Member Avatar
Member
[ * ]
Board Address: Private
Board Software: ZB
Description: I am just wondering what I need to do in order to get borders inside the td/cell border like this...

Offline Profile Goto Top
 
Meta Ing-ZNR
Member Avatar
---
[ *  *  *  * ]
You may find it helpful to read my Table Properties Tutorial.

The general idea here is that you will want to set the border-collapse property to separate[1], the border-spacing property to 1px (or however much space you want between the table cells/headers), and a background color on the table to be shown between the cells/headers. After this is done, table cells/headers will become visually separated, and the borders can be added.

For example, the following css...
Code: CSS
 
table{
border-spacing:1px; /* space between cells */
background:#404040; /* background displayed between cells */
color:#FFF;
}
td,th{
background:#797979; /* table cell/header background */
border:1px solid #999; /* table cell/header border */
vertical-align:top;
}


...would style a table like this.

Of course, the exact implementation needed to achieve the desired results will most likely require more work, but hopefully this will help set you in the right direction.

Note: if you are editing a theme not created by you, be sure to get permission from the author before applying these changes.
[1] this is default, so it's sufficient to leave this out and simply remove border-collapse:collapse; from the table block in the css.
Offline Profile Goto Top
 
Steve
Member Avatar
patriot
[ *  *  *  *  *  *  *  *  *  * ]
Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic