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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T00:27:01+00:00 2026-05-12T00:27:01+00:00

I am having trouble getting a background-image to overlay the border of another div.

  • 0

I am having trouble getting a background-image to overlay the border of another div. We have a sidebar panel with various sidebars, including a navigation menu. To the right is the content panel. We’d like anything selected on the sidebar to appear connected to the content panel:

alt text

In the example above, there is a background image on the Personal Info <li> tag. I’d like to extend this image one pixel to the right so that the line next to the selected value isn’t visible.

Here is my CSS for the submenu (selected) and the Content area to the right:

.submenu-item li span{
  padding: 4px 0 4px 16px;
  min-height: 16px;
  border-bottom:0px;
}

.submenu-item li{
  font-size:12px;
  border: none;
  padding: 0px 0 0px 16px;
}

.submenu-item span.Active{
  background-image: url(../images/submenu-select.png);
  background-repeat: no-repeat;
}

#Content {
  margin-left:190px;
  border-left: 1px solid #b0b0b0;
  padding: 20px;
  background: #FFFFFF;
  min-height:600px;
}

Is there a way to do this other than putting a right border on my sidebar (and excluding it on the list item tag)?

  • 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-12T00:27:01+00:00Added an answer on May 12, 2026 at 12:27 am

    If you have a border on that right, you just can’t eliminate that part of the border.

    However, you’re in luck. Try using margin-right: -1px; in your CSS. This will drag the

    element to the right 1 pixel, and hopefully over the border. You may need to also set

    position: relative;
    z-index: 100; 
    

    Also, because it’s over to the right 1 pixel, to make it align on the left with the others, you may need to make the active element 1 pixel wider.

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

Sidebar

Related Questions

I am having trouble getting my background image to span the entirety of my
I'm having some trouble getting large background images I have for a site in
I am having trouble getting my Form background image to display correctly with a
im having trouble getting a string (containing a URL) from one activity to another.
I'm having a bit of trouble getting a SQL query to work. Some background
I'm having some trouble writing a correct algorithm for centering a background image. Here's
I'm having trouble getting my content script to communicate with my background page. I'm
I'm having some trouble getting an SVG file set as a background of an
I'm having trouble getting rid of the gray border in my button that has
I'm having trouble getting IE to not display a background of a child element

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.