Hi,
GWT apps are web apps and they're running inside a browser, thus it's a good
choice to use CSS. If you look to the Showcase app (
http://gwt.google.com/samples/Showcase/Showcase.html), it's using different
themes and the switch is done by changing the CSS file, which provides
colors, borders, etc. There are lots of other examples, like creating a
Dialog, which lays over the rest of your app.
The differences of CSS in different browsers is a common problem, but most
webdevelopers know how to work around. In GWT this also means, that defered
binding allows to create different implementations for different browsers.
Another point, you should care about, is, how do you create margin or
padding without CSS? In other GUI frameworks like SWT, you've got layout
constraints, that can be applied to a component, but in GWT, you don't have.
CSS is the prefered way to do.

Regards
Jan Ehrhardt

On Sat, Jul 25, 2009 at 11:25 PM, Mehdi Rabah <[email protected]> wrote:

>
> Hi,
>
> I'm trying to use CSS for the layout of my website (for now, the
> layout is made with layouts). The worst problem I've seen is that the
> layout is not the same on different browsers.
>
> So, since the GWT philosophy is to abstract the development from the
> browser, I was asking myself if the GWT team recommend the use of
> CSS?
>
> Does GWT developpers really use CSS? For what use? (IMHO positionning
> with CSS really suck, the "margin: auto" to center a div doesn't work
> on IE8)
> >
>

--~--~---------~--~----~------------~-------~--~----~
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