473,387 Members | 1,517 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 3034
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: timmy_dale12 | last post by:
I need help with this one. I have a function that pastes a row. In each row i am pasting a link which is to call a date picker javascript function. This is the code that pastes the link : link =...
3
by: Chris | last post by:
Hi I have designed my website to fit my standard windows. I use a javascript scroller that nescitates the removal of the browser scroll bars. However if a user has an extra toolbar open in...
14
by: Brandon Hoppe | last post by:
I'm trying to change the src of an ilayer in the parent document from a link inside the ilayer. I'm not able to get it to work. All that happens is Netscape 4 crashes. This is for Netscape 4 only....
21
by: Applebrownbetty | last post by:
Hi, I've run into a problem with IE 6 vs. Mozilla when displaying a completely CSS positioned page, and was wondering if any resident CSS guru might quickly be able to find the problem(s). Thank...
1
by: Jenny | last post by:
Need urgent help for an unsolved problem. In our ASP web application, we creat a Back button and if user click on this button, it execute history.go(-1) to go back to the previous page. All our...
3
by: Iver Erling Årva | last post by:
Can anyone please tell me why this doesn't work? The sign changes when I hit the button, and I get no error messages, but the textarea doesn't disappear/reappear. <html> <head> <title>New...
1
by: questionr | last post by:
There is a spell checker function which is written in VB Script. The function works well when tested seperately. But when the function is called from Java Script, the function shows an Error saying...
476
by: Xah Lee | last post by:
Microsoft Hatred, FAQ Xah Lee, 20020518 Question: U.S. Judges are not morons, and quite a few others are not morons. They find MS guilty, so it must be true. Answer: so did the German...
9
by: DavidB | last post by:
Hi all I have a script that works perfectly in IE but not in FF. I am sure that the problem is easy to resolve, but I seem to be too dumb to figure it out. <html> <head> <script...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.