Use this helper, or copy it into your project:
https://github.com/sporkd/compass-html5-boilerplate/blob/master/lib/app/helpers/html5_boilerplate_helper.rb#L17

-ie_html do
  %head...

Brevity disclaimer: Sent from my iPhone
---
bradley grzesiak
co-founder, bendyworks llc
http://bendyworks.com

On Feb 26, 2011, at 9:04 AM, Luke <kickingje...@gmail.com> wrote:

> Hi there,
> 
> I find this approach ( 
> http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
>  ) of nesting the opening tag of the <body> into IE-Conditional comments like
> 
> <!--[if lt IE 7 ]> <body class="ie6"> <![endif]--> 
> <!--[if IE 7 ]>    <body class="ie7"> <![endif]--> 
> <!--[if IE 8 ]>    <body class="ie8"> <![endif]--> 
> <!--[if IE 9 ]>    <body class="ie9"> <![endif]--> 
> <!--[if gt IE 9]>  <body> <![endif]-->
> <!--[if !IE]><!--> <body> <!--<![endif]-->
> 
> pretty interesting. You can use CSS-selectors like .ie7 .mydiv then. But I 
> don't know how I can write this in HAML.
> 
> /[if !IE]
>  %body
> 
> creates an opening and closing body tag.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Haml" group.
> To post to this group, send email to haml@googlegroups.com.
> To unsubscribe from this group, send email to 
> haml+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/haml?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to haml@googlegroups.com.
To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Reply via email to