473,387 Members | 1,757 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.

Jigsaw css validator - Generic font-family warning

It's got me beat. I'm convinced that I've seen css validation reports
without the warning during my trawls thru the net trying to teach meself
this stuff ... but I can't get a report without the warning about the
generic font family

I've got "a" sort of sheet that is "valid" but that pesky warning to use a
generic font-family is still there. I can't move the body font-family
declaration any higher up the the sheet without sending it the day before
.... any ideas??? (preferably with some sort of outline as to why my script
is right *and* wrong ....

URL's: --

http://www.iancollins.net/ (css sscript in ../scripts/iancollins.css ) NB
the the page is mirrored "identically" at the well bookmarked
http://www.iancollins.net/home/home.html where I'll be tinkering as I go
....)

Jul 20 '05 #1
12 3212
"Abby Hart" <no****@sa-fi.co.uk> wrote:
I've got "a" sort of sheet that is "valid" but that pesky warning to use a
generic font-family is still there.
So add a generic font family.
I can't move the body font-family
declaration any higher up the the sheet without sending it the day before


Pardon?

--
Spartanicus
Jul 20 '05 #2
Els
Spartanicus wrote:
"Abby Hart" <no****@sa-fi.co.uk> wrote:
I've got "a" sort of sheet that is "valid" but that pesky warning to use a
generic font-family is still there.


So add a generic font family.


He's already done that.
My guess is the validator doesn't understand that if you
only set 'sans-serif' as font-family, it automatically is
the last one set.

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #3
On Mon, 31 May 2004 19:49:09 +0200, Els <el*********@tiscali.nl>
wrote:
Spartanicus wrote:
"Abby Hart" <no****@sa-fi.co.uk> wrote:
I've got "a" sort of sheet that is "valid" but that pesky warning to use a
generic font-family is still there.


So add a generic font family.


He's already done that.
My guess is the validator doesn't understand that if you
only set 'sans-serif' as font-family, it automatically is
the last one set.


I took a look, and if I feed the validator just the body declaration
she has in her style sheet, I get no warning, so I don't think that's
it. I wonder this is an actual bug in the validator (or checker, or
whatever you want to call it).

Nick

--
Nick Theodorakis
ni**************@hotmail.com
nicholas_theodorakis [at] urmc [dot] rochester [dot] edu
Jul 20 '05 #4
Els
Nick Theodorakis wrote:
On Mon, 31 May 2004 19:49:09 +0200, Els <el*********@tiscali.nl>
wrote:
Spartanicus wrote:
"Abby Hart" <no****@sa-fi.co.uk> wrote:

I've got "a" sort of sheet that is "valid" but that pesky warning to use a
generic font-family is still there.

So add a generic font family.


He's already done that.
My guess is the validator doesn't understand that if you
only set 'sans-serif' as font-family, it automatically is
the last one set.


I took a look, and if I feed the validator just the body declaration
she has in her style sheet, I get no warning, so I don't think that's
it. I wonder this is an actual bug in the validator (or checker, or
whatever you want to call it).


I see it already, it's the lack of a generic font-family in
the styles for .olcap and .oltxt .

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #5

"Els" wrote in message
I see it already, it's the lack of a generic font-family in
the styles for .olcap and .oltxt .


Thanks Els. That will teach me never to trust code fragments (I assumed that
any error had to be in my own code!)

The check's in the post. ;)

Jul 20 '05 #6
Els
Abby Hart wrote:
"Els" wrote in message
I see it already, it's the lack of a generic font-family in
the styles for .olcap and .oltxt .


Thanks Els. That will teach me never to trust code fragments (I assumed that
any error had to be in my own code!)

The check's in the post. ;)


Thanks!

One more thing:
http://locusmeus.com/html-css/pageslipping.html
:-)

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #7

"Els" wrote in message
Abby Hart wrote:
"Els" wrote in message
I see it already, it's the lack of a generic font-family in
the styles for .olcap and .oltxt .
Thanks Els. That will teach me never to trust code fragments (I assumed that any error had to be in my own code!)

The check's in the post. ;)


Thanks!

One more thing:
http://locusmeus.com/html-css/pageslipping.html
:-)

I'm confused now? I thought I had "solved" the centering issue. Is that
layout misbehaving? What flavor of gecko?

I agree that my actual solution to the "centering" problem is clunky ... but
it's mine and I have high hope for it. I was toying with raising it's
clunkyness as a separate thread ... maybe I should??
Abby

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -


Jul 20 '05 #8
Els
Abby Hart wrote:
"Els" wrote in message
One more thing:
http://locusmeus.com/html-css/pageslipping.html
:-)
I'm confused now? I thought I had "solved" the centering issue. Is that
layout misbehaving? What flavor of gecko?


Any flavour of Gecko.
I agree that my actual solution to the "centering" problem is clunky ... but
it's mine and I have high hope for it. I was toying with raising it's
clunkyness as a separate thread ... maybe I should??


You have this:
<div align="center">
<div id="MainContent">
<div id="BodyContent" style="position:
relative;left:0px;top:115px">

align="center" would be better in the stylesheet, like you
did with the other styles.
But also, there is no need to set it to that extra div, as
you can set it to the body element itself. Saves you one div.

