简体   繁体   中英

Foundation 6 for sites: How to centralize anchor tags?

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM