That's because gwt-bootstrap injects the bootstrap.css into your GWT app and bootstrap.css defines default styles for standard HTML elements like <h1>
, etc.
If you don't want bootstrap to override the default styles there are several solutions:
- Modify the bootstrap.css in the gwt-bootstrap library file and remove the styles that you don't want
- Create a separate css file that sets the styles for the specific HTML elements back (using !important)
- Extends gwt-bootstraps CssResources and pass a custom css file.
Solution 3 is probably the cleanest one.