img height: 70% on post-template-2

Posted in: Newspaper
Post count: 312

Hi

I tried this code, but it doesn’t work, can you help me please ?

.td-post-template-2 .td-post-featured-image img {
max-width: 100%;
width: auto\9;
height: 70%;
}

https://imgur.com/a/hinJ9rn

thank you

Post count: 35449

Hi,

Your code is applying, but the image will be display after the width of the image if is set the width and height in %, in order to have s set height you’ll need to set in px.

Thank you for your understanding!

Post count: 312

OK nice, I just have understood.

Thank you 🙂

  • This reply was modified 6 years by gumball44.
Post count: 312

Ok I can now reduce the size, can’t change the form.. It is still a square.. I don’t know why..

Post count: 312

I would like a rectangle 661px*463px

Post count: 312

Ok I found the way to make a rectangle 661px*463px, but I would like to keep the proportions.

So how can i cut the bottom of my image (611-463 = 148px) ? thank you

here the code i’m using now

.td-post-template-2 .td-post-featured-image img {
width: 661px;
height: 441px;
}

https://imgur.com/a/Vf0M3ib

  • This reply was modified 6 years by gumball44.
Post count: 35449

Hi,

I think that the most easy way it will be to use a single post template from tagDiv Cloud Library -> http://prntscr.com/pppigx replace the featured image with bg featured image -> http://prntscr.com/pppirt -> http://prntscr.com/pppjba and set on it the height you want to-> http://prntscr.com/pppjjo

Thank you!

Post count: 312

What template number do you use ?

Post count: 20688

Hi,

Those two featured image elements can be used regardless of the cloud post template. I believe Calin was using this template in the example
https://cloud.tagdiv.com/#/single/single/Single/12
If you have more questions let us know.

Thanks

Post count: 6

Guys, I am not sure why the team isn’t replying to my queries while I see replies on other people’s. TAGDIV team. I want a refund

Post count: 35449

Hi gauravmongia, we already approved your refund!

Viewing 11 posts - 1 through 11 (of 11 total)
The forum ‘Newspaper’ is closed to new topics and replies.