Tag: hack - Webeame Snippets


Añadir snippet

Tag: hack



Hack para Internet Explorer 7

Sencillo y práctico
  1. *+HTML elemento { reglas }

En CSS ie internet explorer 7 hack css por yakichan hace on 21/2/08 | Comentarios



Clearfix CSS Hack

  1. /* slightly enhanced, universal clearfix hack */
  2. .clearfix:after {
  3. visibility: hidden;
  4. display: block;
  5. font-size: 0;
  6. content: " ";
  7. clear: both;
  8. height: 0;
  9. }
  10.  
  11. .clearfix {
  12. display: inline-block;
  13. }
  14.  
  15. /* start commented backslash hack */
  16. * html .clearfix {
  17. height: 1%;
  18. }
  19. .clearfix {
  20. display: block;
  21. }
  22. /* close commented backslash hack */
Más info en http://perishablepress.com/press/2008/02/05/lessons-learned-concerning-the-clearfix-css-hack/

En CSS hack float clear por alberto hace on 17/2/08 | Comentarios



Hack CSS para Internet Explorer 7

Un asterisco delante de la propiedad CSS y así sólo será reconocida por Internet Explorer 6 y 7
  1. body {
  2. background: #fff; /* Todos los navegadores */
  3. *background: #000; /* IE6 e IE7 */
  4. }
Usar !important cuando no queremos dar cierta propiedad a IE6
  1. body {
  2. background: #fff !important; /* Firefox, IE7 y los demás */
  3. background: #000; /* IE6 y anteriores */
  4. }
Hack exclusivo para IE7
  1. body {
  2. background: #fff !important; /* Firefox y los demás */
  3. *background: #000 !important; /* Sólo IE7 */
  4. *background: #ccc; /* Sólo IE6 */
  5. }
Más en http://granimpetu.com/articulos/hack-css-para-internet-explorer-7/

En CSS hacks por admin hace on 30/1/08 | Comentarios