still the content margin problem

  • Posted in : cvCard WP
  • slu41
    Participant

    hi I fixed the margin of content by myself using this code:

    .content{padding-left:8em;padding-right:8em;padding-top:2.5em;}

    it works, but only on the laptop, the website look bad on mobile, because the paddings are fixed other than responsive, so the content shrink into very small on mobile.

    how to fix the padding and make it responsive also?

    ahmetsali
    Keymaster

    Hi, target only desktops by wrapping your css code with a media query like this;

    @media screen and (min-width: 992px) {
       .content{padding-left:8em;padding-right:8em;padding-top:2.5em;}
    } 
    
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register