alignment issue | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

alignment issue

how to align the navbar horizontally in the desktop veiw https://code.sololearn.com/W7QZH6gmYTo2/#

6th Jul 2022, 2:13 PM
Mariam Khaled
1 Answer
+ 5
Easies way is to use display: flex; And for mobile use display: block; You set this on nav container what have nav items as children. Here is good resourse about flexbox, so you can follow it: https://www.theodinproject.com/lessons/foundations-introduction-to-flexbox
6th Jul 2022, 2:42 PM
PanicS
PanicS - avatar