Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   Table cell borders (http://forum.bytesforall.com/showthread.php?t=19699)

prooffairy Feb 22, 2013 06:13 AM

Table cell borders
 
I've been trying to style a particular table and can't get it to work properly.

basicaly I just want this one table to have borders round the table and between each cell (like a grid). I've given it's own id and class "table-fees" and I've got the border round the outside but can't get the cell borders to work - can any help please?

It's at http://79.170.40.48/professionalcomm...sh-in-england/ - click on the sub link near the top for Fees to see the table.

juggledad Feb 22, 2013 06:59 AM

ato->Style TABLES->Table Body Cells

prooffairy Feb 22, 2013 07:04 AM

OK that does it, thanks - but for all my tables! how do I do that for the one table I want lines in - the one I've given a separate class/id?

juggledad Feb 22, 2013 07:11 AM

then you have to code some CSS with a selector that is specific for that table - looks like you can use the table's ID you set for it. Write your CSS selector and rule and put them in the CSS Inserts.

prooffairy Feb 22, 2013 07:34 AM

I have:

.table-fees {
background: #ffffff;
color: #000000;
font-weight: bold;
text-align: center;
padding: 4px 8px;
text-align: left;
border:1px solid black;
}

What do I need to add?

juggledad Feb 22, 2013 07:46 AM

Quote:

What do I need to add?
I'm not sure I understand your question...

prooffairy Feb 22, 2013 07:54 AM

I can change the settings for the cell border via the ATO table style section - but that changes ALL my tables! The front page especially is set as a table and I do not want lines around that.

So I have given the one table I want borders in a table id/ class and have put that code (the one in my last post) in the CSS Inserts - but I cannot work out what the command is to include table cell borders on tghat table, or how to get it to do what I want. Please help -I know CSS a little bit but am being defeated by this!

What do I need to have in CSS Inserts to make jut one table have cell borders?

juggledad Feb 22, 2013 09:08 AM

What is the HTML element that makes up a table cell?
How can you uniquely identify that in your table?

Answer these and you should be able to write the CSS selector you need

prooffairy Feb 22, 2013 09:33 AM

AH ... so I need to give the td a special ID class? Not sure - that's why I;'m asking on here!

juggledad Feb 22, 2013 11:08 AM

remember you can use a parent element/id/class as part of your CSS selector (hint hint) something that would make the rules only apply to the object you want it to.


All times are GMT -6. The time now is 05:07 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.