Hello,
I am stuckeling with the following case:
How to present 2 pictures next to each other in a fixed frame of like width 100%, height 400px. and the 2 pictures have to be max size of the box, but not streched, but cropped when nessesarly.
I did it in the old days with the following code:
<!DOCTYPE html>
<html>
<body>
<div style="width:100%;height:400px;outline-style: dotted;">
<img src="/images/picture01.jpg" alt="Pic01" style="float:left;width:50%;height:100%;object-fit:cover;">
<img src="/images/picture02.jpg" alt="Pic02" style="float:left;width:50%;height:100%;object-fit:cover;">
</div>
</body>
</html>
Where picture01.jpg is 800x600 and picture02.jpg is 300x700 (example)
I rebuild it in sp pagebuilder:
made a section: change nothing in the setting there
put 2 colmn in the section: width = 50%, changed height and max-heigt to 400, but the picture does not keep that boundery
put picture01.jpg (800x600) in column1 and set height (laptop) to 400. Now the picture stays inside the 400px height but gets scaled down and so a blanc space to the right.
put picture02.jpg (300x700) in column2 and set height (laptop) to 400. Now the picture stays inside the 400px height but gets scaled down and so a blanc space to the bottom.
I tryed from a sample template the custom css code:
@media (min-width:768px) {
#addonWrapper {
width: 150%;
object-fit: cover;
}
}
But what i try to fiddle with it it doesn't change a bit.
I think it has to been done in the custom css field of the picture, but to be truth a have no idea what i am doing in the custom CSS field.
So is there a document(s) with explanations how to use custom CSS inside SP pagebuilder Pro and/or samples explained so i can read and get the grip behide how it works.
Best regards,
Ernst.