<?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>Der Blog von Benny Neugebauer &#187; CSS</title>
	<atom:link href="http://www.bennyn.de/programmierung/css/feed" rel="self" type="application/rss+xml" />
	<link>http://www.bennyn.de</link>
	<description>Alles über die Informatik &#38; Co.</description>
	<lastBuildDate>Wed, 08 Feb 2012 16:31:13 +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>Div Element horizontal und vertikal zentrieren</title>
		<link>http://www.bennyn.de/programmierung/css/div-element-horizontal-und-vertikal-zentrieren.html</link>
		<comments>http://www.bennyn.de/programmierung/css/div-element-horizontal-und-vertikal-zentrieren.html#comments</comments>
		<pubDate>Fri, 27 Jan 2012 12:16:14 +0000</pubDate>
		<dc:creator>bennyn</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[element]]></category>
		<category><![CDATA[horizontal]]></category>
		<category><![CDATA[vertikal]]></category>
		<category><![CDATA[zentrieren]]></category>

		<guid isPermaLink="false">http://www.bennyn.de/?p=3140</guid>
		<description><![CDATA[Ein Code sagt mehr als tausend Worte: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 &#60;!DOCTYPE html&#62; &#60;html&#62; &#60;head&#62; &#60;meta charset=&#34;utf-8&#34; /&#62; &#60;title&#62;Centering a Div horizontally and vertically&#60;/title&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Ein Code sagt mehr als tausend Worte:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;!</span>DOCTYPE html<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>html<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;</span>head<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>meta charset<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;utf-8&quot;</span> <span style="color: #339933;">/&gt;</span>
    <span style="color: #339933;">&lt;</span>title<span style="color: #339933;">&gt;</span>Centering a Div horizontally and vertically<span style="color: #339933;">&lt;/</span>title<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>style type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/css&quot;</span><span style="color: #339933;">&gt;</span>
      html
      <span style="color: #009900;">&#123;</span>
        background<span style="color: #339933;">-</span>color<span style="color: #339933;">:</span> black<span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span>
&nbsp;
      body
      <span style="color: #009900;">&#123;</span>
        width<span style="color: #339933;">:</span> <span style="color: #cc66cc;">100</span><span style="color: #339933;">%;</span>
        height<span style="color: #339933;">:</span> <span style="color: #cc66cc;">100</span><span style="color: #339933;">%;</span>
        position<span style="color: #339933;">:</span> static<span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">/* don't make it relative! */</span>
      <span style="color: #009900;">&#125;</span>
&nbsp;
      <span style="color: #666666; font-style: italic;">#centered
</span>      <span style="color: #009900;">&#123;</span>
        position<span style="color: #339933;">:</span> absolute<span style="color: #339933;">;</span>
        height<span style="color: #339933;">:</span> 396px<span style="color: #339933;">;</span>
        width<span style="color: #339933;">:</span> 400px<span style="color: #339933;">;</span>
        margin<span style="color: #339933;">:</span> <span style="color: #339933;">-</span>198px 0px 0px <span style="color: #339933;">-</span>200px<span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">/* 50% height, 0px, 0px, 50% width */</span>
        top<span style="color: #339933;">:</span> <span style="color: #cc66cc;">50</span><span style="color: #339933;">%;</span>
        left<span style="color: #339933;">:</span> <span style="color: #cc66cc;">50</span><span style="color: #339933;">%;</span>
        background<span style="color: #339933;">-</span>color<span style="color: #339933;">:</span> violet<span style="color: #339933;">;</span>
        border<span style="color: #339933;">:</span> 1px solid white<span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span>
    <span style="color: #339933;">&lt;/</span>style<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;/</span>head<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;</span>body<span style="color: #339933;">&gt;</span>  
    <span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;centered&quot;</span><span style="color: #339933;">&gt;&lt;/</span>div<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;/</span>body<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>html<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.bennyn.de/programmierung/css/div-element-horizontal-und-vertikal-zentrieren.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DIV-Container mit 100 Prozent Höhe</title>
		<link>http://www.bennyn.de/programmierung/css/div-container-mit-100-prozent-hohe.html</link>
		<comments>http://www.bennyn.de/programmierung/css/div-container-mit-100-prozent-hohe.html#comments</comments>
		<pubDate>Mon, 07 Nov 2011 09:37:04 +0000</pubDate>
		<dc:creator>bennyn</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[%]]></category>
		<category><![CDATA[100]]></category>
		<category><![CDATA[container]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[höhe]]></category>
		<category><![CDATA[Prozent]]></category>

		<guid isPermaLink="false">http://www.bennyn.de/?p=2889</guid>
		<description><![CDATA[Oft wünscht man sich in einem CSS-Layout einen Div-Container, welcher als Wrapper fungiert und 100 Prozent der im Browser zur Verfügung stehenden Höhe einnimmt. Möchte man dieses Verhalten browserkompatibel gestalten, ist das die Möglichkeit: HTML 1 2 3 &#60;body&#62; &#60;div id=&#34;wrapper&#34;&#62;&#60;/div&#62; &#60;/body&#62; CSS 1 2 3 4 5 6 7 8 9 10 11 12 [...]]]></description>
			<content:encoded><![CDATA[<p>Oft wünscht man sich in einem CSS-Layout einen Div-Container, welcher als Wrapper fungiert und 100 Prozent der im Browser zur Verfügung stehenden Höhe einnimmt. Möchte man dieses Verhalten browserkompatibel gestalten, ist das die Möglichkeit:</p>
<h2>HTML</h2>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;body&gt;  
  &lt;div id=&quot;wrapper&quot;&gt;&lt;/div&gt;
&lt;/body&gt;</pre></td></tr></table></div>

<h2>CSS</h2>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">html<span style="color: #00AA00;">,</span> body 
<span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
div<span style="color: #cc00cc;">#wrapper</span>
<span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">min-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span> !important<span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> seagreen<span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">300px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.bennyn.de/programmierung/css/div-container-mit-100-prozent-hohe.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Div Container übereinander legen</title>
		<link>http://www.bennyn.de/programmierung/css/div-container-ubereinander-legen.html</link>
		<comments>http://www.bennyn.de/programmierung/css/div-container-ubereinander-legen.html#comments</comments>
		<pubDate>Wed, 26 Oct 2011 11:59:38 +0000</pubDate>
		<dc:creator>bennyn</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[absolute]]></category>
		<category><![CDATA[container]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[legen]]></category>
		<category><![CDATA[position]]></category>
		<category><![CDATA[relative]]></category>
		<category><![CDATA[übereinander]]></category>
		<category><![CDATA[z-index]]></category>

		<guid isPermaLink="false">http://www.bennyn.de/?p=2863</guid>
		<description><![CDATA[Wenn man einen Div-Container über ein anderes Div-Element legen möchte, muss man dem umschließendem Eltern-Element das Attribut position: relative; zuweisen und den darin befindlichen Div-Containern die Eigenschaft position: absolute; geben. Dadurch liegt dann das Kinder-Div, welches zuletzt im Code definiert wurde, am Obersten. In meinem Beispiel liegt child_2 also über child_1: HTML 1 2 3 [...]]]></description>
			<content:encoded><![CDATA[<p>Wenn man einen Div-Container über ein anderes Div-Element legen möchte, muss man dem umschließendem Eltern-Element das Attribut <code>position: relative;</code> zuweisen und den darin befindlichen Div-Containern die Eigenschaft <code>position: absolute;</code> geben. Dadurch liegt dann das Kinder-Div, welches zuletzt im Code definiert wurde, am Obersten. In meinem Beispiel liegt <code>child_2</code> also über <code>child_1</code>:<br />
<b>HTML</b></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">    &lt;div id=&quot;parent&quot;&gt;
      &lt;div id=&quot;child_1&quot;&gt;&lt;/div&gt;
      &lt;div id=&quot;child_2&quot;&gt;&lt;/div&gt;
    &lt;/div&gt;</pre></td></tr></table></div>

<p><b>CSS</b></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#parent</span>
<span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#child_1</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#child_2</span>
<span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">200px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">200px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#child_1</span>
<span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">red</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#child_2</span>
<span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">green</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Möchte man die Reihenfolge der Überlappung selbst bestimmen, so muss man den <code>z-index</code> einsetzen. Ein Element mit höherem <code>z-index</code> liegt über Elementen mit niedrigerem <code>z-index</code>. Mit folgender CSS-Code-Änderung würde <code>child_1</code> über <code>child_2</code> liegen:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#child_1</span>
<span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">red</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">2</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#child_2</span>
<span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">green</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.bennyn.de/programmierung/css/div-container-ubereinander-legen.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Suckerfish CSS done right!</title>
		<link>http://www.bennyn.de/programmierung/css/suckerfish-css-done-right.html</link>
		<comments>http://www.bennyn.de/programmierung/css/suckerfish-css-done-right.html#comments</comments>
		<pubDate>Tue, 19 Apr 2011 19:14:51 +0000</pubDate>
		<dc:creator>bennyn</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[Menü]]></category>
		<category><![CDATA[Navigation]]></category>
		<category><![CDATA[Submenü]]></category>
		<category><![CDATA[Suckerfish]]></category>

		<guid isPermaLink="false">http://www.bennyn.de/?p=2444</guid>
		<description><![CDATA[Vor ein paar Tagen wollte ich ein modernes HTML-Submenü bauen, welches aufklappt, wenn man mit der Maus über einen Menüpunkt fährt. Auf diversen Seiten habe ich gesehen, dass viele diese Technik mit JavaScript realisieren. Ich finde das übertrieben, da sich dieser Effekt auch mit der CSS &#8220;hover&#8221;-Eigenschaft für Listenelemente lösen lässt (Stichwort: Suckerfish CSS). Das [...]]]></description>
			<content:encoded><![CDATA[<p>Vor ein paar Tagen wollte ich ein modernes <strong>HTML-Submenü</strong> bauen, welches aufklappt, wenn man mit der Maus über einen Menüpunkt fährt. </p>
<p>Auf diversen Seiten habe ich gesehen, dass viele diese Technik mit JavaScript realisieren. Ich finde das übertrieben, da sich dieser Effekt auch mit der CSS &#8220;hover&#8221;-Eigenschaft für Listenelemente lösen lässt (<em>Stichwort: Suckerfish CSS</em>). Das funktioniert aber nur in aktuellen Browsern. </p>
<p>Der Internet Explorer 6 unterstützt die &#8220;hover&#8221;-Eigenschaft nämlich nur für Anker. Wie ich leider feststellen musste, gibt es noch weitere Besonderheiten die man beachten muss. Nach 2 Stunden Arbeit habe ich dann aber einen Code entwickelt, der barrierefrei (ohne den Einsatz von display:none und visibility:hidden) ist und problemlos in Firefox und Internet Explorer 6-7 funktioniert (andere Browser wurden nicht getestet).</p>
<h2>Screenshot:</h2>
<p><a href="http://www.bennyn.de/wp-content/uploads/suckerfish_css.png"><img src="http://www.bennyn.de/wp-content/uploads/suckerfish_css-300x178.png" alt="" title="suckerfish_css" width="300" height="178" style="border:1px solid black;" /></a></p>
<p><span id="more-2444"></span></p>
<h2>Code:</h2>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.1//EN&quot;
	&quot;http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd&quot;&gt;
&lt;html&gt;
	&lt;head&gt;
		&lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=EmulateIE7&quot; /&gt;
		&lt;title&gt;Floating Navigation&lt;/title&gt;
		&lt;style type=&quot;text/css&quot;&gt;
		*
		{
			margin: 0; padding: 0; border: 0;
		}
&nbsp;
		#navMenu ul
		{
			line-height: 30px;
		}
&nbsp;
		#navMenu li
		{
			list-style: none;
			float: left;
			position: relative;
		}
&nbsp;
		#navMenu a
		{
			text-align: center;
			display: block;
			width: 100px;
			height: 30px;				
		}
&nbsp;
		/* nested list */
		#navMenu ul ul
		{			
			top: 30px;
			position: absolute;
			left: -999em;
		}
&nbsp;
		#navMenu li:hover ul,
		#navMenu li.sfhover ul
		{
			left: auto;
		}
&nbsp;
		/* IE7 fix: Prevents that the submenu disappears. */
		#navMenu ul ul 
		{
			background: white;
		}
&nbsp;
		/* IE6 fix: Displays the submenu items among each other. */
		#navMenu li.sfhover ul
		{
			width: 100px;
		}
		&lt;/style&gt;
		&lt;!--[if IE 6]&gt;
		&lt;script type=&quot;text/javascript&quot;&gt;
		sfHover = function()
		{
			var sfEls = document.getElementById(&quot;navMenu&quot;).getElementsByTagName(&quot;LI&quot;);
			for (var i=0; i&lt;sfEls.length; i++)
			{
				sfEls[i].onmouseover=function()
				{ this.className+=&quot; sfhover&quot;; }
				sfEls[i].onmouseout=function()
				{ this.className=this.className.replace(new RegExp(&quot; sfhover\\b&quot;), &quot;&quot;); }
			}
		}
		if (window.attachEvent) window.attachEvent(&quot;onload&quot;, sfHover);
		&lt;/script&gt;
		&lt;![endif]--&gt;
	&lt;/head&gt;
	&lt;body&gt;
		&lt;div id=&quot;wrapper&quot;&gt;
			&lt;div id=&quot;navMenu&quot;&gt;
				&lt;ul&gt;
					&lt;li&gt;
						&lt;a href=&quot;#&quot;&gt;Menu 1&lt;/a&gt;
						&lt;ul&gt;
							&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Submenu 1&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Submenu 2&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Submenu 3&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Submenu 4&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Submenu 5&lt;/a&gt;&lt;/li&gt;
						&lt;/ul&gt;
					&lt;/li&gt;
					&lt;li&gt;
						&lt;a href=&quot;#&quot;&gt;Menu 2&lt;/a&gt;
						&lt;ul&gt;
							&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Submenu 1&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Submenu 2&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Submenu 3&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Submenu 4&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Submenu 5&lt;/a&gt;&lt;/li&gt;
						&lt;/ul&gt;						
					&lt;/li&gt;
					&lt;li&gt;
						&lt;a href=&quot;#&quot;&gt;Menu 3&lt;/a&gt;
						&lt;ul&gt;
							&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Submenu 1&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Submenu 2&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Submenu 3&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Submenu 4&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Submenu 5&lt;/a&gt;&lt;/li&gt;
						&lt;/ul&gt;						
					&lt;/li&gt;
					&lt;li&gt;
						&lt;a href=&quot;#&quot;&gt;Menu 4&lt;/a&gt;
						&lt;ul&gt;
							&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Submenu 1&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Submenu 2&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Submenu 3&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Submenu 4&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Submenu 5&lt;/a&gt;&lt;/li&gt;
						&lt;/ul&gt;						
					&lt;/li&gt;
				&lt;/ul&gt;
			&lt;/div&gt;
		&lt;/div&gt;
	&lt;/body&gt;
&lt;/html&gt;</pre></td></tr></table></div>

<p><u>Hinweis:</u> Alle Menüpunkte sind 30 Pixel hoch und 100 Pixel breit. Der gewählte DOCTYPE und die &#8220;X-UA-Compatible&#8221;-Eigenschaft sind wichtig für die korrekte Darstellung im Internet Explorer.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bennyn.de/programmierung/css/suckerfish-css-done-right.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CSS Stil für Keyboard-Tasten</title>
		<link>http://www.bennyn.de/programmierung/css/css-stil-fur-keyboard-tasten.html</link>
		<comments>http://www.bennyn.de/programmierung/css/css-stil-fur-keyboard-tasten.html#comments</comments>
		<pubDate>Mon, 07 Feb 2011 11:02:39 +0000</pubDate>
		<dc:creator>bennyn</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Keyboard]]></category>
		<category><![CDATA[Stil]]></category>
		<category><![CDATA[Style]]></category>
		<category><![CDATA[Tastatur]]></category>
		<category><![CDATA[Tasten]]></category>

		<guid isPermaLink="false">http://www.bennyn.de/?p=2330</guid>
		<description><![CDATA[In meinem Blog gebe ich häufig Tastenkombinationen an, um zu beschreiben, wie bestimmte Dinge bedient werden. Um diese Tastaturkürzel mehr herauszuheben, habe ich einen CSS-Stil entworfen. Hier ein Beispiel: Bitte drücke Strg + Alt + Entf. Ich finde, dass die Wörter &#8220;Strg&#8221; und &#8220;Alt&#8221; sowie &#8220;Entf&#8221; aussehen, wie richtige Tasten einer Tastatur. Den Code dafür [...]]]></description>
			<content:encoded><![CDATA[<p>In meinem Blog gebe ich häufig Tastenkombinationen an, um zu beschreiben, wie bestimmte Dinge bedient werden. Um diese Tastaturkürzel mehr herauszuheben, habe ich einen CSS-Stil entworfen. Hier ein Beispiel:</p>
<blockquote><p>
Bitte drücke <tt>Strg</tt> + <tt>Alt</tt> + <tt>Entf</tt>.
</p></blockquote>
<p>Ich finde, dass die Wörter &#8220;Strg&#8221; und &#8220;Alt&#8221; sowie &#8220;Entf&#8221; aussehen, wie richtige Tasten einer Tastatur. <img src='http://www.bennyn.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Den Code dafür möchte ich natürlich niemanden vorenthalten.<br />
<span id="more-2330"></span></p>
<h2>HTML-Seite mit Keyboard CSS-Stil</h2>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;html&gt;
	&lt;head&gt;
		&lt;title&gt;Beispiel&lt;/title&gt;
		&lt;style type=&quot;text/css&quot;&gt;
		tt
		{
			padding-top: 1px;
			border-top: 1px solid #CCCCCC;
&nbsp;
			padding-bottom: 1px;
			border-bottom: 3px solid #888888;
&nbsp;
			padding-left: 2px;
			border-left: 1px solid #CCCCCC;
&nbsp;
			padding-right: 2px;
			border-right: 3px solid #888888;
&nbsp;
			background-color: #EEEEEE;			
		}
		&lt;/style&gt;
	&lt;/head&gt;
	&lt;body&gt;
		Bitte drücke &lt;tt&gt;Strg&lt;/tt&gt; + &lt;tt&gt;Alt&lt;/tt&gt; + &lt;tt&gt;Entf&lt;/tt&gt;.
	&lt;/body&gt;
&lt;/html&gt;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.bennyn.de/programmierung/css/css-stil-fur-keyboard-tasten.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

