Wednesday, September 7, 2011

vaadin-xs and wrong css styles

When using vaadin-xs plugin I've noticed that page renders incorrectly (wrong font sizes, wrong input sizes) without specifying correct doctype to the html page.

The magic is to add
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

at the beginning of the html page. Thanks to this