Home › Forums › Archived Forums › Designer Blocks for Gutenberg › Designer Blocks for Gutenberg – image columns problem
- This topic has 7 replies, 2 voices, and was last updated 7 years, 11 months ago by
scrambler.
-
AuthorPosts
-
October 17, 2018 at 11:33 UTC - Views: 76 #56804
Nele
ParticipantHomepage: https://wycliff.de/relaunch2018/dna/
Admin: kr45mn
Password: 67jh#t78(u)I didn`t get an answer for this so far (since September 6, 2018), so here is the question again:
I chose for the image-column-block (with the numbers and circles) a width of 70%, but doing so, it isn’t responsive any longer.
How can I get it responsive? For a smaller device it would be great to have it split in 2 columns and for smarthphone in 1 column.October 17, 2018 at 16:59 UTC - Views: 75 #56809scrambler
ModeratorI am pretty sure we went through that before.
Right now there is a rule that forces the single columns display on devices under 670px. Given this is not a standard value, I suspect that is a custom CSS rule we added, but I cant be sure as for some reason your site does not let me see the CSS file.
So when I shrink the browser down, under 670px, it switches to a single column with the image on top and the text below as intended. Let me know if this is not what you see.
Some phone have high resolution screen and may not display that layout because the threshold is too low.
If that is the issue, check in the custom CSS rule box, and see if you see a rule that starts with
@media all and (max-width:670px) {
and set width to 96%.
If you see that rule, you can increase the value to 768px and see if that fixes your issue.
October 17, 2018 at 17:40 UTC - Views: 68 #56810Nele
Participant@scrambler, this is how it looks like on smartphone:

In the custom CSS rule box I do not have any rule that affects the image column.
(You gave me a rule that override the base 25% wide base rule in order to get the column equal big. But I removed it, because it didn`t work.)This was the text you wrote to this issue the last time for weaver:
“There seem to be some problem with the flex CSS of the multiple columns.
If you look at the section of her page that has 4 columns with a circled number at the top and text below, as you reduce the browser width, we get unequal width columns and they extend outside the container.
I see two problems:
The width is only set with %, but the flex-grow and flex-shrink are not set, which allows the columns to expand or contract. If you want to set a fixed width value, you need to set the grow and shrink to zero, using a rule like
flex: 0 0 48%
the other problem is that the flex-wrap is set to no warp, so when the columns switch from one row of 25% wide, to 48% wide, they do not wrap on two rows.”
October 17, 2018 at 21:16 UTC - Views: 44 #56818scrambler
ModeratorSorry, I was looking at the wrong widget.
Can you list all the options that you set for that widget
October 18, 2018 at 09:54 UTC - Views: 41 #56836Nele
Participant
And nothing else in the Custom CSS Rules
October 18, 2018 at 17:34 UTC - Views: 36 #56840scrambler
ModeratorAdd the rule below and see if that fixes it
.wp-block-wvrblocks-imgcols.align_center {flex-wrap:wrap;}
October 18, 2018 at 18:10 UTC - Views: 37 #56844Nele
ParticipantYes, it fixes it. Is it also possible to get one column for smartphone?
October 18, 2018 at 21:17 UTC - Views: 25 #56852scrambler
Moderator@weaver, you may want to have a look at your Gutenberg block, as It looks like the flexwrap is a missing CSS for its styling.
To make a single column on phone, Add the rule below
@media all and (max-width:581px){
.wvrblocks-imgcols__has-4 .wvrblocks-imgcols__column-one, .wvrblocks-imgcols__has-4 .wvrblocks-imgcols__column-two, .wvrblocks-imgcols__has-4 .wvrblocks-imgcols__column-three, .wvrblocks-imgcols__has-4 .wvrblocks-imgcols__column-four {width:100%;}
} -
AuthorPosts
- The forum ‘ Designer Blocks for Gutenberg’ is closed to new topics and replies.

