Absolute css positioning

Source: Internet
Author: User

Positioning (left and top)


Css positioning attribute will be the key for the net worms to open the door to happiness:

H4 {position: absolute; left: 100px; top: 43px}

This CSS rule allows the browser to precisely set the starting position of <H4> to 100 pixels on the left of the browser and 43 pixels on the top of the browser.

Note that the only setting here is the left and top, that is, the text will load the browser window from left to right, from top to bottom.

The properties on the left and top are intuitive. The left is the distance between the elements on the left and the top of the browser window.

When setting these distances, you can use the various length units or proportions you have learned. When the ratio value is used, the ratio value refers to the size relative to the parent element.

What can you find? Anything! Paragraphs, words, GIF and JPEG images, and QUICKTIME movies


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.