Previous Message
Next Message

link to a style sheet in the body of a page

Sent by Paul Collins on 9 May 2006 12:12


Thanks Ian,

Yes, it does work with the full URL: it works fine in the body, but doesn't validate. The reason for
including it in the body is so I can have a single include come from the third party, being called
in the body of the document, which contains all HTML and styles for their nav. This would keep
things a little cleaner instead of me adding their style sheet to the header of every single HTML
page, as well as their navigation include to the body of the page. Would rather the style sheet was
part of their include.

Hope that makes sense?
Paul
  ----- Original Message ----- 
  From: Ian Young 
  To: Paul Collins 
  Sent: Tuesday, May 09, 2006 12:27 PM
  Subject: RE: [css-d] link to a style sheet in the body of a page


  > Thanks for your reply Ian.
  >
  > I've got a navigation include coming from a third party. They've
  > got their own style sheet for this and it is a part of the
  > include. The include features in the body of the page and it all
  > works OK using the CSS link way, but it doesn't validate. This is
  > because you can't use the link attribute in the body of a
  > document, only in the head. Just wondering if there was another
  > way of linking to the stylesheet in the body of the document:
  >
  > <link rel="stylesheet" type="text/css" media="all" href="styles.css"/>
  >
  > Any ideas?
  > Cheers

  Still needs to be in the head no matter what. However, if you use the
  complete URL from third part that will work.
  ie <link rel="stylesheet" type="text/css" media="all"
  href="http://www.clientdomain.com/include/styles.css"/>

  However, I am being totally thick here as I am still not sure what you are
  trying to achieve.

  Ian
  --
  No virus found in this outgoing message.
  Checked by AVG Free Edition.
  Version: 7.1.392 / Virus Database: 268.5.5/334 - Release Date: 08/05/2006

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Possibly related: