I’m a little confused as to how I apply CSS formatting to my templates. I’ve tried doing a traditional
<link rel="stylesheet" type="text/css" href="style.css" />
within the HTML of the template, but that didn’t work, nor does using the style element.
In addition, how do I apply CSS to a template variable? For example, I want to be able to generate pages with questions and answers so for example in the template the code is:
[*question1*]
<br />
[*answer1*]
<br />
[*question2*]
<br />
[*answer2*]
<br />
[*question3*]
<br />
[*answer3*]
How do I apply CSS to those TV’s like [*question3*] and so on? Oh and I’ve also tried creating a CSS document within the MODX file tree and referencing it in the head section using
but that didn’t work either. Help! Any info in general about integrating CSS into templates would be much appreciated.