Hi,
You can change by changing the theme of the page. create two theme in you website and each contains a css file, one is StyleIE7.css and another is StyleFirefox.css. In the Page_PreInit event check the browser type and change the theme of the page. Then the website will apply the css file under the associate theme folder.
The following is a sample code.
protected void Page_PreInit(object sender, EventArgs e)
{
if (Request.Browser.Browser == "Firefox")
Page.Theme = "SkinFile";
else
Page.Theme = "Basic";
}
Please let me know if it works.
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Yours sincerely,
Amanda Wang
Microsoft Online Community Support