Hello Everybody,
everyone knows that the IE, Opera, Firefox etc. render the CSS differently. This is a very big problem, when the website must look exactly as the customer wants. Therefore what I thought I could do is to change the assigned style sheets accordingly to the browser tht is running at the moment.
I can find out what browser I am running by checking this.Request.Browser.Browser (there this is the Page object). So what I want to do now is to have two sets of styleshees with exactly the same files/classes inside - for each of the browser type. Example:
~/Css/IE/Main.css
~/Css/Firefox/Main.css
where each of the files has different definitions of the same classes. What I want to do is to change the link tag in the header of the page accordingly to the current browser :
<head runat="server">
<link rel="stylesheet" type="text/css" href="Css/IE/Main.css" />
<title>My page.</title>
</head>
The only question is how can I change the 'href' property of the 'link' tag inside the 'head', from my code behind. Once that can be done, there rest is very simple.
Thanks in advance,
Jozef A. Habdank