0
Welcome Guest! Login
0 items Join Now

Re: Best ways to combine site .css files?

    • Bob Ateah's Avatar
    • Bob Ateah
    • Elite Rocketeer
    • Posts: 4521
    • Thanks: 0

    Re: Best ways to combine site .css files?

    Posted 17 years 10 months ago
    • As I understand things, it is preferable to combine the various .css files used on a site into a single file.
      How would one effectively go about this?

      Any thought or suggestions very much appreciated, cheers!
    • The member formerly known as Roland Deschain
      After your question is solved, please Edit your original post and choose the Solved message icon, thank you!
  • Re: Re: Best ways to combine site .css files?

    Posted 17 years 10 months ago
    • Just scanning through your style.css and template_css.css and just stick the variables in.
    • James Spencer / Developer & Support / Hull, UK
    • Bob Ateah's Avatar
    • Bob Ateah
    • Elite Rocketeer
    • Posts: 4521
    • Thanks: 0

    Re: Re: Best ways to combine site .css files?

    Posted 17 years 10 months ago
    • So for example, in a case where the following .css files are used on a site:
      rokmoomenu.css
      template_css.css
      secondary-color.css
      primary-color.css
      menu-color.css
      body-color.css
      rokslidestrip.css
      rokzoom.css

      One would edit the template_css.css file the following way (adding comments as need be as in the example)?

      start of template_css.css file
      >template_css.css code here<

      Comment for added .css file
      >rokmoomenu.css code here<

      Comment for added .css file
      >secondary-color.css code here<

      Comment for added .css file
      >primary-color.css code here<

      Comment for added .css file
      >menu-color.css code here<

      Comment for added .css file
      >body-color.css code here<

      Comment for added .css file
      >rokslidestrip.css code here<

      Comment for added .css file
      >rokzoom.css code here<

      End of template_css.css

      Would this be correct fine sir? Are there any others changes required? Any pitfalls to avoid? Why is the sky blue? Does James really live on Muffins?

      Cheers!
    • The member formerly known as Roland Deschain
      After your question is solved, please Edit your original post and choose the Solved message icon, thank you!
    • Leckenby's Avatar
    • Leckenby
    • Elite Rocketeer
    • Posts: 714
    • Thanks: 0

    Re: Re: Best ways to combine site .css files?

    Posted 17 years 10 months ago
    • I think would have to tell the code to look in template_css.css rather than, for example, theothercssthatyouhavedestroyed.css
  • Re: Re: Best ways to combine site .css files?

    Posted 17 years 10 months ago
    • If you look in the CSS for the RT templates, a common comment that you will see is /*background:see style.css*/ or something of a similar standing.

      You basically want to do the reverse of this
    • James Spencer / Developer & Support / Hull, UK

Time to create page: 0.905 seconds