html - Why my css code doesn't center the elements on the page? -


i center apps icons on page, attached left site.. also, footer text © webservice 2015 - terms , conditions | privacy policy - can't find way center , put around 10px above bottom of page, me that? html code is:

<footer>             <div class="container">                  <div class="row">                            <ul class="footer-nav">                             <li><a href="#todo1">                           <img alt="and app"                                src="img/app_android.png" />                         </a></li>                          <li><a href="#todo2">                           <img alt="ios app"                                src="img/app_apple.png" />                         </a></li>                          <li><a href="#todo2">                           <img alt="win app"                                src="img/app_microsoft.png" />                         </a></li>                         </ul>                         </div>                         <div class="row">                        <p>© webservice 2015 - <a href="#">terms , conditions</a> | <a href="#">privacy policy</a></p>                 </div>             </div>         </footer> 

and css code is:

footer {     padding: 50px 0 } footer h1{     color: #24374b;     font-size: 16px; } footer p {     color: #c7cacc;     font-size: 12px; } footer ul {     margin-top: 30px } footer li {     float: none;     display: inline-block;     text-align: center;     margin-right: 10%;     text-transform: uppercase;     font-weight: 400; } footer {     color: #08c; } footer a:hover{     color: #c7cacc; } footer li:last-child {     margin-right: 0 } 

here jsfiddle --> http://jsfiddle.net/6q99awdf/

thanks!

you need give text-align: center; parent. take <li> <ul>:

footer ul {     margin-top: 30px;     text-align: center; } footer li {     float: none;     display: inline-block;     margin-right: 10%;     text-transform: uppercase;     font-weight: 400; } 

fiddle: http://jsfiddle.net/mlambha8/


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -