Jump to content

Box-shadow


ffej

Recommended Posts

Using eternal css. I have an all grey background-color and wanted to add a shadow around a heading for effect. Now the box around the h1 stands out. Is there a way to keep the shadow and hide the box?

Ex.

H1 {border-style:hidden}/*the box still shows?*/

Link to comment
Share on other sites

If I understand you correctly, use span inside header element, apply display: block; give that a inner box-shadow using inset and maybe apply border-radius: to both to hide sharp corners.

 

The other option is not use box-shadow but use elliptical gradient background.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...