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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:23:32+00:00 2026-05-30T16:23:32+00:00

I currently have a tab image that I want to re-create in CSS, but

  • 0

I currently have a tab image that I want to re-create in CSS, but I’m having some difficulty in covering up the box shadow of the content div.

enter image description here

This is what I currently have for CSS, and was wondering how I can get the tab div to cover the content div’s box shadow? I thought that z-index would have solved the problem, but the shadow is still visible.

    .sectionTab
{
    margin: 0px;
    padding-top: 7px;
    text-align: center;
    box-shadow: 0px -3px 5px #a6a6a6;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    z-index: 1;
}

.sectionContent
{
    margin: 0;
    padding: 15px;
    box-shadow: 0px -3px 5px #a6a6a6;
    z-index: 0;
}

And this is the html:

    <div class="sectionTab row span2">
    <h3>Tab title</h3>
</div>
<br /><br />
<div class="sectionContent span3">
        Regular text<br />
        <a href="#">Regular link</a>
        <span rel="tooltip" title="SIC Code Warning" class="ktIcon ktWarningOn"></span>
        <span rel="tooltip" title="ktWarningOff" class="ktIcon ktWarningOff"></span><br /><br />
        <input type="button" class="btn ktButton" value="Button" />
</div>

This is what I’m ending up with so far:

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-05-30T16:23:34+00:00Added an answer on May 30, 2026 at 4:23 pm

    A background for your tab would be appropriate. It’s transparent otherwise.

    So this:

    .sectionTab
    {
        margin: 10px 0 0 10px;
        padding-top: 7px;
        text-align: center;
        box-shadow: 0px -3px 5px #a6a6a6;
        -webkit-border-radius: 10px;
        -moz-border-radius: 10px;
        border-radius: 10px;
        z-index: 1;
        width: 100px;
        position: absolute;
        background: #fff;
    }
    
    .sectionContent
    {
        margin: 0;
        padding: 15px;
        box-shadow: 0px -3px 5px #a6a6a6;
        z-index: -1;
        position: absolute;
        width: 300px;
        top: 30px;
    }​
    

    See a working example here: http://jsfiddle.net/cdk4H/1/

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

Sidebar

Related Questions

I currently have links w/ class=ajax that I want to retrieve the element with
I have an IPhone application that I want to attempt login and do some
I have a Tab Bar controller inside a Navigation controller. I want to create
I have done a simple tab layout by using html <ul><li> with some CSS
I have seen numerous ways to highlight the current tab, but they all have
I currently have a Gridview , And I want to use client-side validation to
I currently have a query that looks like this: SELECT NON EMPTY ([Measures].[TOTAL]) ON
I currently have a UINavigationController based application that works just fine. I'd like to
I currently have a tab bar application in the works, and have run into
I have a problem with an image that I am applying a custom jquery

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.