astheo Posted March 6, 2008 Share Posted March 6, 2008 Hi, I don't know if this question belongs in this section. My apologies if I am in the wrong section. I have one question. I'd like to make a website where a guest can generate a CSS file according to his preferences which he can use to edit the style of his own page. If you are familiar, It's kind of like the Friendster of Myspace thing. If you don't mind, can you please tell me how does it work or what are the necessary things I have consider in order to make the code? I am not asking you to make the code itself...Thanks! Quote Link to comment Share on other sites More sharing options...
TheFilmGod Posted March 6, 2008 Share Posted March 6, 2008 You need to create a 100% css page. Tables can be used but would be a pain in the ass. (excuse my french) The code of the page would use a lot of <div class="something"></div> In essence you would use php to parse an external style sheet (css) code for each new profile after pulling the information from a database. PHP would go throw and splice and dice the info into a nice css file which would list all the class/ids you are looking for, with the correct declarations. Simple as that. One last thing, make sure the css file has "no caching" info. - I don't know how you would do this. A viable solution to this would be to place the css declarations in the html page "near the top"... ??? Hope that help! 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.