best way to achieve this in css
what's the best way to achieve this, please?
i have tried:
.learn-more::after {
height: 3em;
width: 5em;
background-color: var(--yellow);
margin-top: 1em;
}
but it doesn't show up on my page at all even when i inspect it7 Replies
Any pseudo element requires you to specify content
So add this to your rule above
To get that effect you will also need to position it
thank you, i added content and it worked. i used
display: block
and margin
to position itUnknown User•2y ago
Message Not Public
Sign In & Join Server To View
anywhere i can read up more on this? i don’t quite get it
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
aight, preciate your help
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View