|
#1
|
|||
|
|||
|
Loading additional CSS
Anyone know of an easy way of loading different CSS files into image_template.html?
__________________
www.nauglevision.com/pix |
|
#2
|
|||
|
|||
|
To use a different stylesheet for just the image_template.html page, you can change this tag in the head section on that page.
Code:
<link rel="stylesheet" href="templates/pixelpost-light/pixelpost-light.css" type="text/css" /> If you don't have a new CSS file you can make a copy of the existing stylesheet, rename it to something else, then make your style changes. Then follow the step above.
__________________
Enjoy Life...theres plenty of time to be dead |
|
#3
|
|||
|
|||
|
what do you mean:
- another css-file then the one in the header of the template? just change it - different templates? One for print, one for screen etc.? - just add these in the header: Code:
<link rel="stylesheet" href="screen.css" media="screen"> <link rel="stylesheet" href="print.css" media="print"> There are many examples around for that... |
|
#4
|
||||
|
||||
|
Code:
<link rel="stylesheet" href="templates/pixelpost-light/pixelpost-light.css" type="text/css" /> Code:
<link rel="alternate stylesheet" href="templates/pixelpost-light/pixelpost-dark.css" type="text/css" />
__________________
Affordable Website Design in North Wales |
|
#5
|
|||
|
|||
|
Quote:
Some photos look better on dark, some light. Now that I look, JSpurling's site has a button on his site: http://www.jlspurling.com/ at the bottom. Code on the button is: <a href="#" onclick="setActiveStyleSheet('White'); return false;">white</a> I guess I'll research "setActiveStyleSheet" function.
__________________
www.nauglevision.com/pix |
|
#6
|
||||
|
||||
|
this is actually a javascript file but it's easily translated into php which is obviously more user friendly:
go to : http://www.alistapart.com/articles/alternate/ and : http://www.alistapart.com/articles/phpswitch/
__________________
Affordable Website Design in North Wales |
|
#7
|
|||
|
|||
|
got it working
THX Goat Friend. I got it working. Now I just need to redesign a nice CSS to load into it.
-N
__________________
www.nauglevision.com/pix |
| Post Reply |
| Thread Tools | |
|
|