The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
load a css style sheet inside of a template
How do I load a css style sheet inside my template?
can I do <head> <link href="stylesheet url here" rel="stylesheet" type="text/css" /> </head> inside the template or is there another way to do it? |
#2
|
||||
|
||||
You could but then you'll have two <head> tags when you load that page. If you're concerned about the server load then don't worry; CSS is very light. I would just place the link in your headerinclude template.
|
#3
|
|||
|
|||
do you mean just place
<link href="stylesheet url here" rel="stylesheet" type="text/css" /> in the headerinclude template? |
#4
|
||||
|
||||
I'll probably use this instead:
Code:
<style type="text/css"> @import url('/path_to_script.css'); </style> Though, the code you have will work too. |
#5
|
|||
|
|||
thank you
|
#6
|
|||
|
|||
Quote:
ive read it here: http://www.webdevout.net/css-hacks#in_css-import_media |
#7
|
||||
|
||||
In all of my tests and applications it worked. These were dated back from 2005 using various browsers including IE versions 5.0 and 5.5. Sites such as CSS Zen Garden and other CSS devoted sites use it too.
|
#8
|
|||
|
|||
ok thx
i was confused because of this article |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|