Posts Tagged ‘ie’

Internet Explorer image resizing tip

Tuesday, March 17th, 2009

Who knew?

Though it's not best prac­tice to resize images in the browser this could really be use­ful in the right situation:

 
img { -ms-interpolation-mode: bicubic; }
 

This lit­tle snip­pet will vastly improve the image resiz­ing abil­i­ties of ie — bring­ing it closer to the resized image qual­ity expe­ri­enced with Fire­fox or Safari.

exam­ple

[seen at devthought via css-tricks]

Problem with input focus on Safari

Wednesday, February 20th, 2008

I had a javascript hic­cup, and I think the solu­tion may be help­ful to others.

The basic setup is this:

Lim­ited space means no room for labels in a login form. So instead we used a pre­set value in the input ele­ments, like so:

 
<input value="Username" name="username" type="text" />
<input value="Password" name="password" type="text" />
 

Which looks like this:

The easy way to blank out the descrip­tive text is to use the onfo­cus event like so:

 
onfocus="this.value=''"
 

(more…)