<br> not working in floxbox
Posted: Tue Nov 29, 2022 10:52 am
Hi Guys,
I've created a simple login page and I want everything appears in the center vertically and horizontally. This would use mostly on a mobile phone. So I use flexbox as a solution.
The problem: the <br> tag doesn't seem to work in flexbox.
CSS
.centerEverything {
display: flex;
justify-content: center;
align-items: center;
}
How do I fix this and thanks in advance.
I've created a simple login page and I want everything appears in the center vertically and horizontally. This would use mostly on a mobile phone. So I use flexbox as a solution.
The problem: the <br> tag doesn't seem to work in flexbox.
CSS
.centerEverything {
display: flex;
justify-content: center;
align-items: center;
}
How do I fix this and thanks in advance.