Okay
  Public Ticket #2764015
Horizontal list, padding left
Closed

Comments

  •  1
    Sackeus started the conversation

    I need add either padding left or right to get this more functional in a mobile version. Is it possible? 

    Kind regards

    https://eguale.se https://www.eguale.se/om-eguale/var-resa/

  •  277
    Noah replied

    Hi Sackeus,

    Thank you for writing to us.

    Please share the url to the page and i will share the css.

    Regards,

  •  1
  •  1,591
    Judith replied

    Hi Sackeus,

    Please try this css:

    @media only screen and (max-width: 690px){
    .col.padding-2-percent > .vc_column-inner, .col.padding-3-percent > .vc_column-inner {
        width: 475px;
        left: -30px;
    } }

    Thanks.

  •  1
    Sackeus replied

    Hi Judith,

    It fixed it for that page but destroyed every other page when looking on the page with mobile :) I think there needs to be a more specific css selector

  •  1,591
    Judith replied

    Hi Sackeus,

    Please try this css:

    @media only screen and (max-width: 999px) and (min-width: 1px){
    .col.has-animation[data-animation="fade-in-from-bottom"], .wpb_column.has-animation[data-animation="fade-in-from-bottom"], .nectar-fancy-box.has-animation[data-animation="fade-in-from-bottom"] {
        width: 568px;
        left: -12px;
    } }

    Thanks.

  •  1
    Sackeus replied

    Hey again, it still breaks all padding for mobile on that page


  •  8,342
    Tahir replied

    Hey Again,

    Please remove the CSS earlier provided and add the below CSS only.

    Add this into the Custom CSS box in your Salient Theme Options panel (We write all Custom CSS in the Live Browser to ensure accuracy. If you cannot see any changes, make sure there is no red cross in the Custom CSS Box as any syntax error would cause all CSS under that line of code to not show up on the Frontend):

    .nectar-hor-list-item[data-columns="2"][data-column-layout="xsmall_first"] >div:nth-child(1){
      width: 25%;
    }
    .nectar-hor-list-item[data-columns="2"][data-column-layout="xsmall_first"] >div:nth-child(2){
      width: 74%;
    }

    Thanks


    ThemeNectar Support Team 

  •  1
    Sackeus replied

    Thanks, that worked!