1 of 2
1
everything works well in IE but not FIREFOX
Posted: 04 December 2008 01:57 PM   [ Ignore ]
Newbie
Rank
Total Posts:  3
Joined  2008-12-03

Hello everyone,

I’m very new to CSS and really stuck at the moment not understanding what the problem is. Everything works in IE but in Firefox it’s completely messed up. If anyone can point me to the right direction how I can solve it I would really really appreciate that!!!

The site is:
http://www.trial.guste.co.uk

CSS code:
body{
border: 2px solid;
border-color: green;
border-width: 6px;
font: normal normal normal 80% Myriad Pro, arial, helvetica, sans serif;
color: black;
margin:0;
padding:0;
background-color: #A5967E;
}

#container {
border: 2px solid;
border-color: red;
background-color: white;
width: 960px;
height: 680px;
margin: 10px auto;
position: relative;
}

#header{
border: 2px solid;
border-color: blue;
width: 956px;
height: 85px;
margin-top: 0;
margin-left: 0;
}

#logo{
width: 144px;
height: 119px;
position: absolute;
margin-top: 0;
margin-left: 0;
position: absolute;
z-index: 1;
}

#emailbox{
border: 2px solid;
border-color: green;
background-color: #A5967E;
width: 956px;
height: 20px;
margin-top: 35px;
margin-left: 0px;
position: absolute;
z-index: 0;
}

h1{
font: normal small caps normal 0.1em Myriad Pro, arial, helvetica, sans serif;
color: white;
margin-top: 39px;
margin-left: 790px;
position: absolute;
z-index: 2;
}

#column_left {
border: 2px solid;
border-color: purple;
border-width: 2px;
width: 500px;
height: 360px;
float: left;
}

#navbar {
border: 2px solid;
border-color: black;
border-width: 2px;
width:420px;
height:42px;
float: right;
}

Profile
 
 
Posted: 04 December 2008 06:11 PM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  4
Joined  2008-08-07

Hello,

The reason your website is not displaying correctly in Firefox and other standards compliant browsers is because the CSS file you are trying to reference is not named correctly. CSS files should be named in the following format: “filename.css”. If your website is dynamic, the CSS file can be generated with PHP, but that is another subject. Currently your CSS file is named: css.txt. Once you change it to the correct filename you should see the styles applied to your website.

I do have one other suggestion for you. Try building your website in Firefox using the web developer tool. Then bug fix the CSS for non-compliant browsers like Internet Explorer 6 and 7.

Profile
 
 
Posted: 05 December 2008 03:03 PM   [ Ignore ]   [ # 2 ]
Newbie
Avatar
Rank
Total Posts:  10
Joined  2008-11-14

I concur.

Profile
 
 
Posted: 05 December 2008 07:08 PM   [ Ignore ]   [ # 3 ]
Newbie
Rank
Total Posts:  3
Joined  2008-12-03

Thanks so much for trying to help.

I did rename the file now it has ending .css but it doesn’t seem to solve the problem.

I know it’s probably very idiotic question for advanced users in this forum, but how do you generate your .css file with .php ?

And can this be the case that still causes the problem ?

aciu :)

Profile
 
 
Posted: 05 December 2008 07:22 PM   [ Ignore ]   [ # 4 ]
Newbie
Avatar
Rank
Total Posts:  10
Joined  2008-11-14

When I open your page in firebug (firefox extension) and edit the stylesheet link to “css.css” it works for me.
My best advice is to rename the file to “style.css” update your link and refresh the page a couple of times and wait for the cache to clear.

Profile
 
 
Posted: 05 December 2008 07:41 PM   [ Ignore ]   [ # 5 ]
Newbie
Rank
Total Posts:  3
Joined  2008-12-03

I named my file “style.css” and it did work!

Thank you so much!

I’m so happy :)

Profile
 
 
Posted: 19 December 2008 05:15 AM   [ Ignore ]   [ # 6 ]
Newbie
Rank
Total Posts:  3
Joined  2008-12-19

building your website in Firefox using the web developer tool. Then bug fix the CSS for non-compliant browsers like Internet Explorer 6 and 7

Profile
 
 
Posted: 28 October 2009 08:43 PM   [ Ignore ]   [ # 7 ]
Newbie
Rank
Total Posts:  1
Joined  2009-10-28
romiz - 19 December 2008 05:15 AM

building your website in Firefox using the web developer tool. Then bug fix the CSS for non-compliant browsers like Internet Explorer 6 and 7

download comedy movies

Profile
 
 
Posted: 11 January 2010 05:18 AM   [ Ignore ]   [ # 8 ]
Newbie
Rank
Total Posts:  2
Joined  2010-01-11

make money online

Profile
 
 
Posted: 27 January 2010 04:28 AM   [ Ignore ]   [ # 9 ]
Newbie
Rank
Total Posts:  1
Joined  2010-01-27

web hosting

Profile
 
 
Posted: 21 April 2010 12:34 AM   [ Ignore ]   [ # 10 ]
Newbie
Rank
Total Posts:  1
Joined  2010-04-21

Thanks so much for trying to help.
internet tips

Profile
 
 
Posted: 22 April 2010 10:49 AM   [ Ignore ]   [ # 11 ]
Newbie
Rank
Total Posts:  1
Joined  2010-04-22

hi

Profile
 
 
Posted: 22 April 2010 12:40 PM   [ Ignore ]   [ # 12 ]
Newbie
Rank
Total Posts:  2
Joined  2010-04-22

Thanks for sharing for best technic

Profile
 
 
Posted: 26 April 2010 06:05 PM   [ Ignore ]   [ # 13 ]
Newbie
Rank
Total Posts:  9
Joined  2010-04-26

Firefox and other standards compliant browsers is because the CSS file you are trying to reference is not named correctly. CSS files should be named in the following format: ”filename.css”. If your website is dynamic, the CSS file can be generated with PHP, but that is another subject. Currently your CSS file is named: css.txt. Once you change it to the correct filename you should see the styles applied to your website.
_______________________
Best Dating Services
diversity job

Profile
 
 
Posted: 19 July 2010 06:27 AM   [ Ignore ]   [ # 14 ]
Newbie
Rank
Total Posts:  2
Joined  2010-07-19

hi well done on answering this topic it was one reason I am here thanks to your info I have now solved my CSS problem ... cheers

Profile
 
 
Posted: 19 July 2010 08:57 AM   [ Ignore ]   [ # 15 ]
Newbie
Rank
Total Posts:  1
Joined  2010-07-19

I Bookmarked this thread for future

Regards


ronchi137

Profile
 
 
   
1 of 2
1