Impact of css border on raid buttons

Source: Internet
Author: User

 

First, let's take a look at the difference between the two single-choice buttons in the figure above. Isn't the B style really ugly?
Let's take a look at the source code.

Code in Area:

<Input type = "radio" name = "radiobutton" value = "radiobutton" id = "radiobutton"/> <label for = "radiobutton"> normal style </label>
Code in Section B:

<Input type = "radio" name = "radiobutton2" value = "radiobutton2" id = "radiobutton2"> <label for = "radiobutton2"> change style </label>
We can see that no problem is found in the source code. The biggest suspect object isCSSBecause CSS is the easiest way to changeWebpageThe "appearance" of each element in, so we started to investigate from CSS.


Display margin, padding, lineline-height, and so on, and finally find the border attribute. Sure enough, it is a piece of inconspicuous border: 0 code that makes it thin and small.
As long as the attribute defined as border: 0 for a single sequence is removed, it is changed back to the default style.
The details are really important when creating pages.

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.