css--Layouts (layout)

Source: Internet
Author: User
clear:

The value of this property indicates that the edge of a floating object is not allowed.

Default value: None

Take value Describe
None Allowed to have floating objects on both sides
Left Floating objects on the left are not allowed
Right Floating objects on the right are not allowed
Both Floating objects are not allowed on either side

Float

The value of this property indicates how the object floats.

Default value: None

Take value Describe
None object does not float
Left The text flows to the right of the object
Right The text flows to the right of the object

Example:

Example Effect
    <p style= "Float:left" >        Tianjin    </p>    <p>        computer    </p>    <style type= "text /css ">        p        {        border:dashed 1px black;        width:150px;        height:70px;        Scrollbar-track-color:threeddarkshadow;        }    </style>

Clip

Retrieves or sets the visible area of an object. The parts outside the viewable area are transparent.

This property is available only if the value of the Position property is absolute.

Grammar:

Auto | Rect (Num,num,num,num)

Default value: Auto

Note: You must have the position property of the element as absolute. The calculated coordinates of the clip crop are calculated at the top left (0,0) point.

Take value Describe
None Object has no clipping.
RECT (num-num num num) Provides four offset values for the (0,0) coordinates of the upper-left corner of the object, based on the top-right-left order, where any of the values can be replaced with auto, that is, the edge is not clipped.

Example:

example effect
< Pre class= "Brush:php;toolbar:false" >
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.