PDA

View Full Version : Table CSS Styling


seventhaxis
03-07-2014, 11:55 PM
EDIT: I'm a doofus and I missed a = somehow. Seems to be working.

I'm trying to add a 1px border to my tables on certain pages, so I created the CSS element abtables and added the following code:

.abtables tr {
border-bottom: 1px solid #e9e9e9;
}
.abtables tr:first-child {
border-top:none;
}
.abtables tr:last-child {
border-bottom:none;
}

Of course I'm taggin the table with class="abtables" but I get no change. I must be doing something wrong. Any help is greatly appreciated!

ozzy47
03-07-2014, 11:58 PM
Not totally sure if this is the issue, but this is in the template:

<table width="100%" class"abtables"="">

seventhaxis
03-08-2014, 12:14 AM
Yeah -- that was the exact issue. Thanks Oz, I'm a doofus.

ozzy47
03-08-2014, 12:16 AM
Excellent, glad it's sorted. :)