Summary of common CSS properties 2
******** CSS Common Properties ********************************************************************************************************************************************************************************************************************
float: The value of this attribute indicates whether and how the object floats. When this property is not equal to none and causes the object to float, the object will be regarded as a block object (block-level), that is, the display property is equal to block. That is, the display attribute of floating objects will be ignored. float will not be applied when absolute positioning and display is none. none: Set the object not to float left: Set the object to float on the left right: Set the object to float on the right -------------------------------------------------- ------ overflow: Composite attributes. Retrieves or sets how the object's content is managed when it exceeds its specified height and width. Default value: visible If only one is provided, its effect is equivalent to overflow-x + overflow-y. If two are provided, the first is equivalent to overflow-x, and the second is equivalent to overflow-y. For table, if the table-layout attribute is set to fixed, the td object supports the overflow attribute with a default value of hidden. If set to hidden, scroll or auto, content exceeding the td size will be cut. If set to visible, it will cause extra text to overflow to the cells on the right or left (depending on the direction property setting). visible: Do not cut the content. hidden: Crop the content that exceeds the object size, and the scroll bar will not appear.
scroll: Crop the content that exceeds the object size and display the excess content in the form of a scroll bar.
auto: Cut content and add scroll bars when needed. This is the default value for body objects and textarea.
no-display: When the content does not fit into the current content box, the entire box will be removed, similar to display:none. (CSS3)
no-content: When the content does not fit in the current content box, the entire content is hidden, similar to visibility:hidden. (CSS3)
---------------------------------- -------------------------------------------------- ------------
overflow-x: Retrieve or set how the content of the object is managed when it exceeds its specified width.
Default value: visible
visible: Do not cut the content.
hidden: Crop the content that exceeds the width of the object, and no scroll bar will appear.
scroll: Crop the content that exceeds the width of the object and display the excess content as a scroll bar.
auto: Cut content and add scroll bars when needed. This is the default value for body objects and textarea.
no-display: When the content does not fit into the current content box, the entire box will be removed, similar to display:none.
no-content: When the content does not fit into the current content box, the entire content is hidden, similar to visibility:hidden.
----------------------------------------- --------------------------------------------------
overflow-y: Retrieve or set how to manage content when the object's content exceeds its specified height.
Default value: visible
visible: Do not cut the content.
hidden: Crop the content that exceeds the height of the object, and the scroll bar will not appear.
scroll: Crop the content that exceeds the height of the object and display the excess content in the form of a scroll bar.
auto: Cut content and add scroll bars when needed. This is the default value for body objects and textarea.
no-display: When the content does not fit into the current content box, the entire box will be removed, similar to display:none.
no-content: When the content does not fit into the current content box, the entire content is hidden, similar to visibility:hidden.
----------------------------------------- --------------------------------------------------
rotation: Retrieve or set the rotation angle of the object.
Default value: 0
rotation rotation uses the value set by rotation-point as the reference origin for rotation offset.
The border, padding, content, and any background that is not fixed will rotate as the element rotates. All child elements with position values of static and relative will also rotate, while the rest will not.
rotation rotation does not affect parent elements and sibling elements, and their position and layout remain unchanged. So when the element is rotated, it may overlap other elements.
This attribute is similar to the rotation rotate() under the transform attribute and may be replaced or abandoned.
: Specify the angle. Can be negative
---------------------------------- ---------------
rotation-point: Retrieve or set the coordinate point referenced when the object is rotated.
rotation rotation uses the value set by rotation-point as the reference origin for rotation offset.
This attribute is similar to transform-origin and may be replaced or abandoned.
: Specify coordinate values in percentage.
: Specify the coordinate value with the length value.
left: Specify the abscissa coordinate of the origin as left
center: Specify the abscissa or ordinate of the origin as center
right: Specify the abscissa coordinate of the origin as right
top: Specify the ordinate of the origin as top
bottom: Specify the ordinate of the origin as bottom
---------- -------------------------------------------------- -------------
visibility: Set or retrieve whether to display the object. Unlike the display attribute, this attribute reserves the physical space occupied by the hidden object
If you want the object to be visible, its parent object must also be visible.
Default value: visible
visible: Set the object to be visible
hidden: Set the object to be hidden
collapse: Mainly used to hide table rows or columns. Hidden rows or columns can be used by other content. For other objects outside the table, its function is equivalent to hidden. IE6 and below do not support this parameter value
--------------------------------- -------------------------------------------------- --------------------------------------------------
table-cell: Specify the object as a table cell. Similar to the html tag
(CSS2)
(CSS2)
table-row: Specifies the object as a table row. Similar to the html tag
The above is the content of summary two of common CSS properties, more For related content, please pay attention to the PHP Chinese website (www.php.cn)!

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

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

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

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

Hot Topics

Using Bootstrap in Vue.js is divided into five steps: Install Bootstrap. Import Bootstrap in main.js. Use the Bootstrap component directly in the template. Optional: Custom style. Optional: Use plug-ins.

HTML defines the web structure, CSS is responsible for style and layout, and JavaScript gives dynamic interaction. The three perform their duties in web development and jointly build a colorful website.

WebdevelopmentreliesonHTML,CSS,andJavaScript:1)HTMLstructurescontent,2)CSSstylesit,and3)JavaScriptaddsinteractivity,formingthebasisofmodernwebexperiences.

To set up the Bootstrap framework, you need to follow these steps: 1. Reference the Bootstrap file via CDN; 2. Download and host the file on your own server; 3. Include the Bootstrap file in HTML; 4. Compile Sass/Less as needed; 5. Import a custom file (optional). Once setup is complete, you can use Bootstrap's grid systems, components, and styles to create responsive websites and applications.

There are two ways to create a Bootstrap split line: using the tag, which creates a horizontal split line. Use the CSS border property to create custom style split lines.

There are several ways to insert images in Bootstrap: insert images directly, using the HTML img tag. With the Bootstrap image component, you can provide responsive images and more styles. Set the image size, use the img-fluid class to make the image adaptable. Set the border, using the img-bordered class. Set the rounded corners and use the img-rounded class. Set the shadow, use the shadow class. Resize and position the image, using CSS style. Using the background image, use the background-image CSS property.

How to use the Bootstrap button? Introduce Bootstrap CSS to create button elements and add Bootstrap button class to add button text

To adjust the size of elements in Bootstrap, you can use the dimension class, which includes: adjusting width: .col-, .w-, .mw-adjust height: .h-, .min-h-, .max-h-
