I looked at forums that were looking for the answer to this question, but so far nothing has worked. I am using CSS3 style flexbox for footer on my website. HTML is as follows:
<footer class="footer" role="contentinfo"> <div id="box1" class="box"> <a class="btn" id="btn-donate" href="#">Donate</a> <a class="btn" id="btn-news" href="#">Get News</a> </div> <div id="box2" class="box"> <h2>Quill Theatre</h2> <p>PO Box 7265<br> Richmond, VA 23221</p> <p> Info@QuillTheatre.org <br> 804.340.0115</p> <span>Social goes here</span> </div> <div id="box3" class="box">3</div> </footer>
And my CSS looks like this: its a bit dirty bc. I am trying to work with a bunch of:
.footer { display: flex; display: -webkit-flex; -webkit-flex-direction: row; flex-direction: row; flex-wrap: wrap; -webkit-flex-wrap: wrap; -webkit-flex-flow: row wrap; width: 100%; } .footer .box { order: 1; min-width: 50%; flex: 1 1 auto; -webkit-flex: 1 1 auto; flex-shrink: 1; flex-basis: auto; -webkit-flex-shrink: 1; -webkit-flex-basis: auto; } .footer #box2 { order: 0; min-width: 100%; flex: 2 2 auto; -webkit-flex: 2 2 auto; -ms-flex: 2 2 auto; text-align: center; border-top: 3px solid black; border-bottom: 3px solid black; padding-bottom: 2em; } .footer #box2 h2 { text-transform: uppercase; }
This works fine in every browser except Safari - the wrapper does not happen. What am I missing here, what does the wrap not allow?
source share