Hi, the CSS rule ‘margin’ is being injected into the inspector. If I change the css margin amount, the margin of the elements in the inspector will be also be changed.
The png image file referenced in the css rule ‘background’ is being displayed in the background of the SpriteManager.
Click on the explorer and inspector. See how the three css rules in the “.title” class “width, margin, background” are changing the inspector and explorer as mentioned above.
Just noticed that it’s the name of the html class attribute “.title” that is causing the bug. When it is changed to “.title2”, then it fixes the problem. Is “.title” reserved?
.title is indeed a class name that Babylon is using for its own use, so better not use the same name.
I guess it would be nice if all CSS classes used by Babylon would have some kind of prefix to limit name collision issues but I think that would be a hard work to undertake…