Hi guys,
I've another problem. I tried to center the log in button but I couldn't get anything done. What have I done wrong?
CSS
.centerEverything {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
line-height: 2.5em;
}
input[type=submit] {
padding: 0.5em 1em;
cursor: pointer;
border: none;
border-radius: 0.2em;
}
Input type submit button not centered?
Moderators: ushakumarik, DeviSri
Re: Input type submit button not centered?
Alright,
I fixed it. I have an element floated left before it. So this caused the trouble.
I fixed it. I have an element floated left before it. So this caused the trouble.
Re: Input type submit button not centered?
or you can just add text-align: center in your main div.
Re: Input type submit button not centered?
yeah, that's great idea.
Who is online
Users browsing this forum: No registered users and 1 guest