Tagged: x
-
AuthorPosts
-
November 20, 2016 at 4:58 am #1264185
Studio172ParticipantHello, I have a question; for a responsive website I would like to set only one column to a minimum width, how should I do this?
greerings, StefanNovember 20, 2016 at 5:10 am #1264191
ChristopherModeratorHi there,
Add a custom class like
my-classto your column.Please add following code in Customize -> Custom -> Global CSS :
@media (max-width:767px){ .my-class{ min-width:200px; } }Hope it helps.
November 20, 2016 at 5:54 am #1264207
Studio172ParticipantThanks i will try!
November 20, 2016 at 6:01 am #1264219
ThaiModeratorLet us know how it goes!
November 20, 2016 at 9:02 am #1264309
Studio172ParticipantHello thanks, it works, but… now the column next to it gets pushed under the (min-width column)…
you see this here:
the second google map at the bottom of http://frank.pilihan.nl/how can I make sure that doesn’t happen?
November 20, 2016 at 1:22 pm #1264481
RadModeratorHi there,
You should apply a width to your map’s column too. It’s like addition and subtraction, if you add more somewhere else, then you’ll have to reduce other columns width too. That’s to maintain the total width equal to its container width/
Thanks!
November 20, 2016 at 1:42 pm #1264508
Studio172ParticipantYes, but since the page is responsive… how do I explain that this column should use the leftover-space (width of the page minus width of the first column)?
Maybe this is a very stupid question… but my knowledge of css is sadly not very good…sorry…November 20, 2016 at 8:14 pm #1264794
RadModeratorHi there,
Try this,
@media (max-width:767px){ .my-class{ min-width:200px; } .my-class2{ min-width: calc(96% - 200px) } }Then use my-class2 to your map column.
Hope this helps.
November 21, 2016 at 5:44 am #1265228
Studio172ParticipantAlso does not seem to work…
November 21, 2016 at 5:53 am #1265255
ChristopherModeratorHi there,
Please add right and left padding to last row.
Hope it helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1264185 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
