HighDots Forums  

HELP Stylesheet works on Microsoft Internet Explorer but not Mozilla and Netscape

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss HELP Stylesheet works on Microsoft Internet Explorer but not Mozilla and Netscape in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
johnny15
 
Posts: n/a

Default HELP Stylesheet works on Microsoft Internet Explorer but not Mozilla and Netscape - 11-21-2006 , 06:01 AM






I have used below the following parameters in my stylesheet.This give
me a grey background around my tables that contains the sites content.
This works fine using Microsoft Internet Explorer but does not work on
Mozilla and Netscape browsers as you can see at www.windsoraccess.co.uk
..

Could someone let me know how I can resolve this issue. Thanks in
advancce

body {font-size: 8pt;
font-family: arial, sans-serif, helevicta;
color:black;
text-align: center;
background color: #a0a0a0;}

table {font-size: 9pt;
font-family: arial, sans-serif, helevicta;
color:black;
text-align: left;
background color: white}


Reply With Quote
  #2  
Old   
JP. Baker
 
Posts: n/a

Default Re: HELP Stylesheet works on Microsoft Internet Explorer but not Mozilla and Netscape - 11-21-2006 , 06:15 AM






In article <1164106860.134556.107200 (AT) e3g2000cwe (DOT) googlegroups.com>,
johnny15 <jburton (AT) windsorkomatsu (DOT) co.uk> wrote:
Quote:
I have used below the following parameters in my stylesheet.This give
me a grey background around my tables that contains the sites content.
This works fine using Microsoft Internet Explorer but does not work on
Mozilla and Netscape browsers as you can see at www.windsoraccess.co.uk
.

Could someone let me know how I can resolve this issue. Thanks in
advancce

body {font-size: 8pt;
font-family: arial, sans-serif, helevicta;
color:black;
text-align: center;
background color: #a0a0a0;}

table {font-size: 9pt;
font-family: arial, sans-serif, helevicta;
color:black;
text-align: left;
background color: white}
From the error console:

Warning: Expected ':' but found 'color'. Declaration dropped.
Source File: http://www.windsoraccess.co.uk/
Line: 5

Warning: Expected ':' but found 'color'. Declaration dropped.
Source File: http://www.windsoraccess.co.uk/
Line: 11

s/background color/background-color/

--
John P Baker


Reply With Quote
  #3  
Old   
johnny15
 
Posts: n/a

Default Re: HELP Stylesheet works on Microsoft Internet Explorer but not Mozilla and Netscape - 11-21-2006 , 06:56 AM




JP. Baker wrote:
Quote:
In article <1164106860.134556.107200 (AT) e3g2000cwe (DOT) googlegroups.com>,
johnny15 <jburton (AT) windsorkomatsu (DOT) co.uk> wrote:
I have used below the following parameters in my stylesheet.This give
me a grey background around my tables that contains the sites content.
This works fine using Microsoft Internet Explorer but does not work on
Mozilla and Netscape browsers as you can see at www.windsoraccess.co.uk
.

Could someone let me know how I can resolve this issue. Thanks in
advancce

body {font-size: 8pt;
font-family: arial, sans-serif, helevicta;
color:black;
text-align: center;
background color: #a0a0a0;}

table {font-size: 9pt;
font-family: arial, sans-serif, helevicta;
color:black;
text-align: left;
background color: white}

From the error console:

Warning: Expected ':' but found 'color'. Declaration dropped.
Source File: http://www.windsoraccess.co.uk/
Line: 5

Warning: Expected ':' but found 'color'. Declaration dropped.
Source File: http://www.windsoraccess.co.uk/
Line: 11

s/background color/background-color/

--
John P Baker
Pardon my ignorance as I am only a novice.....what do I need to do to
remedy the situation???

And am I right at thinking these errors are on my stylesheet at lines 5
and 11 where i have stated the background colors????

Thanks in advance



Reply With Quote
  #4  
Old   
Andreas Prilop
 
Posts: n/a

Default Re: HELP Stylesheet works on Microsoft Internet Explorer but notMozilla and Netscape - 11-21-2006 , 07:31 AM



On 21 Nov 2006, johnny15 wrote:

Quote:
body {font-size: 8pt;
This should be considered as a criminal offense.



Reply With Quote
  #5  
Old   
David Stone
 
Posts: n/a

Default Re: HELP Stylesheet works on Microsoft Internet Explorer but not Mozilla and Netscape - 11-21-2006 , 07:55 AM



In article <1164110160.556259.68310 (AT) k70g2000cwa (DOT) googlegroups.com>,
"johnny15" <jburton (AT) windsorkomatsu (DOT) co.uk> wrote:
Quote:
JP. Baker wrote:
In article <1164106860.134556.107200 (AT) e3g2000cwe (DOT) googlegroups.com>,
johnny15 <jburton (AT) windsorkomatsu (DOT) co.uk> wrote:
[snip]
body {font-size: 8pt;
font-family: arial, sans-serif, helevicta;
color:black;
text-align: center;
background color: #a0a0a0;}

[snip]
From the error console:

Warning: Expected ':' but found 'color'. Declaration dropped.
Source File: http://www.windsoraccess.co.uk/
Line: 5
[snip]
Pardon my ignorance as I am only a novice.....what do I need to do to
remedy the situation???

And am I right at thinking these errors are on my stylesheet at lines 5
and 11 where i have stated the background colors????
Yes. Make the spelling correction noted (background-color, with a
hypen, not a space.) While you're at it, how about also fixing the
font size? I had to use FireFox's text zoom feature to be able to
read your 8pt and 9pt text comfortably, but then your fixed width
table layout started breaking...

If you must use a table for layout, try setting the table width in
em units (in css), so that it will scale with the user's preferred
font size. Your table also looks weird if the window is wider than
the table, a bit like you couldn't afford to pay for all those
missing pixels.


Reply With Quote
  #6  
Old   
John Hosking
 
Posts: n/a

Default Re: HELP Stylesheet works on Microsoft Internet Explorer but notMozilla and Netscape - 11-21-2006 , 08:44 AM



johnny15 wrote:
Quote:
I have used below the following parameters in my stylesheet.This give
me a grey background around my tables that contains the sites content.
This works fine using Microsoft Internet Explorer but does not work on
Mozilla and Netscape browsers as you can see at www.windsoraccess.co.uk

body {font-size: 8pt;
font-family: arial, sans-serif, helevicta;
color:black;
text-align: center;
background color: #a0a0a0;}

table {font-size: 9pt;
font-family: arial, sans-serif, helevicta;
color:black;
text-align: left;
background color: white}

And while you're fixing things, here's something else I noticed:
try font-family: arial, helvetica, sans-serif; rather than the lines you
have here. I assuming you don't mean to specify a font-family named
"helevicta" (at least, you should know I don't have it on *my* machine).
And the generic specifier should come last, in case none of the named
font-families are available. Therefore, sans-serif should be last.

--
John


Reply With Quote
  #7  
Old   
Sid
 
Posts: n/a

Default Re: HELP Stylesheet works on Microsoft Internet Explorer but not Mozilla and Netscape - 11-21-2006 , 12:33 PM



On 21 Nov 2006 03:01:00 -0800, "johnny15"
<jburton (AT) windsorkomatsu (DOT) co.uk> wrote:

: I have used below the following parameters in my stylesheet.This give
: me a grey background around my tables that contains the sites content.
: This works fine using Microsoft Internet Explorer but does not work on
: Mozilla and Netscape browsers as you can see at www.windsoraccess.co.uk
: .
:
: Could someone let me know how I can resolve this issue. Thanks in
: advancce
:
: body {font-size: 8pt;
: font-family: arial, sans-serif, helevicta;
: color:black;
: text-align: center;
: background color: #a0a0a0;}
:
: table {font-size: 9pt;
: font-family: arial, sans-serif, helevicta;
: color:black;
: text-align: left;
: background color: white}


Others have commented on the errors in your CSS-markup, like
background-color.

I will suggest that you do not create border of a table that way -
body and table within is not the right way. Simply add a border in
your table, thus
border: 5px ridge #aoaoao;

and dispense with your body stuff.

Sid


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.