Results 1 to 2 of 2

Thread: Social Networking Site Help

  1. #1
    Join Date
    Nov 2007
    Location
    USA
    Posts
    170
    Thanks
    8
    Thanked 22 Times in 22 Posts

    Default Social Networking Site Help

    Hello,

    I am creating a social networking site using PHP. I am using templates for the pages. I want to let the users be able to choose the colors they want for their own pages. I am curious on how I can do this using PHP. The only way I can think is to override the styles by embedding them in the page.

    Example:

    CSS File:
    Code:
    body
    {
    background-color: #000000;
    }
    Generated PHP page:
    Code:
    <style type="text/css">
    
    body
    {
    background-color: <?php echo $color; ?>;
    }
    
    </style>
    I know this is not a good idea, as it will cause pages to be very heavy. Plus I want to keep all my content and styles separate like it should be. Could anyone give me any suggestions for an alternative way?

    Thanks!
    What is obvious to you might not be to another.


    My Site

  2. #2
    Join Date
    Nov 2007
    Location
    USA
    Posts
    170
    Thanks
    8
    Thanked 22 Times in 22 Posts

    Default

    Oh come on, no one has any input or advice?
    What is obvious to you might not be to another.


    My Site

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •