Wednesday, August 3, 2011

CSS3 Multicolumns

CSS3 allows for multiple column without explicitly having to code for it.Just by using the tags directly the multiple column division could be formed easily.

CSS3 provides 3 attributes for multiple column property as
column-count,column-gap and column-rule.

column-count
Specifies the number of columns an element should be divided into

column-fill
Specifies how to fill columns

column-gap
Specifies the gap between the columns

column-rule
A shorthand property for setting all the column-rule-* properties

column-rule-color
Specifies the color of the rule between columns

column-rule-style
Specifies the style of the rule between columns

column-rule-width
Specifies the width of the rule between columns

column-span
Specifies how many columns an element should span across

column-width
Specifies the width of the columns

columns
A shorthand property for setting column-width and column-count

Example



Which will result as follows



Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius.

No comments:

Post a Comment