Site logo

Archived topic

Images in header element appear different sizes

5 replies · Started by William on August 21, 2020

Viewing posts 1–6 of 6

Hi there,

I noticed the images in the header of category pages and post pages appear different, where I want them to be consistent.

Example category page and example post page

I'm not sure why this is occurring?

Kind regards,

Will

Hi there,

Since you are using this CSS:

.page-hero #category_image img {
    vertical-align: bottom;
    max-height: 150px;
    min-width: 100px;
}

max-heightand min-width are both not "consistent" properties.

Maybe try width and height instead?

Hi there,
I've changed it to be just 'height: 100px;' and this looks good on this page but squashed on this page.

The problem is the image dimensions are going to be slightly different so I do not want to change the scaling but keep the ratio the same. What would be the best way for this?

That works a charm :) thank you.

I have one other small CSS regarding the header element, should I open up a new topic or push it here?

A new topic would be good.

This archived topic is closed to new replies.