Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

How many CSS Files can be used in responsive design

  • 11-09-2013 11:56am
    #1
    Registered Users, Registered Users 2 Posts: 1,298 ✭✭✭


    One thing i've noticed is that any tutorials or anything on responsive design only cover up to 3 css sheets.

    Can you use more or is 3 the max that can be used?


Comments

  • Registered Users, Registered Users 2 Posts: 4,081 ✭✭✭sheesh


    Nope as many or as few as you like but if it's a busy site you will take a hit on the server sending extra files.

    Some people suggest that you have all the functional areas separate on your test server so you can edit and change them safely but when you are putting it into the live site you stick the css into one big file and use some automated process to get rid of all the whitespace within that file. so you will have 1 css, 1 js, 1 html and images to send to the user.


  • Registered Users, Registered Users 2 Posts: 20 uglybunz


    You need to be careful with IE, versions < 10 - they can't handle more than 31 stylesheets and can't cope with more than 4096 selectors in one stylesheet. That's a whole lot of styles, but use a complex CMS sitting on top of a few frameworks and js libraries and you can cross these limits surprisingly easily.


  • Registered Users, Registered Users 2 Posts: 88 ✭✭mrbubbles


    Why would you want to use lots of stylesheets? Ideally once you have finished building the site you should be using a pre-processor (LESS/SCSS/SASS) to compile them all into a single stylesheet to reduce the amount of HTTP requests your site is making. Something like Codekit on Mac can automate this process for you...


  • Registered Users, Registered Users 2 Posts: 293 ✭✭Manc Red


    Two CSS files is more than sufficient for most websites. Three is about the max any website would need and should only ever be used on very complex sites.


Advertisement