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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:10:40+00:00 2026-05-27T13:10:40+00:00

Hi all. I’d like to be able to highlight a div inside a container

  • 0

diagram showing div layout I'd like

Hi all. I’d like to be able to highlight a div inside a container DIV that has overflow:hidden set (changing this is not an option). I’m using the CSS ‘outline’ and ‘box-shadow’ properties to do this. The issue is that when the DIV is the full size of the outer div, you can’t see that it’s selected as the outline is (unsurprisingly) clipped to the outer div. Also, if the inner div is against one of the edges the issue occurs.

The attached images shows the layout of the divs, red is the outer div, purple the ‘outline’ and black the DIV I want to highlight – in that example the purple highlight to the left is clipped.

So the question is, is there a way (JavaScript & jQuery are fine) of overlaying the black div with another div such that (a) the overlay div isn’t clipped to the outer div, and (b) when the black div moves or is resized, the overlay moves/resizes with it?

EDIT: It looks like this simply isn’t possible in HTML/CSS in the way I described.

  • 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-27T13:10:41+00:00Added an answer on May 27, 2026 at 1:10 pm

    Set theblack div to “positon:relative”. Then put the outline into that div, and set it with “position:absolute”. With top,left,with and height you can put it “around” the black div.

    Edit:

    Sry, the black div has to be position absolute, too. Working example see here:
    http://jsfiddle.net/t94FV/

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
All too often I want a WPF slider that behaves like the System.Windows.Forms.TrackBar of
All, See the code below: function menu() { this.menuitem=[]; this.submenu=[]; this.menuitem[0] = $('div#sivname1'); this.menuitem[1]
All programs that I develop utilize the default Windows Design template: Besides from changing
All of a sudden my form link looks like this: <form action=/r.ashx/Models.Module_ContactUs?action=Submit&amp;controller=Contact id=contactUsForm method=post>
All, Say I have the following divs: <div id=rotate_container> <div class=reviews id=item1>This is item
All, It's not this: Science At Hand - Adventures in UISplitViewController . That really
All I want is to be able to change the color of a bullet
All I want is to update an ListViewItem's text whithout seeing any flickering. This
All, I currently have two projects that are under SourceSafe that I am unable

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.