What is the property that determines the position of a control on a form?
The properties that determine the position of a control on the form are Top and Left; the top property specifies the top edge of the element, which defines the distance between the top margin boundary of a positioned element and the top boundary of its containing block. Offset; the left attribute specifies the left edge of the element, which defines the offset between the left margin edge of the positioned element and the left edge of its containing block.
The operating environment of this article: Windows 7 system, Dell G3 computer.
What is the property that determines the position of a control on a form?
The properties that determine the position of a control on the form are Top and Left.
Determining the position of a control on the form is determined by the two properties Top and Left.
The top attribute specifies the top edge of the element. This attribute defines the offset between the top margin boundary of a positioned element and the top boundary of its containing block.
The left attribute specifies the left edge of the element. This attribute defines the offset between the left margin edge of the positioned element and the left edge of its containing block.
Related introduction:
CSS properties can also be dynamically changed through a piece of JavaScript.
Script syntax:
object.style.top="100px"
Example:
This example sets the top edge of the paragraph to 20 pixels below the top edge of the window:
p{position:absolute;top:20px;}
This example sets the top edge of the paragraph to 20 pixels above the top edge of the window:
p{position:absolute;top:-20px;}
Possible values
auto: Default. Calculate the top position through the browser.
%: Sets the percentage position of the top of the element to the top edge of the nearest parent element with positioning settings.
length: Use units such as px, cm, etc. to set the position from the top of the element to the top of the nearest top edge with positioning settings. Negative values can be used.
Recommended learning: css video tutorial
The above is the detailed content of What is the property that determines the position of a control on a form?. For more information, please follow other related articles on the PHP Chinese website!

1. Ao3 official website quark entrance☜☜☜☜☜☜Click to save. 2. Ao3 Quark entrance official website☜☜☜☜☜☜☜Click to save. 【ao3】1. AO3 (Archive of Our Own) is a huge online archive website created by fans. 2. It mainly contains fan works, covering a wide variety of media, from books and movies to TV series and games, almost everything is included. 3. AO3 has rich content and diverse types, which can meet the needs of different readers.

1. Ao3 mirror URL Quark☜☜☜☜☜☜☜☜ Click to enter. 2. Ao3 mirror address quark entrance ☜☜☜☜☜☜☜ Click to enter. 3. AO3 (Archives Our Own) is a non-profit fan and fan-fiction archive website launched on October 29, 2008. 4. AO3 is a website founded by fans and run by fans, dedicated to protecting the works created by fans and providing a censorship-free environment for fan novel writers.

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

Notepad++7.3.1
Easy-to-use and free code editor

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

SublimeText3 Mac version
God-level code editing software (SublimeText3)

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment
