CSS ::before ::after Format Problems
-
I hate to bother you with an ask, but I keep trying and failing to over-ride the theme’s default format.
Using Additional CSS, I was able to figure out how to insert a Unicode lead character withul li::before
, but have been unable to force attributes on the text usingul li::after
.
I also have been unable to prevent the character specified in::before
, from showing up in the mobile view menu and other odd places.The snippet of code:
ul {list-style: none}
ul li::before
{
content: "\25EA";
display: inline-block;
width: 1em;
margin-left: -1em;
}
ul li::after {
color: black;
font-weight: 400;
font-size: 14px;
font-family: 'Montserrat';
}Here is the entire string that contains it in the WordPress Additional CSS section:
.nav-head ul li a {
font-weight: 500;
font-size: 20px;
font-family: 'Passero One';
padding: 0px 0;
}
.page #content p a {color: black;
text-decoration: none;
border-bottom: 1px solid #DFDFE5;
box-shadow: 0 -3px 0 #DFDFE5 inset;}
.entry-content p a {color: black;
text-decoration: none;
border-bottom: 1px solid #DFDFE5 ;
box-shadow: 0 -3px 0 #DFDFE5 inset;}
.sidebar {font-family:'Montserrat'; font-size: 10px; font-weight:200;}
.sticky-title {margin:0 0 10; padding:0px 0; border-top:1px solid #cccccc; border-bottom:1px solid #ccc; text-align:left; font-family: 'Passero One'; font-weight: 600; font-size: 26px; color:#808080;}
.entry-meta .byline, .entry-meta .cat-links { display: none; }
.entry-meta .posted-on { display: none;
}
ul {list-style: none}
ul li::before
{
content: "\25EA";
display: inline-block;
width: 1em;
margin-left: -1em;
}
ul li::after {
color: black;
font-weight: 400;
font-size: 14px;
font-family: 'Montserrat';
}Next follows a composite image of what it looks like, what it should look like.
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘CSS ::before ::after Format Problems’ is closed to new replies.