But just use one of the two options I gave to prevent the
problem, but instead of '#container' or 'page', read
#MainContent :-)

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #9
Els
Abby Hart wrote:
http://www.iancollins.net/ (css sscript in ../scripts/iancollins.css ) NB
the the page is mirrored "identically" at the well bookmarked
http://www.iancollins.net/home/home.html where I'll be tinkering as I go
...)


Have a look in IE as well, the copyright line seems right
aligned and goes way underneath the bottom of the page,
looks fine in Gecko though.

I think it may have to do with the position:absolute on the
p.rightdeclaration? Position:absolute takes it out of the
normal flow of the elements.

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #10

"Els"
Abby Hart wrote:
"Els" wrote in message
One more thing:
http://locusmeus.com/html-css/pageslipping.html
:-)
I'm confused now? I thought I had "solved" the centering issue. Is that
layout misbehaving? What flavor of gecko?


Any flavour of Gecko.
I agree that my actual solution to the "centering" problem is clunky ... but it's mine and I have high hope for it. I was toying with raising it's
clunkyness as a separate thread ... maybe I should??


You have this:
<div align="center">
<div id="MainContent">
<div id="BodyContent" style="position:
relative;left:0px;top:115px">


Yup ... you caught me with my pants down ... ;)

align="center" would be better in the stylesheet, like you
did with the other styles.
But also, there is no need to set it to that extra div, as
you can set it to the body element itself. Saves you one div.
That div in the html has been the only way I have found so far that works
for IE without breaking what it does in my versions of Mzilla & Firefox ...
its what I meant by clunky. My knowledge is extremely limited, or do I mean
my understanding? I have no background at all in either math or programming
which makes it kinda tough to get a grip on some of the more quirky things
that css can do (My brain won't think in numbers and formulae ... I have to
scratch on paper sometimes for hours to reduce a problem to something I can
understand)
But just use one of the two options I gave to prevent the
problem, but instead of '#container' or 'page', read
#MainContent :-)


Thanks for your interest, Els - I appreciate it. I looked over your page
earlier ... I'll need a clear head to implement its 'lessosn' effectively
.... been on the k/b and caffeine for too many hours ...
Jul 20 '05 #11
Els
Abby Hart wrote:
Thanks for your interest, Els - I appreciate it. I looked over your page
earlier ... I'll need a clear head to implement its 'lessosn' effectively
... been on the k/b and caffeine for too many hours ...


When your head is clear again and you would still have
trouble, don't hesitate to come back here. I don't have any
programming or mathematics background either, not needed for
html and css :-)

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #12

"Els" wrote
Thanks for your interest, Els - I appreciate it. I looked over your page
earlier ... I'll need a clear head to implement its 'lessosn' effectively ... been on the k/b and caffeine for too many hours ...


When your head is clear again and you would still have
trouble, don't hesitate to come back here. I don't have any
programming or mathematics background either, not needed for
html and css :-)


Hi good point concerning the missing horizontal scrollbar in gecko - fixed!
Meanwhile I've gone around in circle chopped out a lot of bloat and then
ended up putting most of it back because first it's IE that won't do as it's
told then its Gecko. As it stands now http://www.iancollin.net/ +
scripts/iancollins.css it's mostly doing all that I expect except for Opera
7.5 which insists on placing the footer stuff up against the left edge of
its parent element ...

Oh help ... it's enough to drive a body back to Flash ... ;)

Jul 20 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Michael ALbanese | last post by:
I am developing a telephone directory for my company. I have Fist Name, Last Name, Department and Phone Number as fields. A user can search by entering data into any one, or combination of these...
0
by: Tom Pearson | last post by:
I create controls and validators dynamically dependent on data at runtime. I create the control then the relevant validator(s) for it assigning the Control.ID as the control to validate. These...
8
by: pacs34 | last post by:
I just read some stuff about XHTML 2.0 and it sounds fascinating so I have been trying to create a small test doc which has a few graphics files but whenever I submit it to the W3 validator I get...
1
by: Venki | last post by:
I have a textbox to enter an email address followed by a telephone textbox. The email has a regularexpressionvalidator and a requiredfieldvalidator. The ReqField works fine, but if I put in an...
1
by: Jim Heavey | last post by:
Can I create a generic Javascrip custom validator in which I can pass multiple parameters? Looking at examples, it does not appear that I can. I want to create a custom validator which will look...
4
by: Rob T | last post by:
I have a small VB program that has a printing module...very simple....and works great. However, If I try to print to a generic printer, I get the following error: "The data area passed to a...
3
by: CK | last post by:
Hello All, I have a page with a text box. It has a required field validator, and a regualur expression validator tied to it. A valid email is required. When clientside is enabled it works...
6
by: Sebastian Schack | last post by:
Hey everyone. Hope I'm in the right spot here... if not, please correct me. My .css starts with the definition of the body-part which looks as follows: body { background: #FFFFFF...
0
by: dancer | last post by:
Can somebody tell me why my RequiredFieldValidator works for the TEXT BOX, (location) but does NOT work for the RADIO BUTTON (EmpTrain)? <%@ Page Language="VB" ClientTarget="downlevel" %> ...
1
by: dotNetDummi | last post by:
Hi experts, I need a validator in my gridview. When the user update a field in the gridview, I need to check if the email is valid. How can I do that? Below is my gridview. Please help....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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.