In this StackBlitz I have a Kendo for Angular Dialog that contains a div. I need to center the dive vertically/horizontally in the Dialog area. How is this possible? I tried with "margin: auto"
but did not work.
@Component({
selector: 'my-app',
template: `
<kendo-dialog [width]="340" [height]="200">
<kendo-dialog-titlebar>
The Title
</kendo-dialog-titlebar>
<div id="div1">CENTER THE DIV</div>
</kendo-dialog>
`,
styles: [`
#div1{
width:120px;
height: 40px;
background-color: yellow;
}
`]
})
export class AppComponent {
public opened: boolean = true;
}