CSS issues

Hi Im creating some of my UI in the DOM but simple things such as this css (which should just center an element horizontally) just dont work. When I run this on jsfiddle everything is fine, but as soon as I try to use it on an element in Playcanvas the element disappears. Are there some unknown parent divs in Playcanvas which are cascading their styles onto my elements or something? Cheers

    margin:0 auto;

Your best bet is to look at the browser inspector the DOM elements to be sure to see what is being affected

1 Like