Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

How to remove space between submit and input field

How can I remove this white space between two fields?

alt text

.footersection form input[type=email] {
    display: inline;
    height: 35px;
    border: 1px solid #ccc;
    margin: 0;
    font-size: 12px;
}

.footersection form input[type=submit] {
    display: inline;
    height: 35px;
    background-color: #63beb5;
    border: none;
    margin: 0;
    text-transform: uppercase;
    color: #fff;
    font-size: 12px;
    padding-left: 10px;
    padding-right: 10px;
}

1 Answer

what about trying a negative margin on the input element.

.footersection form input[type=email] {
    display: inline;
    height: 35px;
    border: 1px solid #ccc;
    margin: 0;
    margin-right:-2px;
    font-size: 12px;
}

Thank you!!!