Home > database >  why psudeo after element's width is not relative to its parents width?
why psudeo after element's width is not relative to its parents width?

Time:12-05

I am trying to add a underline like symbol below the active link for that purpose i am used ::after element and set it's width to 100% to get its parent element's width but the psudo element is way much bigger when width is 100%;

my html code is

  • Related