Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6590987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:22:04+00:00 2026-05-25T17:22:04+00:00

I have a div box with box-shadow set around it with the following CSS:

  • 0

I have a div box with box-shadow set around it with the following CSS:

-moz-box-shadow: 1px 1px 15px #415a68;
-webkit-box-shadow: 1px 1px 15px #415a68;
-khtml-box-shadow: 1px 1px 15px #415a68;
box-shadow: 1px 1px 15px #415a68;

What can I do to make box-shadow only apply to the left, right and bottom of the div?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T17:22:05+00:00Added an answer on May 25, 2026 at 5:22 pm

    You cannot do this with ONE div.

    EDIT

    box-shadow does not allow right and left shadows at the same time.

    There is a trick, though…read on.

    The rule takes four values:

    1. defines the horizontal offset of the shadow. + value for a right shadow and – value for a left shadow.
    2. defines the vertical offset. + value for a bottom shadow and – value for a top shadow.
    3. defines the blur distance
    4. defines the spread

    That is all true. However, after some tests I found you can layer shadows.

    All you need to do is separate the values with a comma.

    So, for a left, right, and bottom shadow on one div, you can do this

    box-shadow: -5px 5px 3px black, 5px 5px 3px black;
    

    Example: http://jsfiddle.net/jasongennaro/HWCzJ/1/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to have the shadow surround the entire DIV? -moz-box-shadow: 3px 3px
I want a shadow below div called shadow: #shadow { box-shadow: 1px 1px 1px
I have a menu div and below is content div. When I add box-shadow
Ok, I'm quite new to CSS3. I have this code: <div class=Mat-Shadow-Box-Text> <div class=Mat-Shadow-Box-TextBleu2>
I want to have box-shadow on three sides of a div (except top side).
Can I have an inset shadow along the bottom of a div only? I've
I have a status message box (div box) positioned at the bottom of a
Let's say we have a box with some short paragraphs: <div style=overflow:hidden> <p>Some text</p>
I have the following HTML DIV which does not work using FadeIn in IE:
I have a website with the following setup: <div id=container> <div id=header></div> <div id=content></div>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.