Alex Rivera | Logout

How to set maximum height for $img but keep proportions

Asked 2009-12-22T18:27:48.903
10

How to set maximum height or width for:

$img_attributes= ' height=100 width=100 '. 'alt="'.$product['product_name'].'"';

Edit
Report

1 Answer

17

Well, there are the max-height and max-width CSS properties, aren't they? THey work in all major browsers except IE 6 and in IE 7.

answered 2009-12-22T18:34:12.640

Your Answer