Jump to content


Photo

linking to a css document


  • Please log in to reply
5 replies to this topic

#1 Twentyoneth

Twentyoneth
  • Members
  • PipPipPip
  • Advanced Member
  • 118 posts
  • LocationGlasgow, KY

Posted 26 May 2006 - 06:13 PM

I am trying to link to a css document uploaded on the internet somewhere, but the <link method has been disabled, does anyone know of another way to link to it?

#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 26 May 2006 - 06:15 PM

Do you mean it's on a site that you don't control and has hotlink protection? Or what?
Legend has it that reading the manual never killed anyone.
My site

#3 Twentyoneth

Twentyoneth
  • Members
  • PipPipPip
  • Advanced Member
  • 118 posts
  • LocationGlasgow, KY

Posted 26 May 2006 - 09:20 PM

the site allows you to change the css, but the <link rel function in html is disabled, probably for harmful scripts, but I am just wanting to link to a css page, so I was wondering if there was another way.

#4 nogray

nogray
  • Members
  • PipPipPip
  • Advanced Member
  • 930 posts
  • LocationSan Francisco CA

Posted 26 May 2006 - 10:30 PM

You can use the import rule in css, but if the site stops the link tag, they might stop the import as well
<style>
@import url("mystyle.css");
</style>

NoGray.com


#5 Twentyoneth

Twentyoneth
  • Members
  • PipPipPip
  • Advanced Member
  • 118 posts
  • LocationGlasgow, KY

Posted 30 May 2006 - 07:32 PM

it disabled the "@" sign...Does it need it?

#6 nogray

nogray
  • Members
  • PipPipPip
  • Advanced Member
  • 930 posts
  • LocationSan Francisco CA

Posted 30 May 2006 - 08:36 PM

yeah, you need the @

NoGray.com





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users