adamcutts Posted April 4, 2020 Share Posted April 4, 2020 Hi, I have used a code block to contain an image and have created some code to allow this code block to crop relative to the page dimensions. I am however unsure how to keep the content centered vertically rather than cropping from the top. Here is an example of my current css .sqs-block { padding: -0 !important; margin-top: -0px; margin-bottom: -0px; object-fit: cover; max-height: 50vh; } Many thanks Link to comment
tuanphan Posted April 5, 2020 Share Posted April 5, 2020 Can you share link to page where you insert Code Block? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.