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

what does css display:contents do?

$
0
0

I had a bug-like issue with a div inside a '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 right only). Padding wasn't shown in google chrome developer tools. But after trying many things I accidently tried the autosuggestion display: contents.This removed that padding.

What is this display: contents do?What does it do to <a> tag?


Viewing all articles
Browse latest Browse all 1326

Trending Articles



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