<?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>Wanderwort &#187; CSS</title>
	<atom:link href="http://wanderwort.de/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://wanderwort.de</link>
	<description>Interkulturelle Wortkolletionen in Ruby, PHP, XHTML, CSS nah am Strom der Gesellschaft</description>
	<lastBuildDate>Tue, 13 Jul 2010 11:58:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Wordwrap problem of mozillas inline-box</title>
		<link>http://wanderwort.de/2007/11/05/7/</link>
		<comments>http://wanderwort.de/2007/11/05/7/#comments</comments>
		<pubDate>Mon, 05 Nov 2007 12:10:55 +0000</pubDate>
		<dc:creator>pex</dc:creator>
				<category><![CDATA[Gemachtes]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Mozilla]]></category>

		<guid isPermaLink="false">http://wanderwort.de/2007/11/05/7/</guid>
		<description><![CDATA[As Firefox and its friends don&#8217;t support the normal &#8220;display: inline-block&#8221; feature of css, it got its own syntax which is called &#8220;display: -moz-inline-box&#8221;. In most cases you can use it without seeing a difference to the standard CSS-syntax. One of the bugs is that your element won&#8217;t have an automatic break at the end [...]]]></description>
			<content:encoded><![CDATA[<p>As Firefox and its friends don&#8217;t support the normal &#8220;display: inline-block&#8221; feature of css, it got its own syntax which is called &#8220;display: -moz-inline-box&#8221;. In most cases you can use it without seeing a difference to the standard CSS-syntax.<br />
One of the bugs is that your element won&#8217;t have an automatic break at the end of the line but behaves somehow like &#8220;white-space: nowrap&#8221;.<br />
The other bug which I will kill by now appears when your inline-block Element doesn&#8217;t have a content.<br />
For example when the background is set with CSS and you don&#8217;t want anything else to be displayed. Or if you are using Javascript to fill the element.<br />
Anyway Firefox would ignore the line-height and put your element in the next line.<br />
Perhaps you didn&#8217;t see this HTML-Enitie for a while as we all use CSS and UTF-8, but a simple &amp;nbsp; (a white-space) will work, though.</p>
]]></content:encoded>
			<wfw:commentRss>http://wanderwort.de/2007/11/05/7/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Tabellen- und Listenabstände per CSS im IE</title>
		<link>http://wanderwort.de/2007/10/25/tabellen-und-listenabstande-per-css-im-ie/</link>
		<comments>http://wanderwort.de/2007/10/25/tabellen-und-listenabstande-per-css-im-ie/#comments</comments>
		<pubDate>Thu, 25 Oct 2007 18:57:51 +0000</pubDate>
		<dc:creator>pex</dc:creator>
				<category><![CDATA[Gemachtes]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[IE-Hacks]]></category>
		<category><![CDATA[xHTML]]></category>

		<guid isPermaLink="false">http://wanderwort.de/2007/10/25/tabellen-und-listenabstande-per-css-im-ie/</guid>
		<description><![CDATA[Wer angehalten ist für größere Projekte seine Seiten auch dem Microsoft Internet Explorer schmackhaft zu machen, stößt recht schnell auf die Grenzen der vollkommen veralteten CSS Engine. Ein grandioser Bug im ist hier eine mehrdimensionale Liste. Heisst, eine Liste (ol/ul), die in einer anderen liegt (oder auch in einer Tabelle). Hier fügt der IE oberhalb [...]]]></description>
			<content:encoded><![CDATA[<p>Wer angehalten ist für größere Projekte seine Seiten auch dem Microsoft Internet Explorer schmackhaft zu machen, stößt recht schnell auf die Grenzen der vollkommen veralteten CSS Engine.</p>
<p>
Ein grandioser Bug im ist hier eine mehrdimensionale Liste. Heisst, eine Liste (ol/ul), die in einer anderen liegt (oder auch in einer Tabelle).<br />
Hier fügt der IE oberhalb der Liste einen Abstand ein, den man mit normalen Margin oder Padding angaben nicht ändern kann. Wir versuchen es:<span id="more-5"></span><br />
Ein Beispiel:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>Irgendetwas<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>Irgendetwas in der zweiten Liste<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>Nochetwas<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
   <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span></pre></div></div>

<p>Selbst wenn wir nun im CSS folgende Angaben machen, bleibt der Abstand der zweiten Liste:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">ul<span style="color: #00AA00;">,</span> ul li<span style="color: #00AA00;">,</span> ul li ul<span style="color: #00AA00;">,</span> ul li ul li <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Indem man allerdings die zweite Liste als inline-block definiert, kann man den Fehler beheben:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">ul li ul <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> inline-<span style="color: #993333;">block</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Da die Mozilla Engine kein inline-block kennt, wird es dort übergangen. Im Safari und Opera auf der anderen Seite führt diese Definition zu krassen Darstellungfehlern, weshalb es ratsam ist, die Definition als IE-Hack bzw. Browserweiche zu kennzeichen:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #00AA00;">*+</span>html ul li ul<span style="color: #00AA00;">,</span> <span style="color: #00AA00;">*</span> html ul li ul <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> inline-<span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>das *+html ist dabei speziell für den IE7, da er (eigentlich korrekter Weise) das * html igoriert.</p>
<p>Ich hoffe, dass ich einigen von euch ein wenig Frust nehmen konnte.<br />
<a href="http://www.thestyleworks.de/tut-art/ie7.shtml">Hier gibt&#8217;s übrigens nehr über Internet Explorer 7  Hacks.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wanderwort.de/2007/10/25/tabellen-und-listenabstande-per-css-im-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
