Hey Martin, 2009/3/1 Martin Dietze <[email protected]>: > Now in WT I have not seen this approach yet. In the examples, > CSS seems to get used to to set particular layout properties to > widgets in a rather straightforward way. E.g. I usually want to > leave the attributes of a font to the web designer (who will most > likely edit some CSS classes to accomplish this) rather than set > a properthy "red" or "bold" in the code.
Wt has been used in that sense. The homepage is one example where the CSS design was done by a designer. The way to proceed is: - use setStyleClass() to assign style classes to widgets - use useStyleSheet() to load the style sheet - sometimes you will need to insert extra layers of 'div's As the designer preferred using 'id' rather than 'class' for some style rules, the homepage mirrors this design to some extent too. See for example the constructor of the homepage (which makes use of a small shorthand class 'Div'): http://www.webtoolkit.eu/wt/doc/examples/html/Home_8C-source.html#l00087 Regards, koen ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
