PDA

View Full Version : CSS refuses to work.


MrApples
11-17-2007, 10:23 PM
This code works:

<img id="logoempf" class="logomid" height="159" width="50" src="/styles/7M-v1/new/hd_emptymidnew.jpg" border="0" alt="Logo Filler" />


But this code does not. It is supposed to resize it to 50 width from 100 width.

<img id="logoempf" class="logomid" src="/styles/7M-v1/new/hd_emptymidnew.jpg" border="0" alt="Logo Filler" />


This is the CSS for it. I am certain the CSS is recognized, I tested it. The max's have just been put in to try to fix this, it didn't work without them.

img.logomid{
max-height: 159;
height: 159;
max-width: 50;
height: 50;
float: left;
}


If anyone could help me out here that'd be great, I can't see a reason why this isn't working.

--------------- Added 1195347519 at 1195347519 ---------------

Nevermind! I was not using 'px' for width and height, didn't know it was that strict.

Thank you validator.
http://jigsaw.w3.org/css-validator/