From: Eric Hodel Date: 2003-01-09T01:27:57+09:00 Subject: Re: Ruby-lang site HTML problems --h85LGMdA0M9ASxa6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Tim Bates (tim@bates.id.au) wrote: > On Wed, 8 Jan 2003 10:09 am, Mauricio Fern?ndez wrote: > > It renders perfectly in Konqueror 2.2.2. > > Are you messing with stylesheets? >=20 > Nope. Not directly. I've got Konq 3.0.4. But thanks for the suggestion; I= =20 > found the problem - it's using the large font stylesheet. The default=20 > stylesheet needs to be given a 'title' attribute for Konqueror 3.0.x to p= ick=20 > it up. It displays properly when I download it to my local machine and ad= d=20 > that. While we're being HTML nazis... 14.3.2 Specifying external style sheets Authors specify external style sheets with the following attributes of the LINK element: * Set the value of href to the location of the style sheet file. The value of href is a URI. * Set the value of the type attribute to indicate the language of the linked (style sheet) resource. This allows the user agent to avoid downloading a style sheet for an unsupported style sheet language. * Specify that the style sheet is persistent, preferred, or alternate: o To make a style sheet persistent, set the rel attribute to "stylesheet" and don't set the title attribute. o To make a style sheet preferred, set the rel attribute to "stylesheet" and name the style sheet with the title attribute. o To specify an alternate style sheet, set the rel attribute to "alternate stylesheet" and name the style sheet with the title attribute. ruby-lang.org's style sheets are set like this: So /en/ruby-lang.css should be applied for _all_ views, and ruby-lang.large.css should be applied only when the user requests that the UA apply it. If you remove the title attribute for the alternate style sheet the document is still valid HTML4.01 strict, but the UA should ignore the style sheet, as it is neithor a persistent, preferred, nor alternate style sheet. --=20 Eric Hodel - drbrain@segment7.net - http://segment7.net All messages signed with fingerprint: FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 --h85LGMdA0M9ASxa6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE+HFGKMypVHHlsnwQRAsqpAJ4yfISKi1Y64KHbhUeDgqN6z5GwHwCdHogJ 7r7CxAgyAAJj7ywDe1y7gDQ= =E2SQ -----END PGP SIGNATURE----- --h85LGMdA0M9ASxa6--