I had a bug-like issue with a div inside an 'a' tag.
<a href=''><div>..</div></a>
this <a>
tag was inside a flex parent.For some reason, this <a>
added a padding to the div (from the right only). Padding wasn't shown in Google Chrome developer tools. But after trying many things I accidentally tried the autosuggestion display: contents
.This removed that padding.
What doe display: contents
do?What does it do to the <a>
tag?