+ 1
How can i center my buttons please ?
https://code.sololearn.com/W39WTb1vg0M6/?ref=app PS : I'm french :)
10 Answers
+ 17
In this case, "text-align" property must be set for parent of your buttons, i.e. for <div id="content">.
Add:
#content {
text-align: center;
}
+ 11
You may try to apply center with text-align for the div wrapper. đ
+ 5
try this
#content {
text-align:center;
width:100%;
}
#content button {
margin-right: auto;
margin-left: auto;
display: block;
}
a fixed code
https://code.sololearn.com/WJd0im81Q9MK/?ref=app
+ 3
button {
margin-left: auto;
margin-right: auto;
}
+ 2
Yes but in inline-block
+ 2
Thank you a lot JFS đ
+ 1
it doesn't work :(
+ 1
The text-align doesn't work
0
it doesn't work too, my buttons are in the left side...
https://code.sololearn.com/W39WTb1vg0M6/?ref=app
0
Can anyone help me...