[wsas-java-dev] Re: [esb-java-dev] Keeping two style sheets for IE and Firefox

Ruwan Linton ruwan at wso2.com
Tue Jan 16 18:47:47 PST 2007


Hi,

I found that there is an another manageable way of doing the same thing 
through one style sheet (ease of managing the style sheet) through 
escaping styles. i.e. when we write styles with a leading underscore (_) 
Firefox neglect that where as IE neglects normal styles if the same 
style is there with a leading underscore. For example if we say,

.myClass {
  margin-left: 10px;
  _margin-left: 5px;
}

in the css, then IE takes the second one and Firefox takes the first one.

Thanks Chinthata, Saminda and Chamil on figuring this out for me.

thanks,
Ruwan.

Ruwan Linton wrote:
> Hi all,
>
> I found that some of the styles are applied differently in theses two 
> browsers and hence it is better to have two style sheets to manage the 
> same look and feel in both browsers.
>
> I can easily do this by replacing the href attribute of the default 
> link to point to the other css if the browser is IE in the init() js 
> function which will be called onload of the app. Is there a better way 
> of doing this and comment on this idea..... I have already done the 
> approach I have described above and it works...
>
> Thanks,
> Ruwan.
>
> _______________________________________________
> Esb-java-dev mailing list
> Esb-java-dev at wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev
>





More information about the Wsas-java-dev mailing list