Author: jahabdank | Posted on: 10/11/2008 7:38:58 AM | Views : 329

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&qu ...

Go to the complete details ...