PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, November 9, 2022

[FIXED] How to add a shadow under a navbar using CSS?

 November 09, 2022     css, effects, html, nav, navigation     No comments   

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's web to my pre-existing navbar. I'm including the HTML & CSS of it in this codepen


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
Answer Checked By - Marilyn (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing