Current location - Trademark Inquiry Complete Network - Futures platform - How to use CSS to automatically divide a piece of content into two equal columns
How to use CSS to automatically divide a piece of content into two equal columns
You can use the column attribute in CSS3 -columns format: columns: column-width column-count? , where column-width is the width of each column and column-count is the number of columns. (Note: not supported by IE6/7/8/9) Example:

& lt! DOCTYPE? html & gt

& lthtml & gt

& lthead & gt

& ltstyle & gt?

/*? Divided into three columns, each column is 100px wide and 300px high? */

. Newspapers? {

Height:? 300px

Column:? 100px? 3;

-WebKit- column:? 100px? 3; ? /*? Safari? And then what? Chrome? */

-moz- column:? 100px? 3; ? /*? Firefox? */

}

& lt/style & gt;

& lt/head & gt;

& ltbody & gt

& ltdiv? class="newspaper " >

People's Daily Online, Beijing, February 24th? (reporter? Liu Yang) The National Development and Reform Commission recently issued a notice, and decided to increase the price of gasoline and diesel by 0.22 yuan and 0.25 yuan per liter (national average) from 0: 00 on February 25th, respectively, for 300 yuan and 290 yuan.

The adjustment range of domestic refined oil prices is determined according to the current formation mechanism of domestic refined oil prices and the changes of oil prices in the international market. Since the adjustment of domestic refined oil prices in June last year, the crude oil prices in the international market have been first suppressed and then increased. In early February, the futures prices of WTI and Brent crude oil rebounded to above $95 and 1 15 respectively. Although prices have declined in the past two days, the moving average prices of three kinds of crude oil in the international market linked to domestic oil prices have risen by more than 4% for 22 consecutive working days, reaching the boundary condition of domestic refined oil price adjustment.

The notice pointed out that after the price adjustment of refined oil, the state will continue to subsidize grain farmers, fisheries (including offshore fisheries), forestry, urban public transport and rural road passenger transport (including inter-island and rural waterway passenger transport) in accordance with the established subsidy mechanism. At the same time, in order to ensure the basic stability of market prices and prevent chain price increases, the prices of railway passenger transport, urban public transport and rural road passenger transport (including inter-island and rural waterway passenger transport) which are closely related to residents' lives will not be adjusted.

The circular requires PetroChina, Sinopec and CNOOC to organize the production and transportation of refined oil, maintain reasonable inventory, strengthen comprehensive coordination and emergency dispatch, and ensure the supply of refined oil. Price departments at all levels should strengthen market supervision and inspection, investigate and deal with illegal acts such as non-implementation of national price policies, hoarding, spreading rumors to confuse people, conspiring to raise prices, hitchhiking, etc., and maintain normal market order.

& lt/div & gt;

& lt/body & gt;

& lt/html & gt; If the width and height of the container are uncertain, you can also use JS to dynamically assign values to the container.