Reputation: 1166
I've got a table row that I want to stay at a certain height (50px) but when I put an image into it then it stretches it beyond that which is entirely not what I want. When the image is inserted I want it to have it's bottom line in line with the bottom of the cell and the rest of the image floating above it.
Does anyone have any ideas?
Here's an example of what I mean
Upvotes: 0
Views: 609
Reputation: 178
In your CSS:
.nyanRow, .nyanRow img
{
max-height: 50px;
}
Is that what you are looking for?
Upvotes: 0
Reputation: 10649
Your jsfiddle does not seem to be working (the image is not valid), but you can try setting a class for the table row like:
max-height: 50px;
overflow: hidden;
This will keep the contents from making the row larger than 50px high.
Upvotes: 1