Results 1 to 3 of 3

Thread: Change the bgcolor in the stylesheet

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2001
    Location
    Austin
    Posts
    397

    Change the bgcolor in the stylesheet

    is there a way in codebehind to change the bgcolor in the stylesheet?

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Change the bgcolor in the stylesheet

    I don't think you can actually access the CSS file like that. It's "wrong" because then the change reflects everywhere. Instead, use client side javascript to set the bgcolor of the body or whichever element you're looking for. Or even better, change the css class attribute you're using for the element to some other css class.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2001
    Location
    Austin
    Posts
    397

    Re: Change the bgcolor in the stylesheet

    what i'm trying to do is allow users to change the color of all the pages contained in my site by clicking on one of a few color options.

Posting Permissions

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



Click Here to Expand Forum to Full Width