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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T09:40:13+00:00 2026-05-24T09:40:13+00:00

I have a Div which contains a few absolutely positioned divs. The clickable area

  • 0

I have a Div which contains a few absolutely positioned divs. The clickable area of the top level expands to the area of the children, but the drawn area does not. I want the drawn area to surround all the container divs.

A JSFiddle of the code is here – http://jsfiddle.net/VolatileStorm/C29P8/

After a few refreshes you may notice a small red box in the top left corner (hidden by the divs). This is the container, and I want it to surround the children.

Any ideas? Thankyou.

  • 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-24T09:40:14+00:00Added an answer on May 24, 2026 at 9:40 am

    Seeing as you’ve already got a JS option, I’ll give you one using CSS. It may come across as something of a hack, but it works: http://jsfiddle.net/C29P8/131/

    The idea is to remove all positioning elements, set the “.pile” container to float: left;, which expands it to fit the content (also set the notes to float: left; as they have no positioning), and shift the notes, using margin-left: -100px; in “.note” and padding-left: 110px (the extra 10px of padding simply allows for the rotation of the note, keeping it within the red border) in “.pile” so that each note is drawn on top of each other.

    I’m not brilliant at explaining it, sorry, so I’ve commented the code I’ve added and changed on the JSFiddle page, which should hopefully be clearer.

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

Sidebar

Related Questions

I have a container DIV which contains several block-DIVS. Every block-DIV contains SPAN items
I have a <div> which contains a few links ( <a> tags) and other
I have a div (main div) which contains several div elements(sub divs). I want
I have a div which contains an img now I would center it but
I have a div which contains two nested divs, one that specifies a height
I have a main div which contains two divs. One for main content and
I have a Div Tag which contains 4 child Div Tags <Div id=Parent> <div
I have a <div> which contains a background image, the <div> sits within a
I have on my site a <div> which contains child <div> 's. I want
Ok, I have a label, inside this label is a div, which contains an

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.