IFRAME - background color

This is a discussion on "IFRAME - background color" within the Web Page Design section. This forum, and the thread "IFRAME - background color are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 18th, 2007, 11:21
New Member
Join Date: May 2007
Location: Greece
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
IFRAME - background color

I try to set the background color in an IFRAME where the src is not a html page but an image but it seems that it only works in firefox.
For example
<iframe bgcolor="#FF6600" style="background-color: #FF6600" name="image" src="img/1.jpg" width=400 height=600 scrolling="NO" marginwidth=0 marginheight=0 frameborder="NO" border=0 framespacing=0></iframe>
It is used as a photo album, where the user can click on a thumbnail and view it in large in the iframe place holder

Here is the problem: If the image selected is smaller that the dimensions of the iframe, then the background of the iframe is white (#FFFFFF)
Both style="background-color: #FF6600" and bgcolor="#FF6600" work fine in firefox, but not in ie

I also tried background-image: url(someimage.gif) where someimage.gif is a single color #FF6600 image, without any luck.
allowTransparency also does not work in this case.

As a further test I made, the only thing tha ie understands is, when a filter with opacity is applied. In this case if you set opacity - alpha at 50%, then you can see #FF6600 at half brightness and the same applies to the image of course. Another question is, why ie understands the backgound color in this case (only when the filter is applied)?

Some help please?
Reply With Quote

Reply

Tags
background color, css, iframe, image, img

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
Having a problem with background color? jaambees Web Page Design 2 Jan 4th, 2008 02:05
background color in xml kool77 Other Programming Languages 2 Jul 7th, 2007 15:30
background-color kapyrossi Web Page Design 5 Jul 4th, 2007 15:53
background color kaz Web Page Design 4 Aug 4th, 2005 17:28
background color kaz Web Page Design 1 Apr 20th, 2005 11:43


All times are GMT. The time now is 01:25.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43