Category Archives: Code

Solution to "display:table-row" causing pain and suffering with IE

I recently came up against a sit­u­a­tion where I wanted to add rows to a table via javascript. Not a prob­lem with jQuery, EXCEPT that my table rows were being added with 'style="display:block"'. What's wrong with that, you ask? Well, in Fire­fox the row was being appended to the table but it looked all scrunched […]

Posted in Code | Tagged | Leave a comment

Internet Explorer image resizing tip

Who knew? Though it's not best prac­tice to resize images in the browser this could really be use­ful in the right sit­u­a­tion:   img { –ms-interpolation-mode: bicu­bic; }   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. […]

Posted in Code | Tagged , | 3 Comments

Problem with input focus on Safari

I had a javascript hic­cup, and I think the solu­tion may be help­ful to oth­ers. 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 […]

Posted in Code | Tagged , , | 1 Comment