Skip to content

Instantly share code, notes, and snippets.

@dwanjuki
Last active August 12, 2025 08:30
Show Gist options
  • Save dwanjuki/1a5ec14b00f358bb60298c5d6a829167 to your computer and use it in GitHub Desktop.
Save dwanjuki/1a5ec14b00f358bb60298c5d6a829167 to your computer and use it in GitHub Desktop.
PMPro Advanced Levels compare table highlight example CSS
#pmpro_levels.pmpro_advanced_levels-compare_table thead tr:first-child th.pmpro_level-highlight::before {
content: "★ RECOMMENDED ★";
position: absolute;
top: -15px;
left: 50%;
transform: translateX(-50%);
background: #007cba;
color: white;
padding: 8px 15px;
border-radius: 20px;
font-size: 12px;
font-weight: bold;
text-transform: uppercase;
white-space: nowrap;
}
#pmpro_levels.pmpro_advanced_levels-compare_table thead tr:first-child th.pmpro_level-highlight {
border-top: 3px solid #007cba !important;
}
.pmpro_advanced_levels-compare_table thead th.pmpro_level-highlight {
border-left: 3px solid #007cba !important;
border-right: 3px solid #007cba !important;
}
.pmpro_advanced_levels-compare_table thead tr:last-child th.pmpro_level-highlight {
border-bottom: none;
}
.pmpro_advanced_levels-compare_table tbody td.pmpro_level-highlight {
border-left: 3px solid #007cba !important;
border-right: 3px solid #007cba !important;
}
.pmpro_advanced_levels-compare_table tbody tr td.pmpro_level-highlight {
border-bottom: none;
}
.pmpro_advanced_levels-compare_table tfoot td.pmpro_level-highlight {
border-left: 3px solid #007cba !important;
border-right: 3px solid #007cba !important;
}
#pmpro_levels.pmpro_advanced_levels-compare_table tfoot tr:last-child td.pmpro_level-highlight {
border-bottom: 3px solid #007cba !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment