Results 1 to 2 of 2

Thread: Breaking the ccs files into smaller files

  1. #1
    Join Date
    Jan 2009
    Location
    Huntington Beach, CA
    Posts
    718

    Default Breaking the ccs files into smaller files

    Being relatively new to css, I am finding it difficult to maintain, change and add to the css files standard.css and alt.css.

    So I thought it would be easier if I broke it apart to different css files for each section of the web pages, and I could just import each sections stylesheet in the .jspx pages for each section to make it a clean separation of concerns. But I am finding it a little difficult to figure out where to make the changes to use my set of 5 .css files instead of just one.

    I noticed the tag util:load-scripts, which loads a .properties file which has the .css file listed in it and changed it to have my 5 .css files. Is this what would work?

    Is breaking it apart a good practice. I find it easier to keep my head around my styles.

    Thanks

    Mark

  2. #2
    Join Date
    Jan 2009
    Location
    Huntington Beach, CA
    Posts
    718

    Default

    I figured it out, I can use the @import url(''); inside the standard.css file and import the other 5 files and keep the standard.properties file the way it was.

    Thanks

    Mark

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •