Jump to content

CSS Editing?


astheo

Recommended Posts

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!

Link to comment
Share on other sites

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! :D

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.