Web Design and Development Forums

Iframe background

This is a discussion on "Iframe background" within the CSS Forum section. This forum, and the thread "Iframe background are both part of the Design Your Website category.

Old Apr 22nd, 2008, 12:26   #1 (permalink)
New Member
 
Join Date: Apr 2008
Location: United Kingdom
Posts: 1
Iframe background

Hello everyone,
I have a question which is purely down to a small aesthetic issue but its a really bugging me! I have an iframe, code below:
HTML


HTML: Select all
<iframe id="blockrandom"
    name="iframe"
    src="http://news.bbc.co.uk/text_only.stm"
    width="100%"
    height="300"
    scrolling="auto"
    align="top"
    frameborder="0"
    class="wrapper">
    This option will not work correctly. 
        Unfortunately, your browser does not 
        support Inline Frames
</iframe>
CSS

HTML: Select all
#blockrandom {
    padding: 4px;
    max-width: 520px;
    min-width: 520px;
    width: 528px !important;
    margin: 2px 2px 0px 4px;
    background: #A6262A;
    border: 1px solid #FFF;
}
This is perfect in all browsers except internet explorer. Its supposed to have 4px redborder (hence padding) with a 1px white outline (border). IE doesn't read the background color for the iframe so I just get a 5px white border. Is there a way around this or am I just being an idiot?
Many thanks for any help
P
goangus 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

Thread Tools
Rate This Thread
Rate This Thread:

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
[SOLVED] refresh a different iframe once an iframe elsewhere has loaded cosmicbdog JavaScript Forum 1 Jan 25th, 2008 01:50
Can a jsp file in an IFrame calls a javascript function outside of the IFrame jadeite100 JavaScript Forum 0 May 31st, 2007 14:29
IFRAME - background color jansoft HTML Forum 0 May 18th, 2007 11:21
problem with iframe background image in IE dudeman CSS Forum 1 Apr 19th, 2006 01:13
Background and Resolution compatibility, My background gets cut off Funion CSS Forum 1 Dec 4th, 2005 04:42



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 10:06.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59