+ 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 Resposta
+ 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