So, I am very new to html, so I am sorry if this is a noob question, but I want to make a website based off of this concept art I threw together on Photoshop. I know how to make a nav bar, but do not know how to make it so it just has outlines around the items as shown. What would my code look like, so it does not have any background or outline on the top. Thank you!
4
Answers
The correct way to do this is with the
border
rules. Here is their documentation: https://developer.mozilla.org/en-US/docs/Web/CSS/borderYou can add a bottom border to the navbar, and put a right border to each of the individual links. Your code will look something like this:
This should give you some basic idea, and you can customise further on it.
I’d use
border-bottom
andborder-right
for links, then removeborder-right
from the last link using pseudo-classlast-child
. For rounded corners you can useborder-radius
property.Useful links:
Something like this?
CSS:
HTML: