Center class not working for a nested button
See original GitHub issueDescription
When a Submit button is a child to a div with class row the class center is giving the same result as class left whereas right works perfectly fine.
Repro Steps
make a submit button a child to div tag.
<div class="row">
<button class="btn waves-effect waves-light center" type="submit" name="action">Submit
<i class="material-icons right">send</i>
</button>
</div>
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Can't click on button element when nested inside of Div's?
I have a button nested inside of ...
Read more >Is it possible to centre a <table> nested in a <td> using CSS?
Is it possible to centre a <table> nested in a <td> using CSS alone and no HTML attributes. It needs to work in...
Read more >CSS · Bootstrap
Note that, due to padding and more, neither container is nestable. Use .container for a responsive fixed width container. <div class="container"> ...
Read more >Cascade, specificity, and inheritance - Learn web development
Often, the problem is that you create two rules that apply different ... We have then added the class special to the second...
Read more >Selectors - W3C
Note: If an element has multiple class attributes, their values must be concatenated with spaces between the values before searching for the class....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The class
.center
just appliestext-align: center
. For floating I see just.left
and.right
here.Try using
.center-align
or.center
on the.row
(the parent element / wrapper).See here
You forgot to remove the
right
class: http://codepen.io/anon/pen/peQagE