CSS3 Multi-column display

Source: Internet
Author: User

Columen-width: Defines the width of a single column display. The initial value is auto, which applies to non-replaceable block-level elements, inline block elements, and cells, with the exception of table elements.

Currently WebKit engine supports-webkit-column-width,mozilla Gecko engine support-moz-column-width;

Function: If the page content can be displayed in a single column in a single column display, if the width of the page is wide enough, a multi-column display.

Column-count:

Defines the number of columns displayed in a single column. The initial value is auto, which applies to non-replaceable block-level elements, inline block elements, and cells, with the exception of table elements.

Currently WebKit engine supports-webkit-column-count,mozilla Gecko engine support-moz-column-count;

Function: Regardless of the width of the browser page, always according to the number of columns defined by the display.

Column-gap:

defines the spacing of columns. The initial value is normal (1em), for non-replaceable block-level elements, inline block elements, and cells, except for table elements.

Currently WebKit engine supports-webkit-column-gap,mozilla Gecko engine support-moz-column-gap;

Role: Defines the distance between columns.

Column-rule:<length>|<style>|<color>|<transparent> (Border transparency)

defines the style of the column border. Applies to non-replaceable block-level elements, inline block elements and cells, except table elements.

Currently WebKit engine supports-webkit-column-rule,mozilla Gecko engine support-moz-column-rule;

Action: Defines the style of the column border.

Example: Dashed gray border

-webkit-column-rule:dashed 1px Gray;
-moz-column-rule:dashed 1px Gray;
column-rule:dashed 1px Gray;

Column-span: Defines a cross-column display initial value of 1 for static, fly-floating elements. The all value spans all columns and is positioned on the column Z axis.

Currently WebKit engine supports-webkit-column-span,mozilla Gecko engine support-moz-column-span;

Column-fill: Define column High initial value balance: Applies to multi-column layout elements, and the height of each column is unified according to the height of the row with the most content.

Auto: The height of each column changes automatically as its contents change.

Currently WebKit engine supports-webkit-column-fill,mozilla Gecko engine support-moz-column-fill;

<! DOCTYPE html>


<meta charset= "UTF-8" >
<TITLE>CSS3 multi-column display </title>
<style type= "text/css" media= "screen" >
body{
/* Defines a column width of 300 pixels, the maximum width of each column in the page is 300px*/
-webkit-column-width:300px;
-moz-column-width:300px;
column-width:300px;
}

H1{color: #333333;p adding:5px 8px;font-size:20px;text-align:center;padding:12px;

/* Cross-column display */
-webkit-column-span:all;
-moz-column-span:all;
Column-span:all;
}
H2{font-size:16px;text-align:center;
/* Cross-column display */
-webkit-column-span:all;
-moz-column-span:all;
Column-span:all;
}


p{color: #333333; font-size:14px;line-height:180%;text-indent:2em;}
</style>

<body>


<p>
in the new economy, how can one be able to build a pipeline of continuing hereditary income? You can be a neighbor of the million-rich
Weng!
Dear Readers:
100 years ago, it was almost impossible for ordinary people to become millionaires. Look at this survey of living conditions in 20th century .
statistics: In 1900, the average wage in the United States was 0 per hour. $22, average worker's annual income at $200
between the US dollar, at the time of the poverty line. At that time, only 6% of the United States graduated from high school, with an average life expectancy of 47 years. Only 14% of the homes
The court has a bathtub. There are only 8,000 cars in the United States, and the paved roads are only 144 miles. Until the First World War, the United States
80% of income is spent on basic needs such as food, housing and clothing.
Overall, 100 years ago there were basically only two economic classes: the wealthy and the other. Only one of the 10 families
is a wealthy class. In 1900, he said, 90% of the people in the United States were classified as poor.
The middle class still lives on wages
the lens has shifted from a century ago to 2001 years.
The average household now earns $47000. The number of cars exceeds the number of people. Most families have at least
two TV sets. Life is 75 years old. Now, the average person has more disposable income than before, has more free time, has
more career options.
However, most of the 72 million families in the United States still live on wages.
Apart from home, cars and furniture, the average household asset is zero. Zero! As incomes increase, household liabilities are increasing and workers
time is also increasing.
Where's the mistake?
have you added a wrong system?
The problem is that many people have joined a wrong plan. They entered a wrong system, lacked how to build and
the basic knowledge of accumulating wealth.
today I'm going to make a bold statement that might shock you. But this is absolutely true, and Hao-unambiguous. You ready?
The simple, non-cosmetic fact is that today, being a millionaire is a choice, not an opportunity.
is true – today, anyone with a middle-class income can become a millionaire. No way? No. In fact,
it's simple.
If you want to be a millionaire today, all you need to do is follow these three steps:
1. Understand how wealth is built and accumulated;
2. Copying a system of established wealth that has been recognized;
3. Sustained unremitting efforts over a period of time;
just so much. This is what ordinary people need to do to accumulate millions of assets: recognize, replicate, persist.
</p>
</body>

CSS3 Multi-column display

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.