How to add space between left side of the page adn left side of my form?

  • Profile Image
    GuyPalinckxLS
    Asked on October 26, 2016 at 05:30 AM

    Hi

    I'm using the follwing CSS code for the location of my form

     

    .form-all {

        max-width : 900px !important;

        width : 600px !important;

    }

    .form-all {

        float : left;

    }

     

    In this case the form is on the left side, but stick to the side, what is the css code to keep it on the left side but with a little space between the form and the side?

    Thanks

     

  • Profile Image
    seth
    Answered on October 26, 2016 at 09:00 AM

    Hello,

    The CSS property you are looking for is "margin". You can insert margin property inside your form-all selector. Also you can combine your both CSS code groups like this since they belong to same class (form-all):

    .form-all {

        max-width : 900px !important;

        width : 600px !important;

        float : left;

        margin: 100px;

    }

    Here how it looks like with 100 px margin:

    I hope this helps. If you have further issues please contact us again.

    Good Luck!