Thursday, 27 March 2014

CSS hack for IE 10 in 2 easy step with JavaScript its very easy and usefull

1. incude below scipt in html page



  1. <!--[if !IE]><!--><script>  
  2. if (/*@cc_on!@*/false) {  
  3.     document.documentElement.className+=' ie10';  
  4. }  
  5. </script><!--<![endif]--> 



2. include below css in styleSheet


  1. .ie10 .example {  
  2.    /* IE10-only styles go here */  
  3. }  



Thanks

Wednesday, 5 March 2014

<div style="display:table">
<div style="display:table-cell; vertical-align:middle; text-align:center;">
 abc
</div>
</div>