Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > CSS > CSS Cascading Style Sheets
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 21st, 2006, 08:23 AM
Wrox Technical Editor
 
Join Date: Dec 2005
Posts: 271
Thanks: 0
Thanked 0 Times in 0 Posts
Default CSS and ASP.NETs Themes, and Skins

I’m looking for tips and tricks (from CSS geeks) for using Themes, Skins, and CSS in ASP.NET 2.0.

Specifically I’d like to know if anyone has an elegant equivalent for:

    Using conditional comments with themes and skins:

        Example:
            <!--[if IE]>
                <link href="IEQuirkFixFile.css" rel="stylesheet" type="text/css" media="all" />
            <![endif]-->

    Controlling the load order of CSS files.

    Omitting CSS files from the automatic loading of CSS files.

    This post has been cross posted at: http://p2p.wrox.com/topic.asp?TOPIC_ID=51186

Thanks in Advance,

- Adam Kahtava [http://adam.kahtava.com]
__________________
- Adam Kahtava [http://adam.kahtava.com]
 
Old November 13th, 2006, 08:58 PM
Wrox Technical Editor
 
Join Date: Dec 2005
Posts: 271
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I’ve encountered a number of design flaws with the way ASP.NET 2.0 Themes and Skins work with Cascading Style Sheets (CSS).

Themes and Skins basically compromise CSS in complex applications, or any web application that uses syntax similar to my last post.

The items listed below are inaccessible when using Themes and Skins - with the exception to a couple "work arounds" that still don't completely expose all of CSS's functionality.

1. CSS media types
2. The CSS @Import rule
3. The CSS @Media rule
4. Preferred and alternate style sheets
5. Media-dependent cascades
6. Inheritance and cascading
7. The use of Microsoft's Conditional Comments

Read more in my article titled: The Problems with Themes, Skins, and Cascading Style Sheets (CSS) - Where it all Falls Apart: http://adam.kahtava.com/journal/Comm...cd804b683.aspx


- Adam Kahtava [http://adam.kahtava.com]





Similar Threads
Thread Thread Starter Forum Replies Last Post
Applying themes programmatically in asp.net parimanamn ASP.NET 3.5 Professionals 1 May 23rd, 2008 06:53 AM
ch6 Skins and Named Skins wingri BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 April 8th, 2008 02:57 AM
help for a code to change css themes masita CSS Cascading Style Sheets 0 May 30th, 2007 03:12 PM
Advanced Themes, Skins and CSS adam_kahtava ASP.NET 2.0 Professional 1 April 3rd, 2007 07:25 PM
Themes in asp.net 2.0 lwebzem ASP.NET 2.0 Basics 2 January 23rd, 2007 06:14 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.