Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Folks,
I find it really hard to come up with pictures that work well when they are as long and thin as the banner size. I would really like to have my pictures retain their aspect ratio, expand to the correct height and then float to the centre of the banner page. I am a bit of a novice in "css" so I can't figure out how I might do this. Any thoughts before I dig out my image editing tools and start creating wide images with lots of white space at the side...
Dave
Comments
Comment #1
BhumikaVarshney CreditAttribution: BhumikaVarshney as a volunteer and at OpenSense Labs commentedTry this
img.slide{
object-fit: cover;
}
Comment #2
BhumikaVarshney CreditAttribution: BhumikaVarshney as a volunteer and at OpenSense Labs commentedComment #3
gaurav.kapoor CreditAttribution: gaurav.kapoor commented