HOME CLIENTS SERVICES BLOG ABOUT US CONTACT US
 
 
 
 
 
Categories:
 Internet Marketing
 IT Humour
 IT Industry News
 Search Engines
 User Guides
 Web Development
RSS
Subscribe to our newsletter
Name*:
E-Mail*:
Recent Posts
The Benefits of Dropbox
8 Reasons SEO Audits are Needed Before Sites are Built
Yet another great tool by Google
Redeeming the 9 Sins of Google Analytics
Google Bans Itself Again By Banning BeatThatQuote.com
The Ultimate Social Media Profile Chart
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­

Add Comment:
Name*:
E-Mail: Website:
Your message*:
© 2000 - 2012 SWS eMarketing   Search Engine Optimization    Paid Inclusion    Affiliate Marketing