I'm trying to centralize an anchor tag in foundation 6, I've tried the float-center class but instead of centralize it becomes expanded:
My code
<div class="column">
<!-- some html -->
<a class="large success button float-center">Sign Up</a>
</div>
Because float-center
have display:block
css property. Remove float-center
from a
tag and add text-center
class in column
div.
<div class="column text-center">
<!-- some html -->
<a class="large success button ">Sign Up</a>
</div>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.