We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29076
    • 615 Posts
    I have a main-template with static width, and documents, but I want to change the width of the conten-area in some of the documents, without making i.e. 20 different templates.

    Lets say I want the content-area-width for Firstpage to be 400px. And for Secondpage 600px. And for Thirdpage 800px.

    I have a main-css file with all the common data, and small css-files to set the content-width.

    How can I connect the small css-files to the different documents?

    Thanks in advance!
      I think, thererfor I am! But what I am, and why...?
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Make the small css a chunk, put the chunk in your template head in <style> tags, and use TVs to set the width for different pages.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 29076
        • 615 Posts
        Thanks for leading me in the right direction. It works very well now.

        I made three chunks called css1, css2 and css3.

        And i made a TV where I call up the chunks with either @CHUNK css1, @CHUNK css2 or @CHUNK css3 i the different documents. smiley
          I think, thererfor I am! But what I am, and why...?