• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 299
  • Last Modified:

Overlapping Window html/css

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
wagazub
Asked:
wagazub
  • 2
1 Solution
 
Gurvinder Pal SinghCommented:
0
 
PagodNaUtakCommented:
Sample page?
0
 
wagazubAuthor Commented:
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
 
wagazubAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now