How to fix the css padding


Tags: html,css,forms,css-float

Problem :

I m struggling with this landing page since yesterday and I cant fix the form section.

Here's a link! And as you can see the form at the end of the page is a mess.

Find bellow the CSS snippet that I used. what i m doing wrong?

#form {
background: #F1F1F1;
font-size: 22px;
margin:  25px 20px 35px 0px;
padding: 35px 5px 35px 0px;
text-align: left;
width: 100%;}


Solution :

Ok i've changed the following attributes under #form and it worked:

#form {
 padding: 35px;
 width: auto;
 margin: 25px 0;
}

#form p {
  float: none; /*or remove float line */
}

Once you set a width and you add padding, it will be bigger than the setted widh. Did I explain myself? (my english sucks)

There'll be some padding under the submit button but that'll be easy for you to fix it.


    CSS Howto..

    How to increase the width size of JQuery UI Tooltip by its default value?

    How to wrap image around the long text?

    How do I make the background transparent?

    How to use text-overflow properly to format text?

    How to place a div below another div?

    How to reset jQuery toggled classes applied throughout the page? (AngularProject)

    How to implement css classes in form using laravel collective 5.2 . *

    What is cufon and canvas and how to overwrite them

    How to only have margin between child and not with parent in CSS?

    How do I center these three blocks horizontally?

    How to change style for before/after in Angular?

    how the rises up and down button is made?

    How to position background image in a button

    How do you create different CSS for dynamically generated elements?

    Show background image if container content is small (responsive)

    How to add a color overlay to a background image?

    CSS selectors: how to make element hovering change wrapper's style

    CSS: how to create a fixed top header with a fixed width

    How to define a good convention for css?

    How to use div to emulate border for