Tuesday, May 20, 2014

GWT browser specific css

Yea it is possible to write browser specific css with GWT application which uses CSS through CssResource.
    @if user.agent gecko1_8 {
    	.startup p {
    		color: #000000;
    		text-shadow: 0 0 3px #000000;
    	}
    } @else {
    	.startup p {
    		color: #000000;
    	}
    } 
 
Note: You can use this logical if else and many more other expression inside css which are used inside GWT code. Only through CssResource interface. If you are directly using the respective css inside html main source file then this will not work.




For more details refer






2 comments:

  1. Thanks for your article .its very useful for everyone.Really interesting & valuable infomation. best aws training in chennai | aws course fees details

    ReplyDelete
  2. This is an awesome post. Really very informative and creative contents. This concept is a good way to enhance knowledge. I like it and help me to development very well. Thank you for this brief explanation and very nice information. Well, got good knowledge.
    WordPress development company in Chennai

    ReplyDelete