Hey Antonio,

2010/2/26 Antonio Tancredi <[email protected]>:
> Hi, I need to set "padding: 10px".
> Please, can you tell me how can I do this?
>
> I used this but it doesn't works:
> class HelloApp : public WApplication
> {/* ... */};
> HelloApp::HelloApp(const WEnvironment& env)
> {
> /*...*/
> this->styleSheet().addRule(".tab", "padding: 10px");
> /*...*/
> table = new WTable(root());
> table->setStyleClass("tab");
> /*...*/
> }

You are doing it correctly (you could also use an external
stylesheet), but I do not think you can set padding to the table
itself, only to its table cells. I find Firebug (plugin for Firefox) a
useful tool to explore CSS markup during development.

Perhaps you can use margin: 10px to achieve the result you are looking for ?

Regards,
koen

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to