Posts [ 6 ]

Topic: Cross Browser Css

Hi, I am making an application and I want to write different css for different browsers.I have slove this problem by writing linked css in comments for windows but now I have to write css for safari also. so, Please tell me how can I call css for safari. I think javascript is needed for this task.

Re: Cross Browser Css

Hi mahendra,

I don't have the solution for your problem, but mind if I ask what this would be good for? Are you planning on showing different page layouts for each browser or are you simply trying to fix/hack cross-browser issues?

When you are trying to fix/hack and need a CSS for every browser, then I think your CSS might not be valid. I did not come across a site so far that needs specific CSS for each browser to be displayed the same way in all of them.

If you are planning on displaying a different site layout for every browser I am sure there is a method in Rails to determine the current browser. You can then include the wanted CSS before the page gets rendered.