Chaos Project

General => Electronic and Computer Section => Programming / Scripting / Web => Topic started by: Jek on August 14, 2010, 01:40:11 am

Title: Style tags only affect certain area?
Post by: Jek on August 14, 2010, 01:40:11 am
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..