CSS frame work in IE but not FF

This is a discussion on "CSS frame work in IE but not FF" within the Web Page Design section. This forum, and the thread "CSS frame work in IE but not FF are both part of the Design Your Website category.


 Subscribe in a reader

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

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old May 16th, 2007, 11:46
Up'n'Coming Member
Join Date: Apr 2007
Location: Norwich, Norfolk - England
Age: 16
Posts: 83
Thanks: 2
Thanked 5 Times in 4 Posts
CSS frame work in IE but not FF

Hiya, I have created a frame on a site (www.rarecommunications.co.nr) and I have used CSS on the page in the frame to have a fixed background so only the text moves. However it doesn't work on FF. Is there any reason why?
Code: Select all
html {
background: url('../Images/news_writeable_com.png') no-repeat fixed;
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old May 16th, 2007, 12:33
Reputable Member
Join Date: Dec 2005
Location: Texas
Age: 19
Posts: 328
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS frame work in IE but not FF

if i were you i wouldent use png's/ they're less "browser friendly". change it to a gif, or a jpg.

also you have it in the wrong place, its supposed to be in the body, not the html. makes a big difference
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old May 16th, 2007, 14:41
Up'n'Coming Member
Join Date: Apr 2007
Location: Norwich, Norfolk - England
Age: 16
Posts: 83
Thanks: 2
Thanked 5 Times in 4 Posts
Re: CSS frame work in IE but not FF

Its not in the body its in a seperate sheet, I used notepad to make my CSS stylesheet.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old May 16th, 2007, 18:00
Reputable Member
Join Date: Dec 2005
Location: Texas
Age: 19
Posts: 328
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS frame work in IE but not FF

thats ok. this is what i ment.
[code]
body{
background: url('../Images/news_writeable_com.png') no-repeat fixed;
}

Last edited by daygon; May 16th, 2007 at 18:01. Reason: hehe Ooops
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old May 17th, 2007, 19:13
Up'n'Coming Member
Join Date: Apr 2007
Location: Norwich, Norfolk - England
Age: 16
Posts: 83
Thanks: 2
Thanked 5 Times in 4 Posts
Re: CSS frame work in IE but not FF

Ok, ive done that and it works in FF but now it doesn't work in IE. Is there a way of making it work in both?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old May 17th, 2007, 19:27
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: CSS frame work in IE but not FF

Well perhaps if you added a position for the background etc.. that may help although not quite sure why you are using framesets etc..
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old May 17th, 2007, 19:30
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: CSS frame work in IE but not FF

#foo {
background: url(../Images/news_writeable_com.png) left top no-repeat;
background-position:fixed;
}
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old May 17th, 2007, 19:41
Up'n'Coming Member
Join Date: Apr 2007
Location: Norwich, Norfolk - England
Age: 16
Posts: 83
Thanks: 2
Thanked 5 Times in 4 Posts
Re: CSS frame work in IE but not FF

That didnt work. If you gom to www.rarecommunications.co.nr you will see why I need it. I want to have a news section without making the site any bigger than needed so I have set up a frame which will fit into the center of the content box.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old May 17th, 2007, 20:11
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: CSS frame work in IE but not FF

You can simulate frames via CSS and do a <?php> include or a jsp include etc etc depending on your needs.
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old May 17th, 2007, 20:14
Up'n'Coming Member
Join Date: Apr 2007
Location: Norwich, Norfolk - England
Age: 16
Posts: 83
Thanks: 2
Thanked 5 Times in 4 Posts
Re: CSS frame work in IE but not FF

I just want something really easy which I can edit easily how would I make a php include?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old May 17th, 2007, 21:23
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: CSS frame work in IE but not FF

Assuming your server has PHP installed.

<?php include("../includes/foo.php"); ?>
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old May 18th, 2007, 02:22
Reputable Member
Join Date: Dec 2005
Location: Texas
Age: 19
Posts: 328
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS frame work in IE but not FF

i donno. moojoo maybe your making things more complicated than you think. jj double check your code and make sure you spelled everything right. Sometimes thats my problem and you can see why, just look at some of my previous posts.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old May 18th, 2007, 10:27
Up'n'Coming Member
Join Date: Apr 2007
Location: Norwich, Norfolk - England
Age: 16
Posts: 83
Thanks: 2
Thanked 5 Times in 4 Posts
Re: CSS frame work in IE but not FF

Quote:
Originally Posted by daygon View Post
i donno. moojoo maybe your making things more complicated than you think. jj double check your code and make sure you spelled everything right. Sometimes thats my problem and you can see why, just look at some of my previous posts.
I have checked and everything seems to be fine. Now, it works on FF but not IE isnt't there a way to show a frame with a fixed BG on both browsers? (css) to go t my site ad see what I mean (site) someone please help!

JJ
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old May 18th, 2007, 11:07
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS frame work in IE but not FF

Here's the code right
Code: Select all
<td colspan="3" align="center" valign="bottom" background="Images/news_writeable_com.png">
            <!--webbot bot="HTMLMarkup" startspan -->
      <iframe src ="../Rare/News_Frame.htm" width="100%" height="99%" frameborder="0"></iframe>
      <!--webbot bot="HTMLMarkup" endspan --></td>
Have you tried valign="top"

When I put your code into dreamweaver, in design view there is a big white gap of space in that table cell. Then towards the bottom of the cell the iframe begins. I think IE is seeing the gap and not seeing the iframe.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #15  
Old May 18th, 2007, 11:45
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS frame work in IE but not FF

Oh another thing... IE doesn't recognize .png graphics many times. Change it to a .gif and see if it fixes your problem.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #16  
Old May 18th, 2007, 11:49
Up'n'Coming Member
Join Date: Apr 2007
Location: Norwich, Norfolk - England
Age: 16
Posts: 83
Thanks: 2
Thanked 5 Times in 4 Posts
Re: CSS frame work in IE but not FF

Yes if changed it and it still doesn't work. . . I just don't understand why?

I also changed the PNG to a GIF but it just vanished on FF then . . .

Last edited by jjpeacha; May 18th, 2007 at 12:03. Reason: Added some info
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #17  
Old May 18th, 2007, 12:25
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS frame work in IE but not FF

does it see a .jpg?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #18  
Old May 18th, 2007, 12:26
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS frame work in IE but not FF

At this point, I don't know. I've never used iframes so I'm limited in how I can help you. You might be better off using a php include in that cell, rather than the iframe.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #19  
Old May 18th, 2007, 12:30
Up'n'Coming Member
Join Date: Apr 2007
Location: Norwich, Norfolk - England
Age: 16
Posts: 83
Thanks: 2
Thanked 5 Times in 4 Posts
Re: CSS frame work in IE but not FF

can you tell me how to do that, and make itr have the same effect that I want?

JJ
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #20  
Old May 18th, 2007, 13:03
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
<