Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1264185
    Studio172
    Participant

    Hello, 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, Stefan

    #1264191
    Christopher
    Moderator

    Hi there,

    Add a custom class like my-class to your column.

    Please add following code in Customize -> Custom -> Global CSS :

    @media (max-width:767px){
    
    .my-class{
    min-width:200px;
    }
    }

    Hope it helps.

    #1264207
    Studio172
    Participant

    Thanks i will try!

    #1264219
    Thai
    Moderator

    Let us know how it goes!

    #1264309
    Studio172
    Participant

    Hello 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?

    #1264481
    Rad
    Moderator

    Hi 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!

    #1264508
    Studio172
    Participant

    Yes, 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…

    #1264794
    Rad
    Moderator

    Hi 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.

    #1265228
    Studio172
    Participant

    Also does not seem to work…

    #1265255
    Christopher
    Moderator

    Hi there,

    Please add right and left padding to last row.

    Hope it helps.

  • <script> jQuery(function($){ $("#no-reply-1264185 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>