Chrome troubles...

Posted by GaVrA on Stack Overflow See other posts from Stack Overflow or by GaVrA
Published on 2010-06-06T00:33:24Z Indexed on 2010/06/06 0:42 UTC
Read the original article Hit count: 408

Filed under:

Take this site for example:

http://pms.rs/contact

Everything is just fine just by using this css for textarea:

#kontakt input, #kontakt textarea{
width:250px;
}
#kontakt textarea{
height:150px;
}

But ofc chrome is always smarter and in it user can drag that bottom right corner of textarea and resize it to the size he likes. Call me control freak, but that is very dumb thing to have if no other browser is using that. On sites like this it is not a big deal, but somewhere it can cover the entire content and for me personaly, i like to limit as much as possible what user can do so he does not break my site(like for example adding too large images in posts on forums...).

So i have to do something like this:

#kontakt input, #kontakt textarea{
width:250px;
}
#kontakt textarea{
height:150px;
max-height:150px;
max-width:250px;
}

Just so i get chrome to play as all other browsers do...

While i was typing this i realised that i really dont have any question per se, but i just thought to share this with SO public, so i will mark this as community wiki.

Also some other things i noticed are inputs, i always have to put width for input or textarea just because chrome is always not rendering them as he should.

© Stack Overflow or respective owner

Related posts about google-chrome