Jump to content

Background transparency for integration


fr0z3n

Recommended Posts

I'm using an iFrame to make WHMCS fit on my site, however i cant add any details to the index.php file without it saying the file is corrupt. I have already made (as far as im aware) the required changes in the style.css file and the iframe component itself (i am using joomla)

 

allowtransparency has been set to true in the iframe and i have set background-color: transparent; in the css file (to all backgrounds)

 

It works perfectly in firefox however is not working in Internet Explorer, and comes up with a white background.

 

the following post was on another forum:

 

but its still showing up white, unlike the subpages where it worked in every other instance..im thinking i might have to alter the code in the external.htm file itself

Yes, you do. Without a correct DOCTYPE, user agents will fallback to quirky behaviour. In this mode, IE defaults to a white background not a transparent one. Either set a DOCTYPE at the very start of the document:

 

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

 

<html>

<!-- ... -->or explicity set the background-color CSS property to transparent:

 

<head>

<style type="text/css">

html,

body {

background-color: transparent;

}

</style>

 

<!-- ... -->

</head>Either way, you still need the proprietary allowtransparency attribute.

 

I cant edit the index.php file without it becoming corrupt. Any workaround?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated