Text always aligned horizontally

1

I can align text horizontally. I always set a height and a line-height and everything is fine. But in Chrome, the cursor within a input gets huge, since I always set everything to px . If I put, for example line-height:auto everything is fine, however, it gets bugged in IE, even if I use padding-top .

Is there any way that these setbacks do not occur?

    
asked by anonymous 10.09.2014 / 18:48

1 answer

1

You can use hack:

/* Hack firefox */
@-moz-document url-prefix() {.selector {color:lime;}}

/* Hack Google Chrome */ 
@media screen and (-webkit-min-device-pixel-ratio:0){.classe{width:246px;} } 

/* Hack Internet Explorer 6:*/  _background-color: blue;

/* Hack Internet Explorer 6 e 7:*/  *background-color: red;

/* Hack Internet Explorer 8:*/  background-color /*\**/: #FFCC00;

/* Hack Internet Explorer 9 e 10:*/  background-color: #FFCC00;
    
06.11.2014 / 14:47