<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Josef Richter &#187; positioning</title>
	<atom:link href="http://www.josefrichter.com/blog/tag/positioning/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.josefrichter.com/blog</link>
	<description>blogging about the world around</description>
	<lastBuildDate>Sat, 14 Jan 2012 10:55:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>CSS positioning with vertical spacers</title>
		<link>http://www.josefrichter.com/blog/css-postitioning-with-vertical-spacers/</link>
		<comments>http://www.josefrichter.com/blog/css-postitioning-with-vertical-spacers/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 09:54:44 +0000</pubDate>
		<dc:creator>Josef Richter</dc:creator>
				<category><![CDATA[webdesign]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[positioning]]></category>
		<category><![CDATA[spacing]]></category>

		<guid isPermaLink="false">http://www.josefrichter.com/blog/?p=217</guid>
		<description><![CDATA[Making layouts in CSS is a real pain. To me it&#8217;s like cleaning toilet with a toothbrush &#8211; it can be done, you can even achieve great results, but you would probably choose different tool if you could&#8230; The community, including Eric Meyer and Shaun Inman obviously longs for a real layout system. Before we [...]]]></description>
			<content:encoded><![CDATA[<p>Making layouts in CSS is a real pain. To me it&#8217;s like cleaning toilet with a toothbrush &#8211; it can be done, you can even achieve great results, but you would probably choose different tool if you could&#8230; The <a href="http://fantasai.inkedblade.net/style/discuss/wasp-feedback-2008#layout">community</a>, including <a href="http://meyerweb.com/eric/thoughts/2009/02/17/wanted-layout-system/">Eric Meyer</a> and <a href="http://css-tricks.com/css-wishlist/">Shaun Inman</a> obviously longs for a real layout system.</p>
<p>Before we get one, if ever, everyone&#8217;s using various hacks. Here is mine &#8211; the vertical spacers. I use Blueprint or 960.gs for layout and horizontal positioning and supplement them with this easy piece of html+css. If you need lots of irregular vertical spacing, like  me in the below screenshot with arrows where vertical spacing is needed, this might help.</p>
<p><a href="http://www.josefrichter.com/blog/wp-content/uploads/Voila_Capture32.jpg"><img src="http://www.josefrichter.com/blog/wp-content/uploads/Voila_Capture32-500x398.jpg" alt="css vertical spacing" title="css vertical spacing" width="500" height="398" class="alignnone size-large wp-image-219" /></a></p>
<p>So the code is really simple. First we define css classes:</p>
<div style="font-size: 10px;">
<pre class="brush: css; gutter: false; auto-links: false; font-size: 5%; tab-size: 2;">
.h10 {
	margin-top: 10px;
}

.h20 {
	margin-top: 20px;
}

.h50 {
	margin-top: 50px;
}

.h100 {
	margin-top: 100px;
}

hr {
	visibility: hidden;
	clear: both;
}
</pre>
</div>
<p>The usage in HTML may be as follows:</p>
<div style="font-size: 10px;">
<pre class="brush: html; gutter: false; auto-links: false; font-size: 5%; tab-size: 2;">
<hr class="h100" />
<hr class="h50" />
</pre>
</div>
<p>As you can see you can get various heights by combining the classes. Hardcore CSS proponents may say HTML shall not bear any formatting info. Well, this might be true, but in my view it&#8217;s pure theory. Most CSS frameworks breach this rule as well and as long as CSS is so bad for layouting, I don&#8217;t care.</p>
<p>Enjoy! If you have any suggestions how to develop this method please leave a comment. Thank you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.josefrichter.com/blog/css-postitioning-with-vertical-spacers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

