<?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; css</title>
	<atom:link href="http://www.josefrichter.com/blog/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.josefrichter.com/blog</link>
	<description>blogging about the world around</description>
	<lastBuildDate>Sun, 25 Jul 2010 17:20:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</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>
		<item>
		<title>Auto-fit background image in CSS</title>
		<link>http://www.josefrichter.com/blog/auto-fit-background-image-in-css/</link>
		<comments>http://www.josefrichter.com/blog/auto-fit-background-image-in-css/#comments</comments>
		<pubDate>Sun, 23 Nov 2008 21:35:47 +0000</pubDate>
		<dc:creator>Josef Richter</dc:creator>
				<category><![CDATA[webdesign]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[resize]]></category>

		<guid isPermaLink="false">http://richter.wordpress.com/?p=14</guid>
		<description><![CDATA[I was trying to implement a background image which automatically resizes with the browser window. I was inspired by this lovely site: http://www.ringvemedia.com/. I googled out some solutions, however, none of them seemed to work just right. After few experiments, I arrived to this solution, which seems to be working so far: UPDATE: also removed [...]]]></description>
			<content:encoded><![CDATA[<p>I was trying to implement a background image which automatically resizes with the browser window. I was inspired by this lovely site: <a href="http://www.ringvemedia.com/" target="_self">http://www.ringvemedia.com/</a>. I googled out some solutions, however, none of them seemed to work just right. After few experiments, I arrived to this solution, which seems to be working so far:</p>
<p>UPDATE: also removed the scrollbars</p>
<blockquote><p>
body {<br />
overflow-y: hidden ! important;<br />
overflow-x auto ! important;<br />
}</p>
<p>#background {<br />
width: 100%;<br />
left: 0px;<br />
top: 0px;<br />
position: absolute;<br />
z-index: 0;<br />
}</p>
<p>#content {<br />
z-index: 2;<br />
position: absolute;<br />
}</p>
<p>#background img { width: 100%; }</p>
<p>&lt;div id=&#8221;background&#8221;&gt;<br />
&lt;img src=&#8221;images/bg1.jpg&#8221; /&gt;<br />
&lt;/div&gt;&lt;!&#8211; end #background &#8211;&gt;</p>
<p>&lt;div id=&#8221;content&#8221;&gt;Lorem ipsum&lt;/div&gt;</p></blockquote>
<p>update: this solution is implemented at http://www.lachmani.cz/ &#8211; check it out!</p>
<p>Any better solutions out there? Any suggestions how to improve it?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.josefrichter.com/blog/auto-fit-background-image-in-css/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
