CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 9/19/2005 9:39:02 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 4 Views: 27 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages 1 |< << Go >> >|
clintonG
Asp.Net User
Themes and Stylesheet Management9/19/2005 9:39:02 PM

0/0

I have found no documentation or blog -- yet -- that discusses how to use Themes and multiple style sheets to support various browsers and so on.

I got started using the SmokeAndGlass Theme and wrote all of my new style declarations into the default Stylesheet.css that I found with that theme. Now I need to refactor by relocating many if not most of my declarations out of App_Themes/SmokeAndGlass/Stylesheet.css and into one or more style sheets I intend to locate at ~/Stylesheets/SmokAndGlass/SmokeAndGlass.css.
 
I'm asking for your opinions and best practice methodologies you may have devised or discovered.


<%= clintonG
vimodi
Asp.Net User
Re: Themes and Stylesheet Management9/20/2005 5:42:52 PM

0/0

When stylesheets(.css) are defined in the theme folder (/App_Themes/themeName) then it will autometically applied to the page to which Theme is applied.

There are two ordering occurs when .css is applied thorugh Theme
1. ordering of .css files stored in Theme folder. - If theme folder contains multiple .css files (a.css, b.css and c.css) then its applied in a alphabetical order to the page.
2. ordering of .css file stored in Theme folder and content specified in the Head tag of page. - If page is using Theme then the .css specified in the Theme folder are applied later. But if page is using StyleSheetTheme then .css specified in the Theme folder are applied first.

So the combine effect will be like -

    page-> a.css
    theme -> b.css & c.ss
    then rendered output is : a b c

    page-> a.css
    satylesheettheme -> b.css & c.css
    then rendered output is : b c a


If you decided to move stylesheet(.css) out of theme folder then .css wont be applied directly to the page.

HTH

Vishal
---------
This posting is provided "AS IS" with no warranties, and confers no rights.
clintonG
Asp.Net User
Re: Themes and Stylesheet Management9/21/2005 1:04:41 AM

0/0

Thank you for responding vimodi. I now recall reading your previous forum replies that explained the alphabetical parsing order but your reply does not resolve some issues I am concerned with. How did you discover this alphabetical parsing anyway?

This article from Jesse Liberty [1] does a good job of -- starting -- to explain Themes and Skins but there is still a lot left unsaid. 

How do we programatically load style sheets for different browsers? Any .css files located in the App_Themes folder will all be stuffed into the head like a garbage dump. Even .css files put into folders that are in the App_Themes folder will be pulled out of the folders and dumped like a garbage dump.

Ordinarily we have been using Javascript or @import directives in the head to logically determine or load css files. How are we supposed to control css files that are needed in the head 'after' the Theme is dumped into the head? I use positioning and to programatically load different style sheets after a Theme has been selected in a DLL and is written into the page directive using Pre_Init.

I've tested using the new Html Link class and it does allow us to write link elements into the head and they do appear after the the style sheet emitted by the Theme but there's still plenty of methodology to be learned and if anybody has picked up anymore tips and tricks I'm waiting to hear from them :-)




[1] http://www.ondotnet.com/pub/a/dotnet/2004/11/15/libertyonwhidbey.html



<%= clintonG
vimodi
Asp.Net User
Re: Themes and Stylesheet Management9/21/2005 6:56:32 PM

0/0

One way to achieve that will be defining different Themes for different borswers using device filters. And in each theme put css specific to that browser.

<%@ Page Language="C#" IE:Theme="IeTheme" Mozilla:Theme="MozillaTheme" %>

HTH

Vishal
---------
This posting is provided "AS IS" with no warranties, and confers no rights.
clintonG
Asp.Net User
Re: Themes and Stylesheet Management9/22/2005 2:20:51 PM

0/0

