Perfect, exactly what I was looking for. The conditionals can even be
used directly from within <style>...</style> in the .ui.xml-file :-)

Thanks
Chris

On Feb 22, 5:16 pm, Thomas Broyer <[email protected]> wrote:
> On Feb 22, 3:12 pm, Chris Lercher <[email protected]> wrote:
>
> > Hi,
>
> > what's the best way to get browser-dependent CSS in UiBinder?
> > Sometimes IE requires a bit of special styling...
>
> Use CssResource's conditionals with @if rules!
>
> Excerpt from the Mail sample:
>
>   @if user.agent ie6 {
>     @url logoIe6 logoIe6Data;
>     .logo {
>       background-image: logoIe6;
>       width: 140px;
>       height: 75px;
>       position: absolute;
>     }
>   } @else {
>     @sprite .logo {
>       gwt-image: 'logo';
>       position: absolute;
>     }
>   }
>
> http://code.google.com/p/google-web-toolkit/source/browse/trunk/sampl...

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to