0

need help (css)

how do i center 3 divs above each other. in the middle of the page. the complete middle

8th Jan 2023, 11:35 PM
Ali Hussein Mohsen
Ali Hussein Mohsen - avatar
6 Answers
- 1
i fixed it. im a pro now and better than everyone .
13th Jan 2023, 1:17 PM
Ali Hussein Mohsen
Ali Hussein Mohsen - avatar
+ 3
div { align:center; }
9th Jan 2023, 12:17 AM
BroFar
BroFar - avatar
+ 1
its pretty easy once you learn the flex property in CSS, search for css flexbox in youtube
9th Jan 2023, 12:17 AM
arturop200
arturop200 - avatar
+ 1
You can also use absolute or flex property In positioning it helps
9th Jan 2023, 1:49 AM
Fahad Kinq
Fahad Kinq - avatar
0
Share your attempt. Then we can help you better.
9th Jan 2023, 6:00 AM
Chris Coder
Chris Coder - avatar
0
Since theyre all block elements they all will take up the whole width of the page. Use css: div{ margin: 0 auto; } You can also use flexbox or grid but the code above will also take care of it.
10th Jan 2023, 10:09 PM
Andres Alvarez
Andres Alvarez - avatar