469,625 Members | 1,155 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,625 developers. It's quick & easy.

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

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}

Nov 21 '06 #1
7 2871
In article <11**********************@e3g2000cwe.googlegroups. com>,
johnny15 <jb*****@windsorkomatsu.co.ukwrote:
>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
Nov 21 '06 #2

JP. Baker wrote:
In article <11**********************@e3g2000cwe.googlegroups. com>,
johnny15 <jb*****@windsorkomatsu.co.ukwrote:
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

Nov 21 '06 #3
On 21 Nov 2006, johnny15 wrote:
body {font-size: 8pt;
This should be considered as a criminal offense.

Nov 21 '06 #4
In article <11*********************@k70g2000cwa.googlegroups. com>,
"johnny15" <jb*****@windsorkomatsu.co.ukwrote:
JP. Baker wrote:
In article <11**********************@e3g2000cwe.googlegroups. com>,
johnny15 <jb*****@windsorkomatsu.co.ukwrote:
[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.
Nov 21 '06 #5
johnny15 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

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
Nov 21 '06 #6
johnny15 wrote:
I have used below the following parameters in my stylesheet. Mozilla
and Netscape browsers as you can see at www.windsoraccess.co.uk .
...

body {font-size: 8pt;
font-family: arial, sans-serif, helevicta;
helevicta? What is that? Not a word I am familiar with.

The generic fallback is supposed to be last.
font-family: Arial, Helvetica, sans-serif;

Sorry, I can't read 8pt text. Don't use pt (or px) for sizing.
http://k75s.home.att.net/fontsize.html

Regarding:
<h3><b>Delivering Excellence for over 25 Years</b></h3>

Drop the <band </band style the heading in CSS. And ... where is
your <h1and <h2? Headings are not for "sizing"; they are for
semantic markup of .. well .. headings.

Fix this image. Resize it with a graphics program to what you want,
instead of using HTML:

http://www.windsoraccess.co.uk/image...0cut%20out.jpg
File Size: 350.59 KB (359,009 bytes)
Spcified Dimensions: 160px × 360px
Actual Dimensions: 1,288px × 2,724px

--
-bts
-Motorcycles defy gravity; cars just suck
Nov 21 '06 #7
Sid
On 21 Nov 2006 03:01:00 -0800, "johnny15"
<jb*****@windsorkomatsu.co.ukwrote:

: 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

Nov 21 '06 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by timmy_dale12 | last post: by
3 posts views Thread by Chris | last post: by
14 posts views Thread by Brandon Hoppe | last post: by
3 posts views Thread by Iver Erling Årva | last post: by
1 post views Thread by questionr | last post: by
476 posts views Thread by Xah Lee | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.