MyBB Community Forums

Full Version: tr:last-child issue
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, I have table codes in my forum which use classic td, tr stylings.

Basically, I have 2 themes with exact same files (except background images) but tables in those themes look different.

The issue is this, while in one theme table styling is getting directly from trow1, which is: 

.trow1, .trow2 {
    background: #2D2D2D;
    padding: 6px;
    border-top: 1px solid #252525;
    border-bottom: 1px solid #343434;

in other theme, border-bottom 1px solid one is getting overwritten by this:

.tborder tbody tr:last-child td {
    border-bottom: 0;

.trow1, .trow2 {
    background: #2D2D2D;
    padding: 6px;
    border-top: 1px solid #252525;
    border-bottom: 1px solid #343434; (not active)

Now the thing is I have this code in other theme's templates aswell, any idea why while in one theme it effects but in other one it doesn't?