billatl
10-29-2009, 12:35 AM
Hello,
I am in the process of converting a page based on a table layout. One of the items I'm having a problem with is CSS for resizing an image doesn't work. I need to resize several images - so using the background element won't work for me.
So, I have several images on the page that are referenced like this: <img src="../images/image1" width="143" height="82" />
In trying to rework this with CSS, I've come up with this:
reviewimage { //also tried reviewimage img {
padding: 5px 15px 0 0px;
width: 143;
height: 82;
float:left;
vertical-align:text-top;
}
Then use one of the following to display the image:
<div class="reviewimage"><img src="../images/image1" /></div>
<img class="reviewimage" src="../images/image1" />
Neither of these work. The padding, alignment, etc. work - but not the resizing - Why???
I am in the process of converting a page based on a table layout. One of the items I'm having a problem with is CSS for resizing an image doesn't work. I need to resize several images - so using the background element won't work for me.
So, I have several images on the page that are referenced like this: <img src="../images/image1" width="143" height="82" />
In trying to rework this with CSS, I've come up with this:
reviewimage { //also tried reviewimage img {
padding: 5px 15px 0 0px;
width: 143;
height: 82;
float:left;
vertical-align:text-top;
}
Then use one of the following to display the image:
<div class="reviewimage"><img src="../images/image1" /></div>
<img class="reviewimage" src="../images/image1" />
Neither of these work. The padding, alignment, etc. work - but not the resizing - Why???