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 8574365
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:27:30+00:00 2026-06-11T19:27:30+00:00

I am trying to line this bottom shadow up as in the top shadow

  • 0

I am trying to line this bottom shadow up as in the top shadow but I cannot seem to get the firgured out. The only time it collapses is when I remove the line-height or font-size much further down in the css file using Developer Toolbars but of course this affects everything else too. Here’s my basic html structure:

<div class="banner-image">
  <div class="banner-image-wrapper">
    <div class="shadow-top"></div>
      <a class="header-image">
        <img />
      </a>
    <div class="shadow-bottom"></div>
  </div>
</div>

On the tag, if I remove the font-size and line-height, everything collapses nicely on itself but I cannot seem to force this just on the tag.

I know this is going to be a ridiculous issue once it’s been solved.

Thanks!

enter image description here

  • 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-11T19:27:31+00:00Added an answer on June 11, 2026 at 7:27 pm

    The answer is actually pretty simple, you just need to use some clever positioning & take advantage of the parent’s box-model:

    .banner-image{
        position:relative;
    }
    
    .shadow-bottom{
        position:absolute;
        height: x;
        bottom: -x;
    }
    

    Here’s the formula you need:

    • Take the height of the bottom shadow ( some value x )
    • Then make sure the parent of that element has a position of ‘relative’ (~important~)
    • Make the position of the bottom shadow ‘absolute’
    • Position it at the bottom minus the value of it’s height ( -x )

    Here’s a jsFiddle illustrating the effect: http://jsfiddle.net/k7CmJ/

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

Sidebar

Related Questions

I'm trying to draw a line that goes from middle top to bottom. I
I am trying parse the ESPN bottom line feed using RegEx but am coming
I've been trying to debug this search pattern not terminated error, but can't seem
I found this line of code and I'm trying to comprehend what it's doing.
I'm trying to convert this line into Batch how would one start this exe
I'm trying to understand this line from an strace on linux: sendto(10, \24\0\0\0\26\0\1\3\233\274\362O\0\0\0\0\0\0\0\0, 20,
I'm trying to use this line to detect browser type: IE or Firefox. alert(isBrowser(Microsoft));
I'm trying to use this line of code to accept URL variables with spaces
When trying to sign a firefox extension with this line: nss-signtool -k TestCert -d
I'm trying to load a .json file with this line: $.getJSON('engines.json',{},function(data){ alert(data); }); If

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.