Im looking for a solution to place a div (100% screen width and lets say 20% height) on top of iframe which is 100% screen width and 100% screen height It should look like this:
__________________________
|| On top DIV ||
||_______________________||
| |
| Iframe |
| |
|_________________________|
Super simple stuff..
put an iframe, and a header div inside one container div.
set position:relative on the container, and position:absolute and top:0 on the header div.
that should do it.
HTML:
CSS:
fiddle
It should be possible, what's the problem?
Make sure you have the
position
style set toabsolute
(orfixed
, depending on your need) and set the properz-index
if necessary. Also adjustwidth
andheight
as needed.The concept of Rodik answer is good but the implementation is buggy.
put an iframe, and a header div inside one container div.
set position:relative on the container, and position:absolute and top:0 on the header div.
In HTML code
In CSS
http://jsfiddle.net/eayr9pup/2/