dadamssg Posted November 15, 2010 Share Posted November 15, 2010 I'm looking for any guidance on how to dynamically create css files. I want users to be able to select colors for fonts/backgrounds, borders, etc. from a form which they will submit and it will create a css file and put it in a certain folder. Can someone point me in the right direction? Quote Link to comment Share on other sites More sharing options...
requinix Posted November 15, 2010 Share Posted November 15, 2010 So what part do you not know how to do? Do you need help from the very beginning of this or do you have a bit of something already? Quote Link to comment Share on other sites More sharing options...
doni49 Posted November 15, 2010 Share Posted November 15, 2010 My best advice would be to NOT try and create actual files on the fly. Store the variable info into a DB and then later each page that needs to use this CSS info would just include it directly on the page. It's what PHP sends to the browser that is important. Quote Link to comment Share on other sites More sharing options...
chintansshah Posted November 15, 2010 Share Posted November 15, 2010 Hey dadamssg, I am agree with doni49, I faced problem with on the fly CSS file creation. Save it to DB is good option for dynamic CSS. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.