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

css nav bar

how can i create those vertical line between the values on the navbar?

19th May 2018, 11:51 AM
‫נעם ונונו‬‎
‫נעם ונונו‬‎ - avatar
3 Answers
+ 3
you mean the lines between the boxes right? for that , one way of doing that is - using css - border property. like for vertical bar, use border-bottom: 5px black solid; for horizontal bar, use border-right: 5px black solid; but now one more step, the first box would need an extra line in its top (in vertical) or left (in horizontal) for that we use li:first-child{ border-top: 5px black solid; for vertical or border-left: 5px black solid; for horizontal } to draw that extra line by targeting only that box.
19th May 2018, 12:27 PM
Sandeep Chatterjee
+ 6
Theres no specific tag for that,most of the time css border attribute is used nav #elems{ border:2px solid white; }
19th May 2018, 12:27 PM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar
+ 1
thats what i meant, thank you!
19th May 2018, 12:28 PM
‫נעם ונונו‬‎
‫נעם ונונו‬‎ - avatar