Superior Web Solutions 905 532 9642
HOME CLIENTS SERVICES BLOG ABOUT US CONTACT US
Categories:
 Internet Marketing
 iPhone iPad Apps Development
 IT Humour
 IT Industry News
 Search Engines
 User Guides
 Web Development
Browse by tags
Search Blog:
RSS
Subscribe to our newsletter
Name*:
E-Mail*:
Recent Posts
Most Common Screen Resolutions in 2011
Make PHP CAPTCHA more secure
Updated Stats
What Googles New Search Security Measures Mean to You
GoDaddy Mod_Rewrite Problem
What is the default font size in Browsers?
January 29, 2009 - Creating A Multi-Column Layout Using CSS3

There are many intere­sting and exciting functions that are available for CSS 3 (Cascading Style Sheets).   There are numerous additions to CSS 3 Like adding images to borders, adding shadow effects on text, adding multiple backgrounds and more.  I will go through some of the new features in CSS 3, and try to uncover more though the blog as time goes by.

Multi-column layout

The CSS3 function for Multi-Column Layout allows the user to creating a design similar to a Newspaper layout. With designs of blogs and websites heading towards a magazine layout type of style I figured this is truly a helpful style to use.

Multi-column Layout Properties

column-count: 3;  this sets the number of columns for which the content will flow.
column-width: 1em; this property sets the width of each column.
column-rule: 1px solid black; this sets a border between the columns.

Code sample:

DIV {
  width: 200px;
  column-count: 2;
  column-width: 100px;
  column-gap: 10px
  column-rule: 1px solid black;
}

Multi-column-layout-css3

Now if you want to have something span across the columns that can be easily down with the column span property.

Code sample: 

column-span: all; This allows objects (text/images/etc) to display through multiple columns.

­Multi-column-layout-css3-column-span­

Associated tags:  Web, HTML, Web Design, Website, Design, Layout, CSS, Web Devepolment
Add Comment:
Name*:
E-Mail: Website:
Your message*:
»
© 2000 - 2012 Superior Web Solutions Web design    Web development    Online marketing