Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-06-09 09:27:52

otti
Member
From: Australia
Registered: 2008-04-16
Posts: 75
Website

load css and images

I have uploaded my css style sheet and js scripts and link them with a form using something like that:
<link href=“includes/mycss.css” rel=“stylesheet” type=“text/css” />
Is that the way to go?
Also, do I have to upload the images used via the files tab or can I just link them as usual in html:
<img src=“images/Side_Image.jpg” alt=“Port Victoria Image” width=“210” height=“140” />
Is it good practice to use the CSS Link and the Article Image Tag or is it good enough to point to the image folder where my images reside?

Thanks very much.
otti

Offline

#2 2008-06-09 11:23:02

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: load css and images

TXP doesn’t prevent you from uploading files and CSS manually using FTP. If that’s what you want, then you can link them using normal HTML markup. No problem. Some people find it easier to edit CSS and upload files through the TXP admin interface, so they can use the corresponding TXP tags in the template, but the choice is up to you.

Offline

#3 2008-06-10 05:38:45

otti
Member
From: Australia
Registered: 2008-04-16
Posts: 75
Website

Re: load css and images

Thanks very much for that clarification.
otti

Offline

Board footer

Powered by FluxBB