By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,624 Members | 2,229 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,624 IT Pros & Developers. It's quick & easy.

Jigsaw css validator - Generic font-family warning

P: n/a
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
Share this Question
Share on Google+
12 Replies


P: n/a
"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

P: n/a
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 vo. O resto imperfeito.
- Renato Russo -

Jul 20 '05 #3

P: n/a
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

P: n/a
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 vo. O resto imperfeito.
- Renato Russo -

Jul 20 '05 #5

P: n/a

"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

P: n/a
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 vo. O resto imperfeito.
- Renato Russo -

Jul 20 '05 #7

P: n/a

"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 vo. O resto imperfeito.
- Renato Russo -


Jul 20 '05 #8

P: n/a
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 vo. O resto imperfeito.
- Renato Russo -

Jul 20 '05 #9

P: n/a
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 vo. O resto imperfeito.
- Renato Russo -

Jul 20 '05 #10

P: n/a

"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

P: n/a
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 vo. O resto imperfeito.
- Renato Russo -

Jul 20 '05 #12

P: n/a

"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 discussion thread is closed

Replies have been disabled for this discussion.