I am working on an app which allows users to choose style options inside the app. These options will then be used to generate a dynamic web page. I was wondering what my options are to achieve the styling of this page, and what the pros and cons are of these options?
The way I see it, I have these 3 options:
-
Apply the css inline
-
Create a dynamic php stylesheet… e.g:
<link rel="stylesheet" type="text/css" href="http://domain.com/style.php/> -
i have also heard about caching stylesheets but I am not even sure about how to do this. If this is the best option where would be the best place to read up on this?
Are these all the options available? And which would be best for what I am trying to achieve?
Thanks for any input
Paul
Of course your second option is the best.
With a style.php you are able to output whenever you want based on the user logged in.
Consider I use style.php without even needing to customize it for the user.
With it you can extend CSS functionalities like:
Also don’t forget to: