iEntry 10th Anniversary Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > HTML, XHTML and CSS

Reply
 
LinkBack Thread Tools
Old April 17th, 2006, 10:04 PM   #1
New Member
 

Join Date: Apr 2006
Age: 27
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 dudeman is on a distinguished road
problem with iframe background image in IE

Hi, I have an iframe within a table cell. I want the iframe to have a fixed background image no matter what is displayed within it. The following is my code that works perfect in Firefox and Netscape, but does not work in IE. Does anyone know how I can work around this?

<HTML>
<HEAD>
<TITLE></TITLE>
<style type="text/css">
iframe.bkgrndimg{
background-image: url(rosesfaded.jpg);
}
</style>
</HEAD>
<BODY>


<table>
<tr>
<td rowspan=7><iframe class=bkgrndimg id=Iframe1 src="Home.htm" width=400 height=390></iframe></td>
</tr>
</table>
</BODY>
</HTML>
dudeman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old April 18th, 2006, 10:13 PM   #2
New Member
 

Join Date: Apr 2006
Age: 27
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 dudeman is on a distinguished road
Re: problem with iframe background image in IE

Actually I figured it out. All I had to do was make the background color of the source html page that fills the iframe transparent by adding this to the head:

<style type="text/css">
body {background-color: transparent}
</style>

After adding that it works perfect in IE

Dudeman
dudeman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
problem , iframe , background , image


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
SAFARI / IFRAME / DIV IMAGE problem shan HTML, XHTML and CSS 1 April 10th, 2008 06:41 AM
background-image rollover problem ie6 ukstoner HTML, XHTML and CSS 6 April 9th, 2008 11:00 AM
[SOLVED] div background image problem in ie Rincewind HTML, XHTML and CSS 7 November 30th, 2007 06:30 AM
Problem with my footer background image in IE dthomas31uk HTML, XHTML and CSS 3 July 1st, 2007 09:49 AM
Background Image Problem - Challenge! lgmgroup HTML, XHTML and CSS 2 January 23rd, 2007 01:09 PM


Search Engine Optimization by vBSEO 3.2.0 RC8