Solved

Overlapping Window html/css

Posted on 2012-04-03
4
249 Views
Last Modified: 2012-04-08
I have a div containing an image. I want to place another div on top of the first div with instructions and a dismiss button. It must not be an alert window. It must scroll and remain in the same place if the parent window is resized. I know how to dismiss the top window. I have tried style position=relative: messes the rest of form, absolute: goes bad when resize window.
0
Comment
Question by:wagazub
  • 2
4 Comments
 
LVL 40

Expert Comment

by:gurvinder372
ID: 37800623
0
 
LVL 8

Expert Comment

by:PagodNaUtak
ID: 37800634
Sample page?
0
 

Accepted Solution

by:
wagazub earned 0 total points
ID: 37800808
Found the answer

<div style="position:relative;">

      <a ...... /> </a>

<div id="helper"  
        style="  position:absolute; left:50px; top:50px; width:300px;
</div>
</div>

Now the contained window is relative to the container. Jeez. Who would have known.
0
 

Author Closing Comment

by:wagazub
ID: 37820829
css is a bit opaque. Found this solution after searching and messing about for n hours.

See http://www.barelyfitz.com/screencast/html-training/css/positioning/
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
date format angularjs2 16 41
HTML Lists 3 29
Achieve json result 2 32
How to let div toggle even if i refresh page 2 7
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now