Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Brian van Vlymen
12,637 PointsHow to make submit make text-center (bootstrap) on Laravel?
I have tried
{{ Form::submit('Submit', array('class' => 'btn btn-info', 'text-center'))}}
it was not doing anything still sitting on the left side of screen.
and
{{ Form::submit('Submit', array('class' => 'btn btn-info', 'class' => 'text-center'))}}
it was change the color submit and color to default. its not good.
How to do the Submit to make the center with bootstrap?
3 Answers
Gareth Borcherds
9,372 PointsHave you looked at doing:
{{ Form::submit('Submit', array('class' => 'btn btn-info text-center'))}}
Brian van Vlymen
12,637 Pointsstrange its not working. button-center and btn-center does not working. any thought? hmm?
Gareth Borcherds
9,372 PointsThinking about it a little more, you should actually have the text center on the parent div of the button. So wherever you are putting the button, the parent element it's enclosed in should have the text-center attribute. Make sense?
Brian van Vlymen
12,637 Pointsoh yeah thanks