We're displaying objects within a web-page which have basic height and width properties. We can generate the HTML objects utilising the HtmlTextWriter object and plan to apply the Height and Width properties by referencing the object's ID in embedded css class at the top of the class.
#bob
{
height: 20
width: 20
}
...
<div id="bob"></div>
1) Firstly, is this a good approach or should we be considering another approach like inline css ?
2) There doesn't appear to be anything written in the surrort of rendering css within the .net framework. Does anyone know of anything which might be of assistance in rendering css notation with the .net framework. Is there an equivalent to HtmlTextWriter
?
3) Do you know of any tools which can be of assistance in generating css from code ?
Kind Regards