Now that you can get the validator to have the proper tagging, thanks to the browser file, and the control based on HtmlForm.
Second stage is to handle style sheets. You should avoid using a <link> or <style> tag in the body, always... I prefer to use
ONLY link tags in the page header.
TIP 1: If you are using master pages, and want to add a tag to the head section in ASP.Net 2.
Page.Headers.Add(new LiteralControl(String.Format(
@"<link rel=""stylesheet"" type=""text/css"" href=""{0}.css"" />",
Page.Request.Path
));This will allow you to have a MyPage.aspx with a
css for just that page with MyPage.aspx.
css ... I actually have been using my master page to check for the existance of the
css, and add the link tag if it exists... I also check for _ with Request.Browser.Browser.ToLower() as well. This allows me to have my general link/stylesheet, with custom, or tweaks per browser, or page.
You can also use the IE conditional comment syntax for IE browsers.
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="all-ie.css" />
<![endif]-->
As an example. you can google for
IE conditional comment for more information on this, such as syntax. Since IE7 will correct a lot of issues, and Opera 9 corrected most of their issues.. IE6 and below will probably be your only real concern in the next year. You will likely have a general style, with a conditional comment style for IE6.
Hope this helps as a starting point into using
css... if you want more information on
CSS in general, would look at "Cascading Style Sheets: The Definitive Guide" from O'Reilly Press, which is now in it's second edition.
http://www.amazon.com/gp/product/0596005253/If you are curious as to how far
CSS can go with a site, feel free to check out the
CSS Zen Garden, or my site (
Roughneck BBS).
CSSHow to use CSS in ASP.net