I'm designing a CSS driven web site and i'm wondering where to put the height and width values of images.
1. Put them in the html as usual
2. Use CSS to give each image it's sizes. ie. #logo img { height: 150px; width: 150px }
3. If a div only has one image in it. Should i set the size on the div and not define it for the specific img or in the html. ie. #logo { height: 150px; width: 150px }
4. Should you define the size in the html, the div and for the image?
What's the best practice?
1. Put them in the html as usual
2. Use CSS to give each image it's sizes. ie. #logo img { height: 150px; width: 150px }
3. If a div only has one image in it. Should i set the size on the div and not define it for the specific img or in the html. ie. #logo { height: 150px; width: 150px }
4. Should you define the size in the html, the div and for the image?
What's the best practice?