Langsung ke konten utama

Default image divi menjadi hover dan ukuran sesuai kemauan kita

Default image divi menjadi hover dan ukuran sesuai kemauan kita

https://www.peeayecreative.com/how-to-change-crop-divi-image-aspect-ratios-in-the-builder/ 



=============


/*image aspect ratio landscape 16:9*/


.pa-image-16-5 .et_pb_image_wrap {

padding-top: 25.25%;

display: block;

}


.pa-image-16-5 .et_pb_image_wrap img {

position: absolute;

height: 100%;

width: 100%;

top: 0;

left: 0;

right: 0;

bottom: 0;

object-fit: cover;

}



/*image aspect ratio square 1:1*/


.pa-image-1-1 .et_pb_image_wrap {

padding-top: 100%;

display: block;

}


.pa-image-1-1 .et_pb_image_wrap img {

position: absolute;

height: 100%;

width: 100%;

top: 0;

left: 0;

right: 0;

bottom: 0;

object-fit: cover;

}


/*image aspect ratio landscape 16:9*/


.pa-image-16-9 .et_pb_image_wrap {

padding-top: 56.25%;

display: block;

}


.pa-image-16-9 .et_pb_image_wrap img {

position: absolute;

height: 100%;

width: 100%;

top: 0;

left: 0;

right: 0;

bottom: 0;

object-fit: cover;

}


/*image aspect ratio landscape 4:3*/


.pa-image-4-3 .et_pb_image_wrap {

padding-top: 75%;

display: block;

}


.pa-image-4-3 .et_pb_image_wrap img {

position: absolute;

height: 100%;

width: 100%;

top: 0;

left: 0;

right: 0;

bottom: 0;

object-fit: cover;

}


/*image aspect ratio landscape 3:2*/


.pa-image-3-2 .et_pb_image_wrap {

padding-top: 66.66%;

display: block;

}


.pa-image-3-2 .et_pb_image_wrap img {

position: absolute;

height: 100%;

width: 100%;

top: 0;

left: 0;

right: 0;

bottom: 0;

object-fit: cover;

}


/*image aspect ratio landscape 9:16*/


.pa-image-9-16 .et_pb_image_wrap {

padding-top: 177.77%;

display: block;

}


.pa-image-9-16 .et_pb_image_wrap img {

position: absolute;

height: 100%;

width: 100%;

top: 0;

left: 0;

right: 0;

bottom: 0;

object-fit: cover;

}


/*image aspect ratio landscape 3:4*/


.pa-image-3-4 .et_pb_image_wrap {

padding-top: 133.33%;

display: block;

}


.pa-image-3-4 .et_pb_image_wrap img {

position: absolute;

height: 100%;

width: 100%;

top: 0;

left: 0;

right: 0;

bottom: 0;

object-fit: cover;

}


/*image aspect ratio landscape 2:3*/


.pa-image-2-3 .et_pb_image_wrap {

padding-top: 150%;

display: block;

}


.pa-image-2-3 .et_pb_image_wrap img {

position: absolute;

height: 100%;

width: 100%;

top: 0;

left: 0;

right: 0;

bottom: 0;

object-fit: cover;

}

==========

Komentar

Postingan populer dari blog ini

Quick Tip: Remove Space between Footer and Post in Divi

 Divi has a weird quirk where any blog post that is published has a space between the post and the footer. Luckily there is a quick fix. Click on the gear icon in the Divi Visual Builder. In the CSS section of the post editor, add the following code snippet and save. .single .et_pb_post {  margin-bottom: 0;  padding-bottom: 0; } #left-area {  padding-bottom: 0 !important; } If it is saved correctly, you should no longer see a space between the post and footer.

Membuat background colom atau section yang saat di hover zoom

https://www.youtube.com/watch?v=EMud8mbVZ50 Pada colom yang ada backgroundnya, masuk ke ADVANCE - CUSTOM CSS - MAIN ELEMENT: background-size:100%; transition: all 0.5s ease; dan di HOVER: background-size:130%; Start write the next paragraph here