Witty Login

Now, it took me a while to figure this one out but I’ve managed to get the Witty authentication widget to center itself on-screen. Getting the actual widget itself to work took only a quick look at the tutorial and example. But it was never centered until today.

All that was missing was to add the following right at the beginning of the code, right after loading the Bootstrap theme.

setTheme(new Wt::WBootstrapTheme());
root()->addStyleClass("container");

That did the trick. Now everything is nicely centered.

k3-login

You may also like...

Leave a Reply