You're right, the problem can be with classes, because Kentico uses the Bootstrap and JQuery for styling.
If you turn off your css it should display correct, right?
You can override this, by adding special preceding class (this classes Kentico adds to the body, depending where you are):
- .DesignMode - for hte Desing tab
- .EditMode - for the Page tab
Browser specific classes