+ 2

i class icons not centering!

On the code below, the Icons wont vertically center... it only happens in this app and its very frustrating. I tried to vertically align but it doesnt seem to work on here... https://code.sololearn.com/W3GaAprX9p53/?ref=app These are Font Awesome icons by the way

27th Sep 2018, 10:14 PM
Jay
Jay - avatar
14 RĂ©ponses
+ 3
Yeah I wonder where the icons are in the mobile version 😂
28th Sep 2018, 1:45 AM
Jay
Jay - avatar
+ 2
vertical-align
28th Sep 2018, 12:57 AM
Jay
Jay - avatar
+ 2
it doesn't vertically align on a browser (chrome browser on sololearn)
28th Sep 2018, 1:07 AM
Jay
Jay - avatar
+ 2
On my desktop browser the icons are still not centering vertically. Thanks anyway. And SoloLearn keeps crashing when im looking at that code in particular on my mobile. Have no idea why
28th Sep 2018, 1:13 AM
Jay
Jay - avatar
+ 2
Yea! haha! Yet if you put it all into CodePen for example, it works all fine. Its just SoloLearn
28th Sep 2018, 1:16 AM
Jay
Jay - avatar
+ 2
I'll check it in the web browser tomorrow off to sleep now
28th Sep 2018, 1:49 AM
Jay
Jay - avatar
+ 1
You could add this: .menu { width: 100%; position: absolute; left: 0; right: 0; margin: auto }
28th Sep 2018, 12:09 AM
Janning⭐
Janning⭐ - avatar
+ 1
It didnt work for me 😔
28th Sep 2018, 12:12 AM
Jay
Jay - avatar
28th Sep 2018, 12:35 AM
Janning⭐
Janning⭐ - avatar
+ 1
You did mean horizontally center, correct? The request for vertically centering didn't make sense to me, but we can make that happen too.
28th Sep 2018, 12:38 AM
Janning⭐
Janning⭐ - avatar
+ 1
Yikes. I just opened up on browser and I see what you mean. đŸ€”
28th Sep 2018, 1:16 AM
Janning⭐
Janning⭐ - avatar
+ 1
I can't even see the icons after the menu is open in SoloLearn mobile, but hopefully I fixed it (sort of -- very hacky) in SoloLearn web browser. .fa { position: absolute; top: 25%; left: 0; right: 0; margin: auto; } No horizontal centering of the nav as a whole in SoloLearn web browser though, but I guess it's still vertically centered.
28th Sep 2018, 1:38 AM
Janning⭐
Janning⭐ - avatar
+ 1
nn Jay
28th Sep 2018, 2:14 AM
Janning⭐
Janning⭐ - avatar
0
No problem. .menu { height: 100%; position: absolute; top: 50%; left: 0; right: 0; margin: auto; } Updated in same Code Playground project previously linked. Edit: "width: 100%;" is better, so I updated it.
28th Sep 2018, 1:08 AM
Janning⭐
Janning⭐ - avatar