Home > Web Front-end > HTML Tutorial > How to accurately place the input box in the image of the login page? _html/css_WEB-ITnose

How to accurately place the input box in the image of the login page? _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:51:24
Original
1998 people have browsed it

As shown in the login picture below, the username, password, confirm button and other positions are reserved in the picture. How can I put my account name and password input box accurately in the position of the picture? If the image is centered in various resolutions, the left position of the username and password input boxes should be different. How can it be compatible with various resolutions? Please give me some advice!


Reply to the discussion (solution)

First set the css of the DIV of the large image to position:relative, and then use position:absolute positions a DIV, and finally writes the form in this DIV.

It has nothing to do with the resolution!
The background image is written in the body, background:url(xx.jpg) no-repeat center top
In your content container, write the width directly, and then margin:0 auto; Wouldn’t it always be in the middle?

Thank you, I will try it first. If the test is successful, I will post it!

The most important thing is to find a good picture

You can use the drawing tools farmework and photoshop to provide page generation functions, both of which can achieve precise positioning

This problem has been encountered before Been there

source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template