2 Column Layout CSS - float style

Send Snippet To: Save this snippet to Code Collector Pro -- view all seydoggy's snippets
language: CSS
license: Other

Code for Snippet:

                
.column {
	float:left;
	width: 50%; /* this is what makes it 2 column */
	margin: 0;
	padding: 0;
}
 
.column * {
	width: 90%;
	margin: 0 auto;
}
 
.column img {
	width: auto; /* must be sized with inline styles */
}
 
#this_page .one.column {
	/* whatever .one needs */
}
 
#this_page .two.column {
	/* whatever .two needs */
}
comments powered by Disqus

Info

Tags: css two 2 column layout

Link to this snippet:


Download to Code Collector

To use the direct link to your snippet on CodeCollector.net either copy the html from the above section or drag the Download to Code Collector to where you would like to use it.

More Info:

Times Viewed: 702
Date Added: 2008-07-26 13:18:07
Last Modified: 0000-00-00 00:00:00

Web Analytics