View Full Version : Making Iframe Transparent
I have a problem, as on my iframe i need it to be transparent not wite background for my script. But it ain't working, i've tried 2 transparent codes,
alowtransparency="yes
&
transparent="yes"
and none work as the iframe just remains white :S, can anyone help as i need it for my script!
Moved by opensourcehost (Forum Moderator) from Web Designing: Please post in the correct forum next time, thanks http://habboxforum.com/images/smilies/smile.gif.
Jongo
15-07-2007, 08:32 AM
im not sure about this but try this...
on the pages with the stuff you want to show in the inline frame, get rid of all of the stuff inside the <head> tags. This then makes the document very very plain and simple HTML. I think that this might work because there is a document background element to it. the default is white so just delete all the <head></head> variables.
However, if you were to do a PHP include and embed a sort of inline frame this would be much more easier and also more appropriate.
Drompo
15-07-2007, 09:17 AM
alowtransparency="yes"
That would not work as allow has 2 Letter L's and its true not yes
allowtransparency="true"
That would work
nope they didn't work,
but i made a css stylesheet, and it worked :S
WOO for css
You cant spell.
allowtransparency="yes"
Jutnut
15-07-2007, 10:07 AM
In your head part:
<iframe name="iframe" src="mypage.html" width="50" height="50" allowtansparency="true"></iframe>
This goes in your css document:
<style type="text/css">
body,html{background-color:transparent;}
</style>
Jamie.
15-07-2007, 10:52 AM
another explanation could of been that the page he was directing to eg. home.php had a set background colour in this case remove the set background colour and have allowtransparency="yes" and yeh should work, css is a better way of doing sites nower days.
thanks to every1 that helped, 'll remember css next time lol ^^ +rep if i can
(except to blob as he seems to -rep me MULTIPLE TIMES)
thanks to every1 that helped, 'll remember css next time lol ^^ +rep if i can
(except to blob as he seems to -rep me MULTIPLE TIMES)
What the? Ive only -reped you once. Learn to count please.
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.