Quantcast
Channel: Active questions tagged flexbox - Stack Overflow
Viewing all articles
Browse latest Browse all 1307

what does css display:contents do?

$
0
0

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?


Viewing all articles
Browse latest Browse all 1307

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>