Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Changing Font ColorChanging Font Color
Previous
 
Next
New Post
2/12/2008 8:20 AM
 

On the standard menu (navigation bar) there is a "search" mechanism.  The mechanism consist of two radio buttons (Web and Site), a textbox, and then a button that consist of the word "Search".  I'm changing the color of the menu bar to a dark navy blue and to do that I need to change all the text to white.  I'm been successful in using the skin.css to change all the text to white except the "Search" text.  To get the "Web" and "Site"
 text to change I added a ".SkinObject" section to the skin.css file (see below), but it doesn't seem to support changing the "Search" text.  Why?

.SkinObject
{
 font-weight: bold;
 font-size: 8.5pt;
 color: White;
 font-family: Tahoma, Arial, Helvetica;
 text-decoration: none;
}

 
New Post
2/12/2008 11:26 AM
 

Because the "Search" is a link. I guess you were trying to customize the color of the text, instead if the hyperlink.

There are many ways to do this without changing the .SkinObject style throughout the entire site.
Here is my recommendation:

  1. Wrap your search area around a div (or table if you're not doing a pure CSS skin), give it a CSS class then style it accordingly.
  2. Give the search token a class (this can be done in either the .ASCX or Skin.xml file), then style it accordingly.

Hope this helps!


Cuong Dang
Co-founder: Enliven, dnnGallery
LinkedIn | Twitter
I'm the author of DNN and Web Standards Wrox Blox

 
New Post
2/15/2008 11:59 PM
 

when you have trouble figuring out what you need to apply a color to...I usually view the source and see if DNN is making it a straight text thing, or what kind of element is wrapping it.  This way, if say it's just in a <span> tag in your <div id="wrapper">, then you could do:

#wrapper span

{

color:blue;

}

but if it's a link, you need to use I think

using your class as an example:

.SkinObject a   /* this is the <A> tag
{
 font-weight: bold;
 font-size: 8.5pt;
 color: White;
 font-family: Tahoma, Arial, Helvetica;
 text-decoration: none;
}

There are also things called "psudo" classes ( I think they are classes...whtever)

so you can do things like:

.SkinObject a :visited  /* the :visisted part says...if it's an <a> tag...or..more specifically so it makes sense <a href="blahblalbah> sometext </a> */

{
 font-weight: bold;
 font-size: 8.5pt;
 color: White;
 font-family: Tahoma, Arial, Helvetica;
 text-decoration: none;
}

.SkinObject a:hover  /*if the mouse is hovering over it */

{
 font-weight: bold;
 font-size: 8.5pt;
 color: White;
 font-family: Tahoma, Arial, Helvetica;
 text-decoration: none;
}

and so on...google for "psudo class" or element or something, and throw a CSS into your google search with it..put psudo class or psudo element in quotes though so it looks for them both in order.

or A:hover i suppose will generate some results.

 


Josh Martin

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Changing Font ColorChanging Font Color


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out