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

Why do my p elements not center align-center with boostrap flexbox properties?

$
0
0

This is the code I'm concerned with:

<div class="container-fluid d-flex align-items-center justify-content-between" id="footer"><div>Copyright 2019<span>&#169;</span></div><div>Back to Top</div><!-- <p>Copyright 2019<span>&#169;</span></p><p>Back to Top</p> --></div>

If you comment out the divs and try it out with the p tags, the align-items center class does not work. Why does the class work with the div's but not the p elements?


Viewing all articles
Browse latest Browse all 1307

Trending Articles



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