HTML/CSS footer on mobile site doesn't work on IPhone safari How to fix? -


i'm having trouble mobile website. client wants these text based buttons/links on bottom added them, i'm little rusty on using size percentages.

i need make , stay on same line, stretch accordingly text isn't small read.
can make looks , works fine on samsung or nexus, using iphone caused third text element move next line rather shrink.

mobile website: http://teetimelawn.com/m/html/index.html

edit (screnshot of iphone simulator showing problem):

http://i.imgur.com/r0re0i5.png

how typically looks on android phones liks nexus: http://i.imgur.com/tkplv4v.jpg


html:

<section id="footer">     <div id="footer">         <div id="full"><a href="http://www.teetimelawncare.com">full site</a></div>         <div id="foot"><a href="tel:18156096969">call us</a></div>         <div id="footer-right">tee time lawn care &copy; </div>       </div> </section> <!-- #footer --> 

css:

#footer {     color: #fff;         font-size: 100%;     line-height: 45px;     font-weight: bold;     text-transform: uppercase;     background:#00cc00;     line-height: 18px;     text-align: center;     height: 30px; }  #foot {     font-size: 100%;     background-color: purple;     display: inline-block;     padding-left: 10%;     padding-right: 10%;     height: 30px; }  #full {     font-size: 100%;     float: left;     margin-left: 20px; }  #footer-right {     font-size: 100%;     float: right;     margin-right: 20px; } 

there quite few issues html. first, have 2 ids; 1 should present. second, divs full, foot, footer-right should list item. there isn't reason need ids. if want special color middle, give class.

<ul class="footer">   <li><a href="http://www.teetimelawncare.com">full site</a></li>   <li class="purple"><a href="tel:18156096969">call us</a></li>   <li><span>tee time lawn care ©</span></li> </ul> 

then can use text-justify justify lis. take @ codepen more information on that: http://codepen.io/anon/pen/djoah


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -