|
-
May 15th, 2012, 03:00 AM
#1
Problem overlay div
Hi, I'm making a weekly planner, with a div for every description event.
On click on event, a balloon with its details becomes visible.
I illustrate the problem with this image:

The below balloon is displayed correctly because the relative event div was created AFTER the event than overlapping.
Unlike the above balloon, is overlapped by the other events, because they were loaded after that.
I would that in any case, the balloon div will overlap with any event div.
I tried setting the z-index, but does not work.
If it can be useful to place the css event and the comic:
Code:
.weekEvent{
position:absolute;
background-color:#FFF;
border:1px solid #000;
z-index:1000;
}
.balloon{
position:absolute;
border:1px solid #000;
left:100px;
top: 80px;
width:200px;
height:auto;
font-size:0.7em;
padding:1px;
background-color:#F6DBA2;
display : block;
z-index:100000;
}
Of course the balloon div is contained in week event
What's wrong?
thanks
Last edited by tonyhef; May 15th, 2012 at 03:03 AM.
-
May 15th, 2012, 11:23 AM
#2
Re: Problem overlay div
You should be creating the balloons dynamically with JavaScript during the onclick event. Just pass the populating HTML as a parameter.
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|