Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 11:47 PM
Abby Hart
Guest
 
Posts: n/a
Default 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
....)

  #2  
Old July 20th, 2005, 11:47 PM
Spartanicus
Guest
 
Posts: n/a
Default Re: Jigsaw css validator - Generic font-family warning

"Abby Hart" <nospam@sa-fi.co.uk> wrote:
[color=blue]
>I've got "a" sort of sheet that is "valid" but that pesky warning to use a
>generic font-family is still there.[/color]

So add a generic font family.
[color=blue]
> I can't move the body font-family
>declaration any higher up the the sheet without sending it the day before[/color]

Pardon?

--
Spartanicus
  #3  
Old July 20th, 2005, 11:47 PM
Els
Guest
 
Posts: n/a
Default Re: Jigsaw css validator - Generic font-family warning

Spartanicus wrote:
[color=blue]
> "Abby Hart" <nospam@sa-fi.co.uk> wrote:
>[color=green]
>>I've got "a" sort of sheet that is "valid" but that pesky warning to use a
>>generic font-family is still there.[/color]
>
> So add a generic font family.[/color]

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 -

  #4  
Old July 20th, 2005, 11:47 PM
Nick Theodorakis
Guest
 
Posts: n/a
Default Re: Jigsaw css validator - Generic font-family warning

On Mon, 31 May 2004 19:49:09 +0200, Els <els.aNOSPAM@tiscali.nl>
wrote:
[color=blue]
>Spartanicus wrote:
>[color=green]
>> "Abby Hart" <nospam@sa-fi.co.uk> wrote:
>>[color=darkred]
>>>I've got "a" sort of sheet that is "valid" but that pesky warning to use a
>>>generic font-family is still there.[/color]
>>
>> So add a generic font family.[/color]
>
>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.
>
>[/color]

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
nick_theodorakis@hotmail.com
nicholas_theodorakis [at] urmc [dot] rochester [dot] edu
  #5  
Old July 20th, 2005, 11:47 PM
Els
Guest
 
Posts: n/a
Default Re: Jigsaw css validator - Generic font-family warning

Nick Theodorakis wrote:
[color=blue]
> On Mon, 31 May 2004 19:49:09 +0200, Els <els.aNOSPAM@tiscali.nl>
> wrote:
>[color=green]
>>Spartanicus wrote:
>>[color=darkred]
>>>"Abby Hart" <nospam@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.[/color]
>>
>>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.[/color]
>
> 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).[/color]

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 -

  #6  
Old July 20th, 2005, 11:47 PM
Abby Hart
Guest
 
Posts: n/a
Default Re: Jigsaw css validator - Generic font-family warning


"Els" wrote in message
[color=blue]
> I see it already, it's the lack of a generic font-family in
> the styles for .olcap and .oltxt .
>[/color]

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. ;)

  #7  
Old July 20th, 2005, 11:47 PM
Els
Guest
 
Posts: n/a
Default Re: Jigsaw css validator - Generic font-family warning

Abby Hart wrote:
[color=blue]
> "Els" wrote in message
>[color=green]
>>I see it already, it's the lack of a generic font-family in
>>the styles for .olcap and .oltxt .[/color]
>
> 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. ;)[/color]

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 -

  #8  
Old July 20th, 2005, 11:47 PM
Abby Hart
Guest
 
Posts: n/a
Default Re: Jigsaw css validator - Generic font-family warning


"Els" wrote in message[color=blue]
> Abby Hart wrote:
>[color=green]
> > "Els" wrote in message
> >[color=darkred]
> >>I see it already, it's the lack of a generic font-family in
> >>the styles for .olcap and .oltxt .[/color]
> >
> > Thanks Els. That will teach me never to trust code fragments (I assumed[/color][/color]
that[color=blue][color=green]
> > any error had to be in my own code!)
> >
> > The check's in the post. ;)[/color]
>
> Thanks!
>
> One more thing:
> http://locusmeus.com/html-css/pageslipping.html
> :-)[/color]


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
[color=blue]
>
> --
> Els
> http://locusmeus.com/
> Sonhos vem. Sonhos vão. O resto é imperfeito.
> - Renato Russo -
>[/color]

  #9  
Old July 20th, 2005, 11:47 PM
Els
Guest
 
Posts: n/a
Default Re: Jigsaw css validator - Generic font-family warning

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

Any flavour of Gecko.
[color=blue]
> 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??[/color]

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 -

  #10  
Old July 20th, 2005, 11:47 PM
Els
Guest
 
Posts: n/a
Default Re: Jigsaw css validator - Generic font-family warning

Abby Hart wrote:[color=blue]
> 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
> ...)[/color]

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 -

  #11  
Old July 20th, 2005, 11:47 PM
Abby Hart
Guest
 
Posts: n/a
Default Re: Jigsaw css validator - Generic font-family warning


"Els"
[color=blue]
> Abby Hart wrote:
>[color=green]
> > "Els" wrote in message
> >[color=darkred]
> >>One more thing:
> >>http://locusmeus.com/html-css/pageslipping.html
> >>:-)[/color]
> >
> > I'm confused now? I thought I had "solved" the centering issue. Is that
> > layout misbehaving? What flavor of gecko?[/color]
>
> Any flavour of Gecko.
>[color=green]
> > I agree that my actual solution to the "centering" problem is clunky ...[/color][/color]
but[color=blue][color=green]
> > 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??[/color]
>
> You have this:
> <div align="center">
> <div id="MainContent">
> <div id="BodyContent" style="position:
> relative;left:0px;top:115px">[/color]

Yup ... you caught me with my pants down ... ;)
[color=blue]
>
> 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.[/color]

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)[color=blue]
>
> But just use one of the two options I gave to prevent the
> problem, but instead of '#container' or 'page', read
> #MainContent :-)[/color]

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 ...


  #12  
Old July 20th, 2005, 11:47 PM
Els
Guest
 
Posts: n/a
Default Re: Jigsaw css validator - Generic font-family warning

Abby Hart wrote:
[color=blue]
> 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 ...[/color]

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 -

  #13  
Old July 20th, 2005, 11:47 PM
Abby Hart
Guest
 
Posts: n/a
Default Re: Jigsaw css validator - Generic font-family warning


"Els" wrote[color=blue]
>[color=green]
> > Thanks for your interest, Els - I appreciate it. I looked over your page
> > earlier ... I'll need a clear head to implement its 'lessosn'[/color][/color]
effectively[color=blue][color=green]
> > ... been on the k/b and caffeine for too many hours ...[/color]
>
> 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 :-)
>[/color]

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 ... ;)

 

Bookmarks

Thread Tools

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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles