Friday, September 24, 2010

CSS Syntax Guide (4) text fill, borders, boundaries and location of the property (2)


CSS Syntax Guide

Text fill, borders, boundaries and location of the property (2)

3, Box border property

1, margin-bottom
margin-left
margin-right
margin-top

Features: The four elements and their attributes used to set the distance between adjacent elements, you can use the length or width of the text relative to the percentage of parent to define, can be processed automatically.
Value:
Length - set to the corresponding elements between the edge and frame edge relative or absolute distance, the effective unit: mm, cm, in, px, pt, pica, ex, em ...
Percentage - The percentage of the width of the parent element to set the border size.
auto - automatically, this setting the default browser check border.
Example

2, margin

Function: shorthand property for setting all the boundary elements. This is used to describe the contents of the element edge to the frame edge distance. This area is always transparent, and you can see the following page background.
Value:
Length - with the former
Percentage - The percentage of the width of the parent element to set the border size.
auto - automatically, this setting the default browser check border.
Example

4, box location attribute

1, height

Function: Set the element height, the browser height adjustment in accordance with the graphics.
Value:
Length - mm, cm, px, pt, .....
auto - automatically.

2, width

Function: Set the element width, the width of the browser to adjust according to this graph.
Value:
Length - mm, cm, in, px, pt, ......
Percentage - to set the pattern and the percentage of the width of the parent element.
auto - automatic adjustment

3, float

Function: used in the general arrangement of elements in stream element placed outside the rules.
Value:
none - No change.
left - the other elements of content into the right floating elements.
right - the other elements of content into a floating element on the left.

4, clear

Function: used to allow or prohibit the placement next to other elements of the specified element (usually a line graph).
Value:
none - no limit.
left - the element on the left of the floating elements of the following
right - the floating elements of the following elements on the right
both - not allowed to be placed on both sides of the floating element element






Recommended links:



Easy Newsgroup Clients



Programming books from the ENTER_FRAME ACTIONSCRIPT3 Speaking



Beijing Matsushita employee dissatisfaction compensation for loss of containment of the company



Dell Go From Here



the basics of oracle architecture Entry level



Allocated memory in an object structure



MKV to IPOD



My favorite Telnet Servers



VOB To MP4



PB8 How to get in the character string containing the length Of the problem - Davis Summary



ARTICLES about Desktop



Suspected Of Extortion Donews Producer Liu Ren Denies Allegations



Six COLLEGE students recruited reef workplace



ASF Converter



Qwest MCI Crush On The Bride Price Increase To 9 Billion U.S. Dollars



Evolution Of A Mature Framework And Guidelines - CMM Architecture



No comments:

Post a Comment