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

  • Home
  • SEARCH
  • 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 8276873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:30:49+00:00 2026-06-08T08:30:49+00:00

I want to Create Box shadow as given below. As per my study of

  • 0

I want to Create Box shadow as given below.

As per my study of Box shadow. It takes below parameters:

DIV {
box-shadow: <horizontal> <vertical> <blur> <color> [inset]
}

Please, Find the jsfiddle for this.

I want to Create Box shadow as given below.

To create above examples, I need to use box shadow.

For example 1, I used below style:

 box-shadow:0px 10px 22px 0px gray;

Here, I am getting lighter shadow on top, left and right side also (which I don’t want)

In example 2, I used below style:

 box-shadow:10px 10px 22px 0px gray inset;

I don’t want inner shading to right and bottom part.

Is it possible to remove unnecessary shading in box-shadow ?

  • 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-06-08T08:30:51+00:00Added an answer on June 8, 2026 at 8:30 am

    You can have a box shadow just on one side, on two sides, three sides, but in that case you should set the blur value to zero – see demo http://dabblet.com/gist/1579740

    However, you can emulate the first kind of shadow by wrapping your div into another outer div of the same width, but slightly bigger height on which you set overflow: hidden;

    If you don’t need the background of your div to be semitransparent, then you could also emulate the second one using an absolutely positioned pseudo-element in order to obscure the bottom and right shadows.

    DEMO http://dabblet.com/gist/3149980

    HTML for first shadow:

    <div class="outer">
        <div class="shadow1"></div>
    </div>
    

    CSS for first shadow

    div {
        width: 100px;
        height: 100px;
    }
    .outer {
        padding-bottom: 35px;
        overflow: hidden;
    }
    .shadow1 {
        box-shadow: 0px 10px 22px 0px gray;
        background: #f0f0f0;
    }
    

    HTML for second shadow

    <div class="shadow2"></div>
    

    CSS for second shadow

    .shadow2 {
        box-shadow:10px 10px 22px 0px gray inset;
        position: relative;
        background: #f0f0f0;
    }
    .shadow2:before {
        top: 22px;
        bottom:0;
        left:22px;
        right:0;
        position: absolute;
        background: #f0f0f0;
        content:'';
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to a create dialog box like window before displaying the console window.
I want to create an alert box with 3 radio buttons in it. It
I want to create a search box with the search button directly to the
I want to create a search box that will combine search URLs and combine
I want to create a form which has a text entry box where a
I want to create a GUI in which the combo-box allows me to open
I want to create JSF table which has select all button and check box
I have three problems: I want to create resizable shapes with box bounding... I
how to create a watermark text box in winForm i want to use in
Is there any way to create a css box-shadow in which regardless of the

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.