Issue
I'm an absolute beginner when it comes to HTML & CSS, so I reckon that this might sound easy to some of you.
I was looking for a way to add a simple shadow to the navbar, like the one on codecademy.com/ to my pre-existing nav bar. I'm including the HTML & CSS of it in codepen below:
[https://www.codepen.io/CodingAddict/pen/QWbmBVQ][2]
Solution
Add a box-shadow to your nav bar. not to site-header.
nav {
box-shadow: 0 2px 4px 0 rgba(0,0,0,.2);
}
Answered By - Kasun Gunawardana
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.