the<!--[ conditional comment ]-->

Many Web Developers debate whether Conditional Comments should be used. Some argue that Conditional Comments are against the fight for web standards and thus should not be used, while others feel they are a nessecary part of web standards. Which ever stance you take, our purpose is to to blend the browser differences so everyone can view the web the same way.

 

Conditional Comments are sets of code that a browser will render in one browser and overlook in another. The basic structure of the typical conditional comment is based on an HTML comment. In addition to the typical Conditional Comment, there are other pieces of CSS code, Known as CSS Hacks that can function like a conditional comment because of how different browsers skip and overlook the code.

 

Learn More About Conditional Comments [Wiki]



← Older posts

Safari Only

More Information | copy code

Remove Button Text in IE7

More Information | copy code

FavIcon Hack

More Information | copy code

Mac only CSS using Javascript

More Information | copy code

Only applies to canvases narrower than 1000px

More Information | copy code

Mobile code for iPhone, Android devices

More Information | copy code

Mobile device portrait layouts only

More Information | copy code

Mobile device and landscape layouts only

More Information | copy code

iPad Only CSS

More Information | copy code

Greater Than IE6

More Information | copy code

Less Than IE5.5

More Information | copy code

Less Than IE6

More Information | copy code

Greater Than or Equal to IE5

More Information | copy code

IE9

More Information | copy code

IE8

More Information | copy code

IE7

More Information | copy code

IE6

More Information | copy code

IE5.5

More Information | copy code

IE5.0

More Information | copy code

IE5

More Information | copy code

Global IE

More Information | copy code

IE7, Firefox, Safari, Opera

More Information | copy code

IE7

More Information | copy code

IE6 and below

More Information | copy code

All Firefox

More Information | copy code

Firefox 3

More Information | copy code

Firefox 2

More Information | copy code

Hide from IE 6 and Lower

More Information | copy code

Hide from IE 6 and Lower

More Information | copy code

Non IE-7 Only

More Information | copy code
← Older posts