css class question
-
I realize this isn’t a WP specific question, but I’ve scoured the internet, W3schools, etc and everything sure looks like I’m doing this right but it’s not working…
I am setting CSS for my tables, I have a “header” (it’s not a true header, just an extra row) above my regular header. You can see it here:
https://tech.bareasschoppers.com/engine/alternate-oil-filters-vtx/
It is the line on top of the table that says “Replacement Oil Filters…”
Now, I have regular styling elements in a class called “.vert_table” which do the styling for the regular header and the cells below. I also created another class called “.table header” to style this very top line. All the elements of the styling are working except for the padding. I realized that it may be because I need to specify padding for a “td” element, so this is my class code:
.table_header { background: #e6e6e6; font-size: 1.4em; color: #900b0c; font-weight:bold; text-align:center; } .table_header td { padding: 15px 15px; }
And as I said, everything in the top class works but the bottom “td” section with the padding does not. What is confusing is that I have other classes setup in this same manner and the padding does work.
Is it possible that something is over-riding it? I do have another class defined for the entire table, but I thought that this specific class would over-ride that.
PS – I know that the 15px padding is huge, I’m just using it so I am sure to notice when it’s fixed.
Thanks in advance to anyone who takes a minute to look at this and help.
- The topic ‘css class question’ is closed to new replies.