By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,747 Members | 2,011 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,747 IT Pros & Developers. It's quick & easy.

the page looks alright in Firefox but not in IE

P: n/a
Hi, My website is a joomla powered website: http://www.pradhanmanish.com.np
and i am loading a .php file from another server and displaying it on
my website as a module. While Firefox displays it correctly with a
transparent background, IE shows a big white box instead of being
transparent. The problem lies in the front page at the right side of
the home page. Can anyone please suggest some fix for this problem??
Thanks in advance.
Aug 14 '08 #1
Share this Question
Share on Google+
5 Replies


P: n/a
manish wrote:
Hi, My website is a joomla powered website:
http://www.pradhanmanish.com.np and i am loading a .php file from
another server and displaying it on
my website as a module. While Firefox displays it correctly with a
transparent background, IE shows a big white box instead of being
transparent. The problem lies in the front page at the right side of
the home page. Can anyone please suggest some fix for this problem??
Thanks in advance.
Your answer will lie in CSS rather than PHP
Aug 14 '08 #2

P: n/a
*** manish escribió/wrote (Thu, 14 Aug 2008 03:35:38 -0700 (PDT)):
Hi, My website is a joomla powered website: http://www.pradhanmanish.com.np
and i am loading a .php file from another server and displaying it on
my website as a module. While Firefox displays it correctly with a
transparent background, IE shows a big white box instead of being
transparent. The problem lies in the front page at the right side of
the home page. Can anyone please suggest some fix for this problem??
It's obviously a CSS issue. You're inserting an <iframethat doesn't have
any background property set for the <bodyelement. Your IE defaults to
white and your Firefox defaults to transparent.
--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor en cubitos: http://www.demogracia.com
--
Aug 14 '08 #3

P: n/a
On Aug 14, 11:11 am, "Álvaro G. Vicario"
<webmasterNOSPAMTHA...@demogracia.comwrote:
*** manish escribió/wrote (Thu, 14 Aug 2008 03:35:38 -0700 (PDT)):
It's obviously a CSS issue. You're inserting an <iframethat doesn't have
any background property set for the <bodyelement. Your IE defaults to
white and your Firefox defaults to transparent.
more specifically
element.style.filter = alpha(opacity = 69); for IE
element.style.opacity = "0.69"; for firefox

or the fancier -moz crap

But that's beyond the scope of the article,

Aug 14 '08 #4

P: n/a
I just found the answer;

The ALLOWTRANSPARENCY attribute, used with the IFRAME element, must be
set to true.
In the IFRAME content source document, the background-color or BGCOLOR
attribute of the BODY element must be set to transparent.

The BGCOLOR attribute can be applied to the BODY element, but it is
deprecated as of HTML 4.0. It is recommended that you use the
background-color attribute instead.

<BODY STYLE="background-color:transparent">

<IFRAME NAME="Frame1" SRC="frame.htm" ALLOWTRANSPARENCY="true">
</IFRAME>

Thanks anyways.
Aug 14 '08 #5

P: n/a
Paul Lautman wrote:
manish wrote:
>Hi, My website is a joomla powered website:
http://www.pradhanmanish.com.np and i am loading a .php file from
another server and displaying it on
my website as a module. While Firefox displays it correctly with a
transparent background, IE shows a big white box instead of being
transparent. The problem lies in the front page at the right side of
the home page. Can anyone please suggest some fix for this problem??
Thanks in advance.

Your answer will lie in CSS rather than PHP

NUke seattle.

Then ditch IE.

Problem solved!
Aug 14 '08 #6

This discussion thread is closed

Replies have been disabled for this discussion.