Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #878563

    I want to set flex columns in mobile with half size ( 2 columns in a row), I use the following css with assigned class:
    @media only screen (){
    .flex_column.two-column-in-mobile{
    width:49%!important;
    }
    )

    there is a problem, when it comes up with 5 columns or 3 columns, every 5 or 3 columns left a blank in a row, how could I fix it?

    #878762

    Hey night0097,

    You don’t have any arguments in your media query, try something like this instead:

    @media only screen and (max-width: 767px)

    Best regards,
    Rikard

    #879522

    Thanks Rikard, I did. my question is after resize the columns ,there comes up a blank area
    for example, if the page has 10 columns each 5 columns in a row,

    [ 1/5 Column][ 1/5 Column][ 1/5 Column][ 1/5 Column][ 1/5 Column]
    [ 1/5 Column][ 1/5 Column][ 1/5 Column][ 1/5 Column][ 1/5 Column]

    after the change, it will be

    [ 1/2 Column][ 1/2 Column]
    [ 1/2 Column][ 1/2 Column]
    [ 1/2 Column]
    [ 1/2 Column][ 1/2 Column]
    [ 1/2 Column][ 1/2 Column]
    [ 1/2 Column]

    How could I fix it?

    #880779

    Hi night0097,

    Could you please give us a link to your website, we need more context to be able to help you.

    Best regards,
    Victoria

    #881377

    Hi , this is my website page,
    check the breakpoint ,thanks

    • This reply was modified 7 years, 5 months ago by night0097.
    #881620

    Hi night0097,


    Could not check. Is the website down?</del>

    Had to use vpn.

    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
    @media only screen and (max-width: 767px) {
    body div .first {
    clear: none;
    }
    }
    

    If you need further assistance please let us know.
    Best regards,
    Victoria

    • This reply was modified 7 years, 5 months ago by Victoria.
    #886525

    It works well, thanks for your help!

    #886640

    Hi night0097,

    Glad we could help :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.