If anyone can help on where to insert the image width and height, along with reducing space. The smaller the image gets, the bigger gap / spacing between the image and the text is.
It looks like you solved the issue by some media queries, is this not a problem any longer?
If not, I guess you want the space stay the same regardless of the images’ size? If so you could abandon the absolute position of the thumb part and:
– Use css table-row-cell displays, but that would require a restructuring of the html to get the same layout column wise.
– Or you could use float to let the item details left edge follow the thumb with a margin. E.g.:
I restored a backup because when I resized the image, it made a huge space.
So my question here would be the same I asked Erik. How do I resize my image? And once I do, there will be a huge gap beside it, I would need to adjust that. All in CSS. Seems very simple, but I cannot solve it.
I’m not sure what you are asking? The 175x100 doesn’t keep the image ratio so that would be better done in an image editor where you can resize and crop to another ratio.
The space is set by a large left margin on the “.item-details” that is changed by media queries. The “.td-module-thumb” has position absolute placed in the space left by that left margin and its width and the left margin is changed together by media queries.
(I think you knew that anyway. )
I am not worried about the image ratio. I have a tool that will resize them all. Even without the ratio, I need to know where in the CSS to specify the width: 175px and height: 100px?
After I resize, I will look into the “item-details” and see what to do to take out the gap beside the picture.
Your" style.css" has set all image tags to 100% width. To set only those images you could create a new rule using their class “.entry-thumb”. E.g.:
img.entry-thumb {
width: 170px;
height: auto; /* height by ratio */
}