Style tags only affect certain area?

Started by Jek, August 14, 2010, 01:40:11 am

Previous topic - Next topic

Jek

I have this CSS code that I stick in some of my pages to stop images from getting too big.
<style type="text/css">img {max-width: 100px;width: expression(this.width > 100 ? 100: true);}</style>

This code sizes down any image above 100 px in width, to 100 px wide.
What i am having an issue with, is figuring out how to use this code on only a part of a pages code. So lets say my header has images over the size of 100 px, but I want the icons for my Game section to be 100 px wide if the icon is too wide..