Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-02-2005, 01:51 AM   PM User | #1
cweaver
New Coder

 
Join Date: Dec 2004
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
cweaver is an unknown quantity at this point
IE vs FireFox

I'm not certain how to get the effect in IE that I'm already getting in FireFox. In FireFox the site that I've just started developing appears as I would like it to. The background image appears behind the content text.

Here's some relevant code:

<BASE TARGET="contentframe">

<div class="content">
<iframe frameborder="0" src="H_Home.html" name="contentframe" id="adframe" width=860 height=400></iframe>
</div>


in the css file:
.content{
position: relative;
top:140px;
height:600px;
width:750px;
left: 125px;

}


So the idea is that with each link the referenced material goes into the iframe. It works, but in IE the frame wipes out the background image while in FireFox the image shows through the iframe background.

How do I get the same look in IE?
Here's the site:
http://hovsc.org/CGW%5FTest/
cweaver is offline   Reply With Quote
Old 12-02-2005, 02:30 AM   PM User | #2
pramsey
New Coder

 
Join Date: Dec 2005
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
pramsey is an unknown quantity at this point
Try adding this to your iframe tags
Code:
 allowtransparency="true"
__________________
Web hosting...webmaster support http://www.eofficeprofessionals.com/forums
Offer solutions-not criticism.
pramsey is offline   Reply With Quote
Old 12-02-2005, 04:09 AM   PM User | #3
cweaver
New Coder

 
Join Date: Dec 2004
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
cweaver is an unknown quantity at this point
Quote:
Originally Posted by pramsey
Try adding this to your iframe tags
Code:
 allowtransparency="true"
This didn't get it, but thank you for the response!
cweaver is offline   Reply With Quote
Old 12-02-2005, 04:18 AM   PM User | #4
drhowarddrfine
Senior Coder

 
Join Date: Oct 2005
Posts: 1,340
Thanks: 0
Thanked 61 Times in 60 Posts
drhowarddrfine can only hope to improve
First, you can't put a link to a style sheet in the body.
Second, you have some css errors. Validate your css to view them.
drhowarddrfine is offline   Reply With Quote
Old 12-02-2005, 05:32 AM   PM User | #5
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
Do what pramsey told you to do and change this
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> Hospice of the Valleys, Sun City - HOVSC - Home Page -- Under Construction  </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="Christopher Weaver">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>

<BODY>
Our Home page will go here.  
</BR>
</BR>
</BR>
Not ready yet.

</BODY>
</HTML>


<!-- 	<li><a href="Home.html">Our Home Page</a></li>
	<li><a href="NotReadyYet.html">An Intro to Hospice Care</a></li>
	<li><a href="NotReadyYet.html">Transitions</a></li>
	<li><a href="NotReadyYet.html">Making a Donation</a></li>
	<li><a href="NotReadyYet.html">Our Memorial Pages</a></li>
 -->
to this
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<TITLE> Hospice of the Valleys, Sun City - HOVSC - Home Page -- Under Construction  </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="Christopher Weaver">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<style type="text/css">
body {
background-color:none; /*if none doesn't work try transparent*/
}
</style>
</HEAD>

<BODY>
Our Home page will go here.  
<BR>
<BR>
<BR>
Not ready yet.

<!-- 	<li><a href="Home.html">Our Home Page</a></li>
	<li><a href="NotReadyYet.html">An Intro to Hospice Care</a></li>
	<li><a href="NotReadyYet.html">Transitions</a></li>
	<li><a href="NotReadyYet.html">Making a Donation</a></li>
	<li><a href="NotReadyYet.html">Our Memorial Pages</a></li>
 -->
</BODY>
</HTML>
_Aerospace_Eng_ is offline   Reply With Quote
Old 12-02-2005, 06:58 PM   PM User | #6
cweaver
New Coder

 
Join Date: Dec 2004
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
cweaver is an unknown quantity at this point
Quote:
Originally Posted by drhowarddrfine
First, you can't put a link to a style sheet in the body.
Second, you have some css errors. Validate your css to view them.
I'm aware of the link being out of place. The source of the menu system that included it has suggested a correction. Thanks for pointing it out though.

I don't know how to validate css. I've gone to validate.w3c.org (which is how I discovered the link problem) but I don't see how to validate css there.

Thanks for your help.
cweaver is offline   Reply With Quote
Old 12-02-2005, 07:03 PM   PM User | #7
mark87
Senior Coder

 
Join Date: Dec 2004
Location: Essex, UK
Posts: 2,636
Thanks: 0
Thanked 0 Times in 0 Posts
mark87 is on a distinguished road
http://jigsaw.w3.org/css-validator/
__________________
markaylward.co.uk
mark87 is offline   Reply With Quote
Old 12-02-2005, 07:10 PM   PM User | #8
cweaver
New Coder

 
Join Date: Dec 2004
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
cweaver is an unknown quantity at this point
Thanks, _Aerospace_Eng_! This worked. I think I get it now. My iframe content was blowing away the transparency effect because I didn't specify transparency (or background-color:none) for each of the content files.

Last edited by cweaver; 12-02-2005 at 07:13 PM..
cweaver is offline   Reply With Quote
Old 12-02-2005, 07:14 PM   PM User | #9
cweaver
New Coder

 
Join Date: Dec 2004
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
cweaver is an unknown quantity at this point
Quote:
Originally Posted by mark87
Thanks. I've bookmarked this page.
cweaver is offline   Reply With Quote
Old 12-03-2005, 02:59 AM   PM User | #10
drhowarddrfine
Senior Coder

 
Join Date: Oct 2005
Posts: 1,340
Thanks: 0
Thanked 61 Times in 60 Posts
drhowarddrfine can only hope to improve
Sorry, wrong thread.

Last edited by drhowarddrfine; 12-03-2005 at 03:02 AM..
drhowarddrfine is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


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

Forum Jump


All times are GMT +1. The time now is 02:19 PM.


Advertisement
Log in to turn off these ads.