CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Threaded View

  1. #1
    Join Date
    Mar 2012
    Posts
    3

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured