Hello,
please consider the following code:
Code:.pseudo:after { content: "hello"; display: block; }Is there a way to center that pseudo element in regards to the width of <p>? The pseudo element should appeared centered under the text displayed in <p>.Code:<p class="pseudo">some content, not too long</p>
I tried with position absolute, with a negative value for bottom (so far so good), but I can't get things to get centered.
Regards,
-jj.![]()



Reply With Quote




)


Bookmarks