Anyone Help With iFrames?

Lol bro, I forgot about this thread xD

Anywyay, here's what I am doing atm in my new site. You can style the shit out of the text and iframe but i think this will do the job :)

Demo:

Code:
[url]http://demosite.comxa.com/iframe/[/url]

Code:

Code:
<html>

<style type="text/css">
.pos {
    position: relative;
    left: -10px;
    top: -5px;
}
</style>

<body style="background:#ffcc00">

<center>Random text brah! :p</center>

<div style="position:fixed; top:40px; left:0; width: 100%; bottom: 0; border: 0 ">
<iframe src="http://www.blackhatworld.com/" style="width: 100%; height: 100%; border: 0">
<p>Your browser does not support iframes.</p>
</iframe>
</div>

</body>
</html>

Enjoy bro! :p
 
I recently did something similar on a site I was testing. The only way I could place a banner over the area I wanted to hide was using CSS as suggested by Raffy above. It was the only option I had as the part I wanted to cover was a button halfway down the right side of the screen.

I think CSS may be the best option if you want to position something over the iframe.

It does work quite well and I found it much easier to customize the CSS, I think I still have the code if you are still looking for a solution to this.

It would look something like this (obviously with a nicer banner)

View attachment 48180

Hi, still been trying to do this, I need to be able to do it without using CSS. I am now not bothering cutting the Iframe, but would like to know how to get the iFrame in an image frame which would mask the parts of the iFrame which I do not want on show.

I have tried moving a banner over the top of the iFrame, however the banner goes behind the iFrame and not on top.
 
Last edited by a moderator:
Back
Top