skip to Main Content

CSS "overflow: hidden;" still works on the pseudo "::after"

content: '>'; in ::after is clipped by overflow: hidden; .centered-text { display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 30vw; } .centered-text::before { content: '<'; } .centered-text::after { content: '>'; } <div style="text-align:center;"> <span style="float:left;">I'm on the left</span> <span…

VIEW QUESTION
Back To Top
Search