How to align check boxes (checkbox) and single-digit (radio) horizontally and vertically with the text

Source: Internet
Author: User

How to align check boxes (checkbox) and single-digit (radio) horizontally and vertically with the text

In today's project, a checkbox cannot be aligned with the text in the same line. A problem is found after the check. The default height and width of the checkbox and radio labels are both 13px, the font size used in the project is 12 PX. If the font size is adjusted to 14px, this problem does not exist. Therefore, the author sorted out several solutions based on the information found on the Internet.

First, let's take a look at the specific problem and the effect after the solution:

The specific solution code is as follows:

<Html> 

Compatible browsers: chrome, firefox, ie8, ie7, ie6, safari

Note: 2nd, 5th, and 6th methods are recommended for individuals. Because css hack is not used in either of the three methods.

Articles you may be interested in
  • Jquery checks whether checkbox is selected
  • Js restrictions: Only English letters and numbers can be entered. Chinese characters and other special characters cannot be entered.
  • Javascript checks whether the check box is selected
  • Jquery obtains the checkbox selected values (one group and one)
  • Url transfer of Chinese characters, solutions for special dangerous characters (for reference only) urldecode, base64_encode
  • Jquery checks whether the check box is selected
  • DIV layer that slides with the scroll bar (fixed to the DIV layer that does not disappear with browsing on the top of the page)
  • Reasons why PHP adds a backslash before the quotation mark and how PHP removes the backslash, there are three ways to disable the php magic quotation mark

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.