Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Mobile: max image size, text and image alignment


19blue

Question

Site URL: https://www.mgadv.no/kontakt

Hi anyone,

1. Trying to control the size of the circles on mobile to match the edited image.
2. Also hoping to align the circles (image card) to the type (vertical: center,  horizontal: left.)
3. The image of the building is sometimes scaling down and not aligning to the other elements, how can i force it to stay aligned to page margins.

Left image is current, right image is desired layout.

any help much appreciated.
Thank you.

MGA_Screen.jpg

Link to comment

1 answer to this question

Recommended Posts

  • 0

Hello,

You can reduce the width of the blocks on mobile for the circle images and caption by using the code below.

section[data-section-id="601c878e78a1067166d81580"] {
@media only screen and (max-width: 640px) {
#block-yui_3_17_2_1_1612735498763_6718, #block-yui_3_17_2_1_1612735498763_8361 {
width: 50% !important;
}
}
}

Taking a look at your website regarding the alignment issues, it appears that you have some CSS limiting the size of the building image to 300px at a previous screen-size media query. By Removing:

section[data-section-id="601c878e78a1067166d81580"] {
@media only screen and (max-width: 769px) {
.sqs-block-image-figure.intrinsic {
max-width: 300px !important;
}
}
}

From your Custom CSS. The image will shift to the left and fill the block. The content should be aligned properly now.

Hope this helps!

-Dan

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...