How to eliminate gaps between input and input

Source: Internet
Author: User

How to eliminate gaps between input and input
When I made a website homepage, I encountered a puzzling problem, that is, how to eliminate gaps between adjacent inputs? Html code

<Div class = "search"> <input class = "search-text" type = "text"> <input class = "search-btn" type = "button" value =" search "> </div>

Css code

. Header-search. search. search-text {width: 360px; height: 35px ;}. header-search. search. search-btn {width: 69px; height: 35px; background: # ff8c00 ;}

Actual page Effect

The gap between the text box and the button box tries some solutions before they are solved:

Input {margin: 0; padding: 0; border: 0 ;}

This method does not work !!

Finally get the solution through the http://www.ft-love.com/fix-input-space-input.html article:To ensure that there is no gap between two inputs, the two inputs must be in the same row, and line breaks cannot be used..

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.