Last active
August 12, 2025 08:30
-
-
Save dwanjuki/1a5ec14b00f358bb60298c5d6a829167 to your computer and use it in GitHub Desktop.
PMPro Advanced Levels compare table highlight example CSS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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