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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Text FormatText Format
Previous
 
Next
New Post
4/25/2010 4:21 AM
 

Hi,

I have a new aspx page that I want to have its contents in the same text size & colour as say the text in a html module.

How would I do this.

Thanks in advance

 
New Post
4/25/2010 5:12 AM
Accepted Answer 

The size, colour and font-family of a font will be controlled via the CSS of the skin you're using, and the best way to find this is to look at the skin.css file or skinname.css in the skin package.

From the CSS file you'll be able to determine what elements have what style and then use this in your new page. An example of this would be the settings for p will be applied to any <p> elements in your page.

Rick.



PSDtoDNN - You supply the artwork... we'll build the skins!™
Website | Twitter | YouTube | Skype
 
New Post
4/25/2010 4:30 PM
 
Thanks Rick
 
New Post
4/25/2010 6:56 PM
 

i want to know that what is the procedure to switch dynamically b/w style sheets???? i want to change everything like color, font etc in just 1 click.... plz tell me... i want something like this:

http://www.dynamicdrive.com/dynamicindex9/stylesheetswitcher.htm

i applied this code on my testpage but it didnt make effective my page is:

http://dnn5.dnngraphics.com/kinetics/MenuStyle1/tabid/613/Default.aspx?SkinSrc=[L]%2fskins%2fnewstyle%2findex

 

my html code is:

<head>
<link rel="alternate stylesheet" type="text/css" href="skin.css" />
<link rel="alternate stylesheet" type="text/css" media="screen" title="blue-theme" href="blue.css" />
<link rel="alternate stylesheet" type="text/css" media="screen" title="red-theme" href="red.css" />

<script src="styleswitch.js" type="text/javascript">
/***********************************************
* Style Sheet Switcher v1.1- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>
</head>
<body>
<form id="switchform">
<input type="radio" name="choice" value="blue-theme" onClick="chooseStyle(this.value, 60)">Blue Theme<br />
<input type="radio" name="choice" value="red-theme" onClick="chooseStyle(this.value, 60)">Brown Theme
</form>
<div id="contentpane" runat="server"></div>
</body>
</html>

 

my blue css code is:

body{ background: blue;}

 

& red is:

body{ background: red;}
#contentpane{background:red

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Text FormatText Format


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