Hi Parvinder,

I'd use either the witty grid layout:
http://www.webtoolkit.eu/widgets/style-and-layout/wgridlayout

or the CSS layout: http://www.webtoolkit.eu/widgets/style-and-layout/css

Along with CSS: http://www.w3.org/Style/Examples/007/center#block

...

Personally I use the CSS layout along with the yahoo grid system:

http://developer.yahoo.com/yui/grids/

and they have a nice page builder thing, that'll give you a page template:
http://developer.yahoo.com/yui/grids/builder/
which you can use with the WTemplate widget:
http://www.webtoolkit.eu/widgets/basics/wtemplate

Good luck,
Matthew

On Sun, Jul 3, 2011 at 12:58 AM, PARVINDER RAJPUT <m...@parvinder.co.in>wrote:

> Hello Everyone
> I want to change the location of image. I want to placed at center. how can
> i hve solve my problem. plz tell me
> my source code is:
>
>
> #include <Wt/WApplication>
> #include <Wt/WBreak>
> #include <Wt/WContainerWidget>
> #include <Wt/WText>
> #include <Wt/WAnchor>
> #include <Wt/WImage>
> using namespace Wt;
>
> class HelloApplication : public WApplication
>
> {
> public:
>   HelloApplication(const WEnvironment& env);
>
> };
> HelloApplication::HelloApplication(const WEnvironment& env)
>   : WApplication(env)
> {
>   setTitle("Parvinder");
> Wt::WImage *img = new Wt::WImage("/images/logo.png", root());
>  img->setAlternateText("Parvinder");
>
>   root()->addWidget(new WText("<h1>TCC</h1> "));
> root()->addWidget(new WBreak());
>
>
>
>
>
> }
>
> WApplication *createApplication(const WEnvironment& env)
> {
>
>   return new HelloApplication(env);
> }
>
> int main(int argc, char **argv)
> {
>
>   return WRun(argc, argv, &createApplication);
> }
>
>
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> _______________________________________________
> witty-interest mailing list
> witty-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to