Displaying a form in the center of the page

Hi,

How do you center a form on a page? For example, like a login page. I’ve tried the usual css for this, but it’s not working.

Thanks,
-S

Hi,

You should use Webix layout component to create a structure from 3 rows and three columns and place the form in the center cell while the others remain empty:

webix.ui({
   rows:[
     {},
     { cols:[
        {},
        { form_view },
        {}
     ]},
     {}
   ]
});

http://webix.com/snippet/d58b59c4