treehouse : what would you like to learn today?
Web Design Web Development iOS Development

combine several style sheets into one

  • Hi,
    being a newbie to css, I'm wondering if there is a way to combine a few style sheets, into one, and the how to reference to each sheet from the page that requires it.

    Hope this makes sense :)

    Cheers, Hubba
  • I've talked to some people who create separate style sheets for typograhy, for page layout, etc....I've just always used one style sheet and linked it like so in my head tag:



    But I also group and categorize all my styles. If you're creating one style sheet only, I'd suggest categorizing/grouping your styles. If you're using multiple style sheets, you'd reference each CSS file (as shown above).






  • I'm not sure if I completely understand the question. If you're just trying to combine style sheets, you should just be able to copy/paste the information into one CSS file and make sure it is pointed to that style sheet in the head tag (just like robst mentioned).

    However, make sure there aren't any conflicting styles.