Materialize: Make buttons (button group) position centered

Created on 28 Nov 2014  路  7Comments  路  Source: Dogfalo/materialize

Center button (button groups) example:

HTML:

<div class="center-btn">
          <a href="" class="waves-effect waves-light btn">Stuff</a>
</div>

or

<div class="center-btn">
          <a href="" class="waves-effect waves-light btn">Stuff1</a>
          <a href="" class="waves-effect waves-light btn">Stuff2</a>
          <a href="" class="waves-effect waves-light btn">Stuff3</a>
</div>

CSS

.center-btn { text-align: center }

You can add this to the source code for greater user comfort. ;)

-cheers ZIGY

Most helpful comment

If all it is, is a div that has text-align: center, why not use our existing helper class center-align

http://materializecss.com/helpers.html

All 7 comments

+1

Yeah, it would be great to have button groups. Please add button groups.

+1

If all it is, is a div that has text-align: center, why not use our existing helper class center-align

http://materializecss.com/helpers.html

@acburst Totally agree, @Dogfalo any updates on this?

Yes @acburst is right.

I'm going to lock this issue because it's very old and any new discussion should probably happen on a new issue with a more specific title!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

serkandurusoy picture serkandurusoy  路  3Comments

ruslandzhumaev picture ruslandzhumaev  路  3Comments

PhillippOhlandt picture PhillippOhlandt  路  3Comments

alexknipfer picture alexknipfer  路  3Comments

Robouste picture Robouste  路  3Comments