Override main style sheet in masterpage

This is a discussion on Override main style sheet in masterpage within the DOTNET forums in Framework and Interface Programming category; I have been asked to change some background colors in a website that use a masterpage. This only effects 6, with each set of 2 using a different stylesheet of the many web pages, but I am having trouble trying to override the main stylesheet on the pages it effects. Can anyone point me in the right direction? Thanks!...

Go Back   Application Development Forum > Framework and Interface Programming > DOTNET

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-02-2008, 12:18 PM
jessicalgaudette@gmail.com
Guest
 
Default Override main style sheet in masterpage

I have been asked to change some background colors in a website that
use a masterpage. This only effects 6, with each set of 2 using a
different stylesheet of the many web pages, but I am having trouble
trying to override the main stylesheet on the pages it effects. Can
anyone point me in the right direction? Thanks!
Reply With Quote
  #2  
Old 09-02-2008, 01:22 PM
Cowboy \(Gregory A. Beamer\)
Guest
 
Default Re: Override main style sheet in masterpage

You can use subclasses master pages and only override the colors you need to
(in the page, not the CSS file). This is probably the easiest way to do it.
Anything embedded on the page proper will override styles in the CSS file,
per rules of CSS. As another option, you can add different CSS files for
that portion. Same idea, but linked rather than embedded.

If this is not good enough, you can link the CSS file during render
programatically. I am not sure how exactly one would do this, but I am sure
you can google it. I would say this is a second option if all you are doing
is changing a few colors.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#

or just read it:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
<jessicalgaudette@gmail.com> wrote in message
news:89e80d60-957e-4be1-857a-96f0527f2713@f63g2000hsf.googlegroups.com...
>I have been asked to change some background colors in a website that
> use a masterpage. This only effects 6, with each set of 2 using a
> different stylesheet of the many web pages, but I am having trouble
> trying to override the main stylesheet on the pages it effects. Can
> anyone point me in the right direction? Thanks!


Reply With Quote
  #3  
Old 09-02-2008, 02:22 PM
Hillbilly
Guest
 
Default Re: Override main style sheet in masterpage

Insufficient information for me; are you using a Theme or StyleSheetTheme?
Have any controls been bound to a stylesheet, i.e. CssClass="SomeClass" and
when you say --background-- what do you refer to? The background of the
page? What? What do you mean effects 6 with each set of 2? Of what?

Yes, these criteria matter to give a cogent reply.


<jessicalgaudette@gmail.com> wrote in message
news:89e80d60-957e-4be1-857a-96f0527f2713@f63g2000hsf.googlegroups.com...
>I have been asked to change some background colors in a website that
> use a masterpage. This only effects 6, with each set of 2 using a
> different stylesheet of the many web pages, but I am having trouble
> trying to override the main stylesheet on the pages it effects. Can
> anyone point me in the right direction? Thanks!


Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 02:30 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.