Home Web Front-end HTML Tutorial How to create input text box and img verification code

How to create input text box and img verification code

Feb 12, 2018 am 10:04 AM
input verify

In the process of making web pages, input and img are often placed on the same line to allow input on the left and right Verification code, but at the same time a problem arises is the horizontal alignment of the text box and the verification code Problem, let me share with you the specific solution. Friends who have similar problems can learn about it

In web page production, input and img are often placed on the same line, img tag It is always a head higher than the input, which is very ugly.

CCS method to achieve horizontal alignment of input and img
Just add vertical-align:middle to input and img at the same time. The code is as follows:

input,img {vertical-align:middle;}
Copy after login

I believe you have mastered the methods after reading these cases. For more exciting information, please pay attention to other related articles on the php Chinese website!

Related reading:

What are the operations of border removal and borderless iframe?

What are the marked texts in Html? Comment symbol

#How to identify escape characters of html through code

The above is the detailed content of How to create input text box and img verification code. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to verify signature in PDF How to verify signature in PDF Feb 18, 2024 pm 05:33 PM

How to verify signature in PDF

Detailed method to unblock using WeChat friend-assisted verification Detailed method to unblock using WeChat friend-assisted verification Mar 25, 2024 pm 01:26 PM

Detailed method to unblock using WeChat friend-assisted verification

How to validate IFSC code using regular expressions? How to validate IFSC code using regular expressions? Aug 26, 2023 pm 10:17 PM

How to validate IFSC code using regular expressions?

New features in PHP 8: Added verification and signing New features in PHP 8: Added verification and signing Mar 27, 2024 am 08:21 AM

New features in PHP 8: Added verification and signing

How to verify whether input is uppercase letters in golang How to verify whether input is uppercase letters in golang Jun 24, 2023 am 09:06 AM

How to verify whether input is uppercase letters in golang

How to verify whether the input is full-width characters in golang How to verify whether the input is full-width characters in golang Jun 25, 2023 pm 02:03 PM

How to verify whether the input is full-width characters in golang

PHP regular expression method to verify the beginning and end of a specific string PHP regular expression method to verify the beginning and end of a specific string Jun 24, 2023 am 11:20 AM

PHP regular expression method to verify the beginning and end of a specific string

How to solve the problem of steam login stuck in mobile token verification? How to solve the problem of steam login stuck in mobile token verification? Mar 14, 2024 pm 07:35 PM

How to solve the problem of steam login stuck in mobile token verification?

See all articles