materialize icon indicating copy to clipboard operation
materialize copied to clipboard

Make buttons (button group) position centered

Open zigy opened this issue 12 years ago • 7 comments

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

zigy avatar Nov 28 '14 11:11 zigy

+1

moxx avatar Oct 14 '15 09:10 moxx

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

shailendra-gupta-dev avatar Oct 14 '15 12:10 shailendra-gupta-dev

+1

craigbennett1981 avatar Nov 18 '15 15:11 craigbennett1981

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 avatar Nov 20 '15 03:11 acburst

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

ghost avatar Jan 20 '16 22:01 ghost

Yes @acburst is right.

Dogfalo avatar Jan 20 '16 23:01 Dogfalo

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!

tomscholz avatar Jun 16 '17 14:06 tomscholz