CodeVerge.Net Beta


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

ASP.NET Web Hosting
Microsoft Gold Certified Partner – 3 Months Free and Free Setup



Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > microsoft_downloads.css_friendly_control_adapters Tags:
Item Type: NewsGroup Date Entered: 5/4/2006 12:29:09 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 38 Favorited: 0 Favorite
1 Items, 1 Pages 1 |< << Go >> >|
paulell
Asp.Net User
Conditional Comments with CSS5/4/2006 12:29:09 AM

0/0

Just wanted to give everyone some links to more information about Conditional Comments in IE. These allow you to further tweak your CSS for IE 5.0, 5.5, 6.0 etc without hacks if your specific CSS is not working properly in those browsers. The whitepaper shows a sample but these links give you some additional info.

For example:

<link href="StyleSheet.css" rel="stylesheet" type="text/css" title="default" />
<link href="StyleSheetPrint.css" rel="stylesheet" type="text/css" media="print" />
<!--[if IE 5.0]>
 <link href="StyleSheet-IE50.css" rel="stylesheet" type="text/css" title="IE50" />
<![endif]-->
<!--[if IE 5.5]>
 <link href="StyleSheet-IE55.css" rel="stylesheet" type="text/css" title="IE55" />
<![endif]-->
<!--[if IE 6.0]>
 <link href="StyleSheet-IE60.css" rel="stylesheet" type="text/css" title="IE60" />
<![endif]-->

MSDN - About Conditional Comments
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/ccomment_ovw.asp

Hack-free CSS for IE
http://virtuelvis.com/archives/2004/02/css-ie-only

Also if your testing your website with the 'Standalone' IE browsers, they all report the main version of IE you have installed on your system in Conditional Comments. For example, on my system I have IE6.0 installed, so when I test with the Standalone IE5.0 the Conditional Comment runs for IE6.0 anyways. To test I just change the version numbers in the comments temporarily to my current IE version then switch them back when i'm done.

Below is a website that has an archive of standalone browsers for testing.
http://browsers.evolt.org/

Best Wishes,
Paul

1 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
CSS: The Missing Manual Authors: David Sawyer McFarland, David McFarland, Pages: 476, Published: 2006
CSS, DHTML, & Ajax: Visual QuickStart Guide Authors: Jason Cranford Teague, Pages: 562, Published: 2007
The Essential Guide to Dreamweaver CS3 with CSS, Ajax, and PHP Authors: David Powers, Pages: 784, Published: 2007
CSS Cookbook Authors: Christopher Schmitt, Pages: 516, Published: 2006
Pro CSS Techniques: Real-world CSS Techniques for Real World CSS Professionals! Authors: Jeff Croft, Ian Lloyd, Dan Rubin, Pages: 376, Published: 2006
Dreamweaver CS3: The Missing Manual Authors: David Sawyer McFarland, Pages: 995, Published: 2007
CSS Hacks and Filters: Making Cascading Style Sheets Work Authors: Joseph W. Lowery, Pages: 266, Published: 2005
Beginning CSS Web Development: From Novice to Professional Authors: Simon Collison, Pages: 413, Published: 2006
Beginning CSS: Cascading Style Sheets for Web Design Authors: Richard York, Pages: 630, Published: 2007
HTML Mastery: Semantics, Standards, and Styling Authors: Paul Haine, Pages: 226, Published: 2006

Web:
CSS - Conditional comments Are conditional comments CSS hacks? Strictly speaking, yes, since they can serve to give special style instructions to some browsers. ...
Conditional comments in CSS | AlastairC May 13, 2006 ... Conditional comments in CSS. With the advent of Internet Explorer 7 (IE 7), there is now little choice but to create separate style sheets ...
Targeting IE Using Conditional Comments The css-controlled boxes below have detected whether your browser is IE/Win or not, using only conditional comments and a single CSS file. ...
IEBlog : Call to action: The demise of CSS hacks and broken pages We ask that you please update your pages to not use these CSS hacks. If you want to target IE or bypass IE, you can use conditional comments . ...
Hack-free CSS for IE - Arve Bersvendsen Use of conditional comments instead of other css hacks is simple: ..... Is there any way I can do something similar to conditional comments within a css? ...
SitePoint » How to Use Conditional Comments for Better CSS Nov 13, 2008 ... In a sentence, he shows how using conditional comments to customize the element’s class name can be used to simplify CSS selectors ...
Stu Nicholls | CSSplay | Conditional comments for IE and non-IE ... Apr 7, 2006 ... The above text is generated using just conditional comments. There is no CSS, javascript, PHP or any other programming language involved. ...
Why I avoid using conditional comments | The Montoya Herald Conditional comments are ignored by everything but [specific versions of] Internet Explorer. CSS hacks are most often still processed client side. ...
Stop using CSS hacks now | 456 Berea Street Oct 13, 2005 ... I still don’t see the need for CSS hacks though. I think using conditional comments to import an IE-specific CSS file that contains the few ...
Internet Explorer Conditional Comments Apr 8, 2008 ... It may seem odd to discuss HTML markup in a CSS reference, but conditional comments are Microsoft’s recommended mechanism for delivering ...












vertical align

is css control adapters compatible with webpart and webpartzone controls?

adding menu css classe

atlas and gridview css control adapter doesn't work together

.browser file is not read anymore (iis broke?)

web.config - adding css friendly adapters to existing website

asp menu shows over text in ie 7

turn of css adapter for selected controls

problems with css adapters - tables are generated for login control

detailsview bound to gridview selectedindex behaving differently when using css adapters and selectedindex = -1

introduction to this forum

css height

problem centering menu control using adpaters

ie 6 problem - search results are pushed down in the content area

problem with formviewadapter

detailsview adapter css to allow multiline name spans

use cssadapters in library

how do not apply adapter to derived controls or call original render method?

menu control - how to display 2nd level menu items horizontaly ?

css friendly control adapters is not running with update panel of atlas

adding controls to existing site

problem with sitemap content

cleint-side support

treeview cssadapter theme does not work with function log out anymore

ok,i'm trying to replicate the enhanced horizontal menu example

stylesheet question

loginstatus - always says login

css menu adapter and ie6

staticdisplaylevels is very important

selected | alternate row deon't work: fix

  Privacy | Contact Us
All Times Are GMT