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

The Archive Base Latest Questions

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

I am trying to make a cool background effect (with alpha transparency and rounded

  • 0

I am trying to make a cool background effect (with alpha transparency and rounded corners) for a drop-down menu with a single CSS entry.

I have a top cap (180 x 4 px), a bottom cap (180 x 20px) and a repeating middle (180 x 2px).

Here is my existing relevant CSS:

background-image: url('images/drop_top.png'), url('images/drop_bottom.png'), url('images/drop_middle.png');
background-position:left top, left bottom, 0px 10px;
background-repeat:no-repeat, no-repeat, repeat-y;

The problem is that the middle section which needs to be expandable/tilable is repeating all the way under the top and bottom caps–such that my rounded corners are now square because they have the repeating middle under them.

Is there some way to prevent the multiple backgrounds from overlapping??

Thanks in advance!

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

    Background-origin and/or background-clip should do the trick. Just set top & bottom borders equal to the height of your cap graphics, then set drop_middle to background-clip:padding-box


    EDIT: Here is a complete solution, but for a horizontal orientation:
    http://jsfiddle.net/nGSba/

    #box
    {
        display: inline-block;
        margin: 1em;
        padding: 9px;
        border-left:9px solid transparent;
        border-right:9px solid transparent;
        background-image: url(http://s11.postimage.org/ufpdknvjz/left.png), 
              url(http://s11.postimage.org/6ng294tj3/right.png),
              url(http://www.css3.info/wp-content/themes/new_css3/img/main.png);
        background-repeat: no-repeat, no-repeat, repeat-x;
        background-position: left top, right top, left top;
        background-origin: border-box,border-box,padding-box;
        background-clip: border-box,border-box,padding-box;
    }
    

    What got me stuck was the transparent on the border-color. The background will always go under the border, so if your border is solid the background will still be invisible.

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

Sidebar

Related Questions

I'm rather new to jQuery and I'm trying to make a cool little menu
Alright now i am trying to make a cool looking table with using CSS
I'm trying to make a cool effect for one the of the apps I'm
I've been trying to make use of a cool feature of YASnippet: write snippets
Im trying make a menu with the next structure: -category 1 --category 1.1 ---category
I am trying make long screen to vertical direction. So, I need a screen
Trying to make a make generic select control that I can dynamically add elements
Trying to make a MySQL-based application support MS SQL, I ran into the following
Trying to make a generic PL/SQL procedure to export data in specific XML format,
Trying to make a web service call to an HTTPS endpoint in my Silverlight

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.