When removing the doctype rule, your CSS code works (except in IE, because of the doctype).
Please note the Doctype can not be set by using IWClientCode.
The Doctype rule must appear as the first row in your HTML page, right before the <HTML> tag.
In IntraWeb AFAIK it can only be set by using a TemplateProcessor control.