CSS problem - Post ID 2018
Hi.
I just find out that my CSS style don't work in any browser than IE.
I have no idear why.
I have setup a little test page, trying to locate the error or what ever it is that i'm missing.
Can somebody please try to take a look and please tell what i'm doing wrong.
I'm sure it just a simple mistake.
The page is www.stegmann.cc
Thanks
Bjarne
I just find out that my CSS style don't work in any browser than IE.
I have no idear why.
I have setup a little test page, trying to locate the error or what ever it is that i'm missing.
Can somebody please try to take a look and please tell what i'm doing wrong.
I'm sure it just a simple mistake.
The page is www.stegmann.cc
Thanks
Bjarne
hi Bjarne,
We sometimes suggest changing your username to something other than your email address to help avoid being spammed, since this is a public forum.
I made a mistake in my original post....I was way off on my suggestions, sorry.
In the first section, the body[ part of your style sheet, try changing this:
background-color: #C0C0C0;
to this:
background: #C0C0C0;
see if that works.
We sometimes suggest changing your username to something other than your email address to help avoid being spammed, since this is a public forum.
I made a mistake in my original post....I was way off on my suggestions, sorry.
In the first section, the body[ part of your style sheet, try changing this:
background-color: #C0C0C0;
to this:
background: #C0C0C0;
see if that works.
E-Learning Specialist
www.mainsites.ca is my website, and yes, some of it is crappy.
www.mainsites.ca is my website, and yes, some of it is crappy.
Hi Cliff.
I have tryed that.
Tryed it again on your regreast, but no.
Still the same. Sorry....
Firefox or the other browser, still can't read the css style and it's background settings. Hmm!!!
I have tryed that.
Tryed it again on your regreast, but no.
Still the same. Sorry....
Firefox or the other browser, still can't read the css style and it's background settings. Hmm!!!
Ohh. Cliff.
Thanks bye the way.
I havent seen the nickname stuff.
;-))
Thanks bye the way.
I havent seen the nickname stuff.
;-))
Have you tried this on a simple page without the frames?
Also, you are using a style sheet with a charset declaration:
@charset "utf-8";
I'm willing to bet if you take that off, the other browsers will behave. You can put the charset on each of the html pages that make up your frames, it that's what works.
ONE more suggestion. When using the @charset in the style sheet, you can't have any spaces before the @ sign. No white space either, so if your style sheet looks like this:
then it won't work for all browsers. I think it needs to look more like this
for it to work properly. Try removing it. If that works, try putting it back in with no spaces before the @.
Also, you are using a style sheet with a charset declaration:
@charset "utf-8";
I'm willing to bet if you take that off, the other browsers will behave. You can put the charset on each of the html pages that make up your frames, it that's what works.
ONE more suggestion. When using the @charset in the style sheet, you can't have any spaces before the @ sign. No white space either, so if your style sheet looks like this:
<style type="text/css">
<!--
@charset "utf-8";
body {
<!--
@charset "utf-8";
body {
then it won't work for all browsers. I think it needs to look more like this
<style type="text/css">
<!--@charset "utf-8";body {
<!--@charset "utf-8";body {
for it to work properly. Try removing it. If that works, try putting it back in with no spaces before the @.
E-Learning Specialist
www.mainsites.ca is my website, and yes, some of it is crappy.
www.mainsites.ca is my website, and yes, some of it is crappy.
Hi again Cliff.
Sorry, still don't work.
But thanks for your surgestions.
Bjarne
Sorry, still don't work.
But thanks for your surgestions.
Bjarne
The following is the only text you should have in your style sheet. Style sheets don't use html comments or html tags such as <style ...
I suspect this still may not work as you are trying to style the body, but of what? Firefox sees four pages with bodies, but it may be trying to apply this only to the body of the frameset page, and that body isn't seen by any browsers.
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
font-style: normal;
background: #C0C0C0;
color: #000000;
}
.left {
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
font-style: italic;
color: #FF0000;
background: #0000FF;
}
.right {
font-family: Arial, Helvetica, sans-serif;
font-size: xx-small;
font-style: normal;
color: #0000FF;
background: #FF0000;
}
.top {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-style: normal;
}
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
font-style: normal;
background: #C0C0C0;
color: #000000;
}
.left {
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
font-style: italic;
color: #FF0000;
background: #0000FF;
}
.right {
font-family: Arial, Helvetica, sans-serif;
font-size: xx-small;
font-style: normal;
color: #0000FF;
background: #FF0000;
}
.top {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-style: normal;
}
I suspect this still may not work as you are trying to style the body, but of what? Firefox sees four pages with bodies, but it may be trying to apply this only to the body of the frameset page, and that body isn't seen by any browsers.
Hi Cary.
I see what you mean. But can't explain why the IE works fine.
But can you then tell how to do this.
If i want to use the style sheet to the my background color of all my pages.
This should be one of many great things with style sheet. That you can change background to hole your site though only one change. Other than changes it on every page.
As i said. The way i have done it so far works perfect, but only in IE and not in any other browser.
How to do it???
Thanks
Bjarne
I see what you mean. But can't explain why the IE works fine.
But can you then tell how to do this.
If i want to use the style sheet to the my background color of all my pages.
This should be one of many great things with style sheet. That you can change background to hole your site though only one change. Other than changes it on every page.
As i said. The way i have done it so far works perfect, but only in IE and not in any other browser.
How to do it???
Thanks
Bjarne
Hi Cary.
Yes okay.
Now it worked.
I removed all the html code comments.
IE seems to don't care about this. But firefox and all other browser don't want it.
So maybe Coffeecup should make some adjustment to there stylesheet maker. Because all this code is something the program add it self when making a new CSS file ;-)
But thanks a lot for the help.
I'm a very happy man.
Regrads
Bjarne
Yes okay.
Now it worked.
I removed all the html code comments.
IE seems to don't care about this. But firefox and all other browser don't want it.
So maybe Coffeecup should make some adjustment to there stylesheet maker. Because all this code is something the program add it self when making a new CSS file ;-)
But thanks a lot for the help.
I'm a very happy man.
Regrads
Bjarne
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.