<?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>crusy.net &#187; CSS</title>
	<atom:link href="http://blog.crusy.net/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.crusy.net</link>
	<description>- Established 1979 -</description>
	<lastBuildDate>Thu, 09 Feb 2012 10:55:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Neues Theme, neues Glück</title>
		<link>http://blog.crusy.net/2011/03/13/neues-theme-neues-gluck/</link>
		<comments>http://blog.crusy.net/2011/03/13/neues-theme-neues-gluck/#comments</comments>
		<pubDate>Sun, 13 Mar 2011 20:05:12 +0000</pubDate>
		<dc:creator>crusy</dc:creator>
				<category><![CDATA[Apropos]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Theme]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress Theme]]></category>

		<guid isPermaLink="false">http://blog.crusy.net/?p=1298</guid>
		<description><![CDATA[Das neue WordPress-Theme heißt Satorii - und scheint mindestens im Firefox 4 RC1/Windows Probleme zu machen: Oben wie es aussehen soll, unten wie es aussieht. Leider funktioniert Firebug unter FF 4 (noch) nicht, deshalb kann ich gerade schlecht debuggen&#8230;]]></description>
			<content:encoded><![CDATA[<p>Das neue WordPress-Theme heißt <a title="Satorii" href="http://www.yukei.net/proyectos/satorii/english-doc/" target="_blank">Satorii </a>- und scheint mindestens im Firefox 4 RC1/Windows Probleme zu machen:</p>
<p><a href="http://blog.crusy.net/wp-content/uploads/2011/03/ff-fehler.jpg"><img class="alignnone size-full wp-image-1299" title="ff-fehler" src="http://blog.crusy.net/wp-content/uploads/2011/03/ff-fehler.jpg" alt="" width="450" height="456" /></a></p>
<p>Oben wie es aussehen soll, unten wie es aussieht. Leider funktioniert Firebug unter FF 4 (noch) nicht, deshalb kann ich gerade schlecht debuggen&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.crusy.net/2011/03/13/neues-theme-neues-gluck/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Content einfügen mit CSS</title>
		<link>http://blog.crusy.net/2010/07/19/content-einfugen-mit-css/</link>
		<comments>http://blog.crusy.net/2010/07/19/content-einfugen-mit-css/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 14:50:01 +0000</pubDate>
		<dc:creator>crusy</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://blog.crusy.net/?p=1083</guid>
		<description><![CDATA[Weil ich&#8217;s grad gesucht (und nicht gleich wiedergefunden) habe: Man kann mit CSS Content einfügen. Zum Beispiel diese kleinen Doppelpfeile (») im WordPress-Standardtheme werden dort wie folgt eingefügt: .entry ul li:before, #sidebar ul ul li:before { content: "bla"; } UPDATE: Upsala, Copy&#38;Paste-Formatierungs-Fehler]]></description>
			<content:encoded><![CDATA[<p>Weil ich&#8217;s grad gesucht (und nicht gleich wiedergefunden) habe: Man kann mit CSS Content einfügen. Zum Beispiel diese kleinen Doppelpfeile (») im WordPress-Standardtheme werden dort wie folgt eingefügt:</p>
<blockquote>
<pre><code>.entry ul li:before, #sidebar ul ul li:before {
	content: "bla";
	}</code></pre>
</blockquote>
<p>UPDATE: Upsala, Copy&amp;Paste-Formatierungs-Fehler</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.crusy.net/2010/07/19/content-einfugen-mit-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Abgerundete Ecken</title>
		<link>http://blog.crusy.net/2009/07/10/abgerundete-ecken/</link>
		<comments>http://blog.crusy.net/2009/07/10/abgerundete-ecken/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 14:48:15 +0000</pubDate>
		<dc:creator>crusy</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[abgerundet]]></category>
		<category><![CDATA[abgerundete Ecken]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[round]]></category>
		<category><![CDATA[rounded corners]]></category>

		<guid isPermaLink="false">http://blog.crusy.net/?p=807</guid>
		<description><![CDATA[Wer abgerundete Ecken auf seiner Webseite will, und keine Lust auf Photoshop-Orgien hat (oder CSS3 verwenden will^^), sollte sich mal die Corner Demo für jQuery ansehen. Danke an Moritz, once again!]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-808" title="rounded_corners" src="http://blog.crusy.net/wp-content/uploads/2009/07/rounded_corners.png" alt="rounded_corners" width="286" height="136" /></p>
<p>Wer abgerundete Ecken auf seiner Webseite will, und keine Lust auf Photoshop-Orgien hat (<a title="css3 preview" href="http://www.css3.info/preview/rounded-border/" target="_blank">oder CSS3 verwenden</a> will^^), sollte sich mal die <a title="jQuery Corner Demo" href="http://malsup.com/jquery/corner/" target="_blank">Corner Demo</a> für <a title="jQuery" href="http://jquery.com/" target="_blank">jQuery</a> ansehen. Danke an Moritz, once again!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.crusy.net/2009/07/10/abgerundete-ecken/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>outline: none;</title>
		<link>http://blog.crusy.net/2008/12/07/outline-none/</link>
		<comments>http://blog.crusy.net/2008/12/07/outline-none/#comments</comments>
		<pubDate>Sun, 07 Dec 2008 18:24:18 +0000</pubDate>
		<dc:creator>crusy</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[outline]]></category>

		<guid isPermaLink="false">http://blog.crusy.net/?p=451</guid>
		<description><![CDATA[Ein &#8220;aktiver&#8221; Link wird durch eine schmale gepunktete Linie dargestellt (oben). Allerdings nicht mehr, wenn man ein * { outline: none; } einfügt (unten). PS: Angeblich hilft das auch gegen diese blau glühenden Rahmen auf dem Mac.]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.crusy.net/wp-content/uploads/2008/12/outline.jpg"><img class="aligncenter size-full wp-image-452" title="outline" src="http://blog.crusy.net/wp-content/uploads/2008/12/outline.jpg" alt="" width="400" height="204" /></a></p>
<p>Ein &#8220;aktiver&#8221; Link wird durch eine schmale gepunktete Linie dargestellt (oben). Allerdings nicht mehr, wenn man ein</p>
<blockquote><p><code>* { outline: none; }</code></p></blockquote>
<p>einfügt (unten). PS: <a title="usabilitypost.com" href="http://www.usabilitypost.com/2008/10/15/css-tip-remove-mac-osx-glowing-blue-outlin-for-custom-styled-input-fields/" target="_blank">Angeblich</a> hilft das auch gegen diese blau glühenden Rahmen auf dem Mac.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.crusy.net/2008/12/07/outline-none/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Firefox vs. &#8220;background-position: center center;&#8221;</title>
		<link>http://blog.crusy.net/2008/09/16/firefox-vs-background-position-center-center/</link>
		<comments>http://blog.crusy.net/2008/09/16/firefox-vs-background-position-center-center/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 20:47:57 +0000</pubDate>
		<dc:creator>crusy</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[background-position]]></category>

		<guid isPermaLink="false">http://blog.crusy.net/?p=207</guid>
		<description><![CDATA[Während meiner Nachforschungen zum folgenden Problem habe ich auf einer Seite den Satz gelesen &#8220;Vielleicht das einzig Gute am Internet Explorer!&#8221;. Dem kann ich mich anschliessen Also. Ich habe ein Hintergrundbild in einem HTML-Element, zB dem body dieser Seite. Mit CSS setze ich dieses in die Mitte: background-image: url(&#8216;images/backg.jpg&#8217;); background-attachment: fixed; background-position: 50% 50%; Nun [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-medium wp-image-103" title="firefox" src="http://blog.crusy.net/wp-content/uploads/2008/08/firefox.png" alt="" width="300" height="289" />Während meiner Nachforschungen zum folgenden Problem habe ich auf einer Seite den Satz gelesen &#8220;Vielleicht das einzig Gute am Internet Explorer!&#8221;. Dem kann ich mich anschliessen <img src='http://blog.crusy.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Also. Ich habe ein Hintergrundbild in einem HTML-Element, zB dem body dieser Seite. Mit CSS setze ich dieses in die Mitte:</p>
<blockquote><p>background-image: url(&#8216;images/backg.jpg&#8217;);<br />
background-attachment: fixed;<br />
background-position: 50% 50%;</p></blockquote>
<p>Nun habe ich einen sehr langen Text auf meiner Seite (zB dieses Blog), ein vertikaler Scrollbalken wird angezeigt. Und ich habe einen sehr kurzen Text (der Photobereich zur Zeit noch), bei dem keine Scrolleiste angezeigt wird. Beim Wechseln zwischen diesen beiden Bereichen springt das Hintergrundbild. Warum? Weil Firefox die Breite der Scrolleiste von der Breite der eigentlichen Seite abzieht, bevor er die Position des Hintergrundes auf der &#8211; nun schmaleren &#8211; Seite berechnet. Sehr nervig. Folgende Lösungen stehen zur Wahl:</p>
<p>Den ersten Ansatz <a title="Getting Rid of the Page Shift" href="http://www.communitymx.com/content/article.cfm?cid=528A0" target="_blank">liest man</a> sehr häufig: Man mache die komplette Seite immer mindestens 1 Pixel höher als sie müsste:</p>
<blockquote><p>html { min-height: 100%; margin-bottom: 1px; }</p></blockquote>
<p>Die Folge: Man hat immer einen aktiven Scrollbalken rechts, der um mindestens einen Pixel scrollt. Auch nicht besser. Als nächstes bin ich über <a title="Getting the scrollbar width in pixels" href="http://www.fleegix.org/articles/2006-05-30-getting-the-scrollbar-width-in-pixels">die Möglichkeit</a> gestolpert, die Breite der Scrolleiste per Javascript auszulesen (ich leihe mir den Code mal, aus Archivierungsgründen <img src='http://blog.crusy.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> ):</p>
<blockquote><p>function getScrollerWidth() {<br />
var scr = null;<br />
var inn = null;<br />
var wNoScroll = 0;<br />
var wScroll = 0;</p>
<p>// Outer scrolling div<br />
scr = document.createElement(&#8216;div&#8217;);<br />
scr.style.position = &#8216;absolute&#8217;;<br />
scr.style.top = &#8216;-1000px&#8217;;<br />
scr.style.left = &#8216;-1000px&#8217;;<br />
scr.style.width = &#8217;100px&#8217;;<br />
scr.style.height = &#8217;50px&#8217;;</p>
<p>// Start with no scrollbar<br />
scr.style.overflow = &#8216;hidden&#8217;;</p>
<p>// Inner content div<br />
inn = document.createElement(&#8216;div&#8217;);<br />
inn.style.width = &#8217;100%&#8217;;<br />
inn.style.height = &#8217;200px&#8217;;</p>
<p>// Put the inner div in the scrolling div<br />
scr.appendChild(inn);</p>
<p>// Append the scrolling div to the doc<br />
document.body.appendChild(scr);</p>
<p>// Width of the inner div sans scrollbar<br />
wNoScroll = inn.offsetWidth;</p>
<p>// Add the scrollbar<br />
scr.style.overflow = &#8216;auto&#8217;;</p>
<p>// Width of the inner div width scrollbar<br />
wScroll = inn.offsetWidth;</p>
<p>// Remove the scrolling div from the doc<br />
document.body.removeChild(document.body.lastChild);</p>
<p>// Pixel width of the scroller<br />
return (wNoScroll &#8211; wScroll);<br />
}</p></blockquote>
<p>Da tun sich doch unvermutete Möglichkeiten auf!? Tja, bloß leider keine, die funktioniert hätte. Wenn jemand eine Idee hat, wie ich die Position eines Elementes, das prozentual (bzw. über &#8220;center&#8221;) positioniert ist, um eine Anzahl von Pixeln ändern kann: Immer her damit <img src='http://blog.crusy.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Mir blieb nur folgende Lösung, bei der ebenfalls ein permanenter Scrollbalken eingeblendet wird &#8211; allerdings ist dieser inaktiv, wenn er nicht benötigt wird, was ich persönlich sehr viel angenehmer finde:</p>
<blockquote><p>:root { overflow-y: scroll; }</p></blockquote>
<p>Diese Lösung ist die valide (!) CSS3-Version des invaliden</p>
<blockquote><p>html { overflow: -moz-scrollbars-vertical !important; }</p></blockquote>
<p>, das sowieso nur für Mozilla-Browser gilt. Erstaunlicherweise funktioniert die CSS3-&#8221;:root&#8221;-Version praktisch &#8220;überall&#8221;: Firefox 2.0.0.16 auf dem Mac, Safari 3.1.2 auf dem Mac, Firefox 3.0.1 auf dem PC, Safari 3.1 auf dem PC, dem IE soweiso, und dem <a title="crusy.net@W3C" href="http://jigsaw.w3.org/css-validator/validator?uri=blog.crusy.net&amp;profile=css3&amp;usermedium=all" target="_blank">W3C CSS Validator</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.crusy.net/2008/09/16/firefox-vs-background-position-center-center/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