Yes, thank you, but where is the documentation? I've been all over MSDN and its not jumping off the page at me.
<%= clintonG
5 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Wordpress for Dummies Authors: Lisa Sabin-Wilson, Matt Mullenweg, Pages: 408, Published: 2007
Microsoft Sharepoint: Building Office 2007 Solutions in C# 2005 Authors: Scot Hillier, Pages: 513, Published: 2007
Sams Teach Yourself Office Productivity All in One: All in One Authors: Greg M. Perry, Pages: 792, Published: 2003
Essential SharePoint 2007: A Practical Guide for Users, Administrators and Developers Authors: Jeff Webb, Pages: 428, Published: 2007
ASP. NET V. 2. 0-the Beta Version: The Beta Version Authors: Alex Homer, Dave Sussman, Rob Howard, Pages: 620, Published: 2004
Beginning ASP.NET 2.0 Databases: Beta Preview Authors: John Kauffman, Thiru Thangarathinam, Pages: 427, Published: 2005
Beginning Jboss Seam: From Novice to Professional Authors: Joseph Faisal Nusairat, Joseph Nusairat, Pages: 350, Published: 2007
Professional ASP.NET 2.0 Authors: Bill Evjen, Scott Hanselman, Farhan Muhammad, Srinivasa Sivakumar, Devin Rader, Pages: 1253, Published: 2005
Proposal Guide for Business Development Professionals Authors: Larry Newman, Shipley Associates, Pages: 274, Published: 2001
Powerful Proposals: How to Give Your Business the Winning Edge Authors: David G. Pugh, Terry R. Bacon, Pages: 254, Published: 2004

Web:
Themes and Stylesheet Management - ASP.NET Forums Themes and Stylesheet Management. Last post 09-22-2005 10:20 AM by clintonG. 4 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
Themes and Stylesheet Management - ASP.NET Forums Re: Themes and Stylesheet Management. 09-20-2005, 1:42 PM. Contact ... Re: Themes and Stylesheet Management. 09-20-2005, 9:04 PM. Contact ...
Exponent CMS: Open Source Content Management System Enterprise ... Mar 7, 2008 ... Exponent will first load the required stylesheets located in /exponent/themes/ common/css/required . Any stylesheets included in this ...
A Proposal for Theme Management in WordPress Apr 2, 2008 ... A Proposal for Theme Management in WordPress ... a custom CSS file for every theme in wp-content that loads after the main stylesheet. ...
Download Conditional Stylesheets 6.x-1.0 - This Drupal module ... Sep 17, 2008 ... Conditional Stylesheets This Drupal module allows themes to specify ... And the normal base theme stylesheet overriding/removing rules apply ...
S9y, Themes and Stylesheets. - Sacrificial Rabbit Wednesday, May 18. 2005. S9y, Themes and Stylesheets. ... One of the most annoying things about S9y is the fact that the main stylesheet is a PHP script, ...
Premium WordPress Themes: Where Are The Print Stylesheets? One thing I would like to see, though it is actually very basic, is that each theme including a print stylesheet. This of course is a separate stylesheet ...
Stylesheets | drupal.org Color.module has the ability to customize and generate stylesheets in a snap. ... Example themes using both shift and tag : FriendsElectric, Nista, Splender ...
Yann de Champlain's WebLog: Apply style sheet (Theme) the public ... NetWORKing, Project Management, Technical tips, Information technologies, ... Apply style sheet (Theme) the public view of personal site and infos on styles ...
Admin CP Themes - MyBB Wiki Each theme contains stylesheets, as well. Note: The MyBB Master Style is the ... You can add a stylesheet from the Edit Theme page by selecting the "Add ...




Search This Site:










valid html

is everyone on holiday?

dnn sig - san antonio tx

rss feed email harvesting..

where is admindb in dnn 3.0

problem using skin attributes for sqlpartmenu...

vs.net 2005 beta 1 is released

3.0.10 host user access problem

transactions

forum/blog and gallery install error in dnn 3.0.12

free skins

map quest interaction

ecommerce costs

dnn under mozilla

solpart menu / actionbase.vb

possible to use solmenu vertically and horizontal?

dnn site shows no content

how do i extend user fields

solpartmenu shows submenu in top left corner in firefox

see content in xp / not in windows 98

visual studio 2003 - which version to buy?

lost references when opening from vss

host settings options!!!

when is the plan 3.0.10 rc and prod release?

back button - page not found v2.12

dnn 3.05 main portals and child portals distincition

3.0.4 issue - admin and host menu not localized

dnn3 > dnn4 module conversion

assign a value to a variable based on a role membership...

portal failed to install

  Privacy | Contact Us
All Times Are GMT