Viewing 15 posts - 1 through 15 (of 23 total)
  • Author
    Posts
  • Pankaj Sharma Moderator
    #1024488

    Hi
    Add below code in /css/custom.css file

    @media(max-width: 468px){
    .com_virtuemart div[class*="-view"] .row div.product {
        width: 46%!important;
        float: left;
        height: auto;
    }
    .com_virtuemart div[class*="-view"] .row {display: -webkit-box!important;}
    }
    

    Please note it will make them in two columns and in mobile the space is not enough to display two items.

    Regards

    sky Friend
    #1024502

    in order to have more space, need to make each product box width smaller. maybe showing 4 columns in desktop and 2 coloumns in mobile. how to do that?

    Pankaj Sharma Moderator
    #1024504

    You can decrease the width value in above if you want to reduce the width.

    Regards

    sky Friend
    #1024507

    I changed to 30%, but there is no change on the mobile view. still not enough space.

    @media(max-width: 468px){ .com_virtuemart div[class*="-view"] .row div.product { width: 30%!important; float: left; height: auto; }

    Pankaj Sharma Moderator
    #1024511

    Yes
    Thats why i already said in last threads , in mobile screen space is very small, and product does not fit well. I suggest you to use product full width as it was before. Regards

    sky Friend
    #1024655

    I am sorry, but we must have 2 columns for that.

    Pankaj Sharma Moderator
    #1024661

    Hi
    You can use my suggestion given Here to get two columns.
    There is no other way as the mobile view is small and you can’t fit two items without compromise in the style.

    sky Friend
    #1024667
    This reply has been marked as private.
    Pankaj Sharma Moderator
    #1024668

    http://cowcowkidsmo.com/%E5%AA%BD%E5%92%AA%E8%AD%B7%E7%90%86%E7%94%A8%E5%93%81%5B/quote]

    Hi
    For height add below code in custom.css file and set a min-height as per needs

    
    @media(max-width:468px){
    .com_virtuemart div[class*="-view"] .row .vm-col .spacer {
    min-height:500px;}}
    sky Friend
    #1024678
    This reply has been marked as private.
    Pankaj Sharma Moderator
    #1024845

    Hi
    If you will show a product in less area there can be a style issue, that will come as i already mentioned above. I am afraid that this is something that will not change. Its simply if you will fit 50px in 10px are it does not fit well.

    sky Friend
    #1025484
    This reply has been marked as private.
    Pankaj Sharma Moderator
    #1025501

    Hi
    The products use 3 columns layout and follow the same for the mobile.
    You can add a min-width for product and use the same code.

    @media(max-width: 468px){
    .com_virtuemart div[class*="-view"] .row div.product {
        width: 30%!important;
        float: left;
        height: auto;
        min-width: 50%;
    }
    
    .com_virtuemart div[class*="-view"] .row {display: -webkit-box!important;overflow: visible;max-width: 100%;}
    }
    

    Either use 1 column in mobile o r 3 column.
    this is all i can suggest in the available options.

    Hope its clear now.

    sky Friend
    #1025502
    This reply has been marked as private.
    Pankaj Sharma Moderator
    #1025506

    Hi
    Please read my suggestion given Here carefully to understand how its working.

    Regards

Viewing 15 posts - 1 through 15 (of 23 total)

This topic contains 23 replies, has 2 voices, and was last updated by  Pankaj Sharma 7 years, 7 months ago.

The topic ‘How to show product page with 2 columns in mobile?’ is closed to new replies.