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

Categories: Experiential

0 Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.