<?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>Stefan Sobek Blog &#187; CSS</title>
	<atom:link href="http://www.sobek.info/blog/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sobek.info/blog</link>
	<description>Writing about IT, Software Engineering, sports and other stuff</description>
	<lastBuildDate>Mon, 24 Jan 2011 12:50:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Z-Index Problems in IE7 and superfish menu plugin</title>
		<link>http://www.sobek.info/blog/2011/01/10/z-index-problems-in-ie7-and-superfish-menu-plugin/</link>
		<comments>http://www.sobek.info/blog/2011/01/10/z-index-problems-in-ie7-and-superfish-menu-plugin/#comments</comments>
		<pubDate>Mon, 10 Jan 2011 15:19:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Jquery]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[IE7 Bug]]></category>
		<category><![CDATA[z-index]]></category>

		<guid isPermaLink="false">http://www.sobek.info/blog/?p=318</guid>
		<description><![CDATA[Ever had problems in IE7 with z-index css attribute? 
Problem:
The Menu created with superfish plugin for jquery will be shown behind the main content on mouseover. 
Solution:
With Jquery dynamically reverse the CSS zindex stacking order of the page element so that higher elements in HTML source have highter z-index number

?View Code JAVA1
2
3
4
5
6
7
    [...]]]></description>
			<content:encoded><![CDATA[<p>Ever had problems in IE7 with z-index css attribute? </p>
<p><strong>Problem</strong>:<br />
The Menu created with superfish plugin for jquery will be shown behind the main content on mouseover. </p>
<p><strong>Solution:</strong><br />
With Jquery dynamically reverse the CSS zindex stacking order of the page element so that higher elements in HTML source have highter z-index number</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p318code2'); return false;">View Code</a> JAVA</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p3182"><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code" id="p318code2"><pre class="java" style="font-family:monospace;">       	$<span style="color: #009900;">&#40;</span>function<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		var zIndexNumber <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1000</span><span style="color: #339933;">;</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'div'</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">each</span><span style="color: #009900;">&#40;</span>function<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			$<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">css</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'zIndex'</span>, zIndexNumber<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			zIndexNumber <span style="color: #339933;">-=</span> <span style="color: #cc66cc;">10</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Check this link for more information: <a href="http://www.vancelucas.com/blog/fixing-ie7-z-index-issues-with-jquery/">http://www.vancelucas.com/blog/fixing-ie7-z-index-issues-with-jquery/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sobek.info/blog/2011/01/10/z-index-problems-in-ie7-and-superfish-menu-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Data URIs in CSS</title>
		<link>http://www.sobek.info/blog/2010/03/30/data-uris-in-css/</link>
		<comments>http://www.sobek.info/blog/2010/03/30/data-uris-in-css/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 12:04:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[css tricks]]></category>

		<guid isPermaLink="false">http://www.sobek.info/blog/?p=244</guid>
		<description><![CDATA[Found an interesting article about Data URIs.
It is possible to embed the image data directly into the document. This can either be the html document or a css-file.

?View Code HTML1
2
3
4
5
6
7
li {
  background:
    url(data:image/gif;base64,R0lGODlhEAAQAMQAAORHHOVSKudfOulrSOp3WOyDZu6QdvCchPGolfO0o/XBs/fNwfjZ0frl3/zy7////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAkAABAALAAAAAAQABAAAAVVICSOZGlCQAosJ6mu7fiyZeKqNKToQGDsM8hBADgUXoGAiqhSvp5QAnQKGIgUhwFUYLCVDFCrKUE1lBavAViFIDlTImbKC5Gm2hB0SlBCBMQiB0UjIQA7)
    no-repeat
    left center;
  padding: 5px 0 5px 25px;
}

This is cool stuff [...]]]></description>
			<content:encoded><![CDATA[<p>Found an interesting article about Data URIs.<br />
It is possible to embed the image data directly into the document. This can either be the html document or a css-file.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p244code4'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p2444"><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code" id="p244code4"><pre class="html" style="font-family:monospace;">li {
  background:
    url(data:image/gif;base64,R0lGODlhEAAQAMQAAORHHOVSKudfOulrSOp3WOyDZu6QdvCchPGolfO0o/XBs/fNwfjZ0frl3/zy7////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAkAABAALAAAAAAQABAAAAVVICSOZGlCQAosJ6mu7fiyZeKqNKToQGDsM8hBADgUXoGAiqhSvp5QAnQKGIgUhwFUYLCVDFCrKUE1lBavAViFIDlTImbKC5Gm2hB0SlBCBMQiB0UjIQA7)
    no-repeat
    left center;
  padding: 5px 0 5px 25px;
}</pre></td></tr></table></div>

<p>This is cool stuff but will not run in IE<8. </p>
<p>So why should i use this? Normally not, but to save requests. </p>
<p>Great article from <a href="http://css-tricks.com/data-uris/">http://css-tricks.com/data-uris/ </a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sobek.info/blog/2010/03/30/data-uris-in-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vertical alignment of html-elements with css</title>
		<link>http://www.sobek.info/blog/2009/12/28/vertical-alignment-of/</link>
		<comments>http://www.sobek.info/blog/2009/12/28/vertical-alignment-of/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 09:40:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[align vertically]]></category>
		<category><![CDATA[alignment]]></category>

		<guid isPermaLink="false">http://www.sobek.info/blog/?p=211</guid>
		<description><![CDATA[There is no vertical-aligment css-attribute in css 2.0. So how to align elements vertically?

?View Code HTML1
2
3
4
5
6
7
8
DIV.container {
    min-height: 10em;
    display: table-cell;
    vertical-align: middle }
...
&#60;DIV class=&#34;container&#34;&#62;
  &#60;P&#62;This small paragraph...
&#60;/DIV&#62;

To align vertically the paragraph P on line 7, you have to use display: table-cell; and vertical-align: middle;
Runs [...]]]></description>
			<content:encoded><![CDATA[<p>There is no vertical-aligment css-attribute in css 2.0. So how to align elements vertically?</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p211code6'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p2116"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code" id="p211code6"><pre class="html" style="font-family:monospace;">DIV.container {
    min-height: 10em;
    display: table-cell;
    vertical-align: middle }
...
&lt;DIV class=&quot;container&quot;&gt;
  &lt;P&gt;This small paragraph...
&lt;/DIV&gt;</pre></td></tr></table></div>

<p>To align vertically the paragraph P on line 7, you have to use display: table-cell; and vertical-align: middle;</p>
<p>Runs on Mozilla, Safari and IE8 but not IE7</p>
<p>This example is from W3.org. Orginal article can be found <a href="http://www.w3.org/Style/Examples/007/center.html#vertical">here</a>. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.sobek.info/blog/2009/12/28/vertical-alignment-of/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

