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

  • GuyPalinckxLS
    Asked on October 26, 2016 at 5: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

     

  • seth
    Replied on October 26, 2016 at 9: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:

    How to add space between left side of the page adn left side of my form? Image 1 Screenshot 20

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

    Good Luck!