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

What's the difference between display:inline-flex and display:flex?

$
0
0

I am trying to vertically align elements within an ID wrapper. I gave the property display:inline-flex; to this ID as the ID wrapper is the flex container.

But there is no difference in presentation. I expected that everything in the wrapper ID would be displayed inline. Why isn't it?

#wrapper {    display: inline-flex;    /*no difference to display:flex; */}
<body><div id="wrapper"><header>header</header><nav>nav</nav><aside>aside</aside><main>main</main><footer>footer</footer></div></body>

Viewing all articles
Browse latest Browse all 1675

Trending Articles



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