<?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>Sura 1.at &#187; CSS</title>
	<atom:link href="http://www.sura1.at/wordpress/category/css/feed" rel="self" type="application/rss+xml" />
	<link>http://www.sura1.at/wordpress</link>
	<description>Webdesign, Internet und Online-Themen, die interessieren</description>
	<lastBuildDate>Tue, 23 Feb 2010 10:36:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Wie Sie mit CSS einfache Fortschrittsbalken und Diagramme erstellen</title>
		<link>http://www.sura1.at/wordpress/wie-sie-mit-css-einfache-fortschrittsbalken-und-diagramme-erstellen/ </link>
		<comments>http://www.sura1.at/wordpress/wie-sie-mit-css-einfache-fortschrittsbalken-und-diagramme-erstellen/ #comments</comments>
		<pubDate>Fri, 25 Dec 2009 14:36:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS-Bar]]></category>
		<category><![CDATA[Diagramm]]></category>
		<category><![CDATA[Fortschrittsbalken]]></category>
		<category><![CDATA[Statistik]]></category>

		<guid isPermaLink="false">http://www.sura1.at/wordpress/?p=8290</guid>
		<description><![CDATA[Mit CSS relativ einfach Fortschrittsbalken und Diagramme erstellen
Wenn Sie manchmal verschiedenartige Diagramme für die Darstellung bestimmter Statistiken benötigen, machen Sie vielleicht mit irgendeinem Programm ein Bild, welches Sie danach auf Ihrer Webseite/Ihrem Blog veröffentlichen.
Das Problem dabei ist aber folgendes:
Ändern sich Ihre ursprünglichen Daten, müssen Sie natürlich wieder zuerst das Bild neu abspeichern und neu veröffentlichen [...]]]></description>
			<content:encoded><![CDATA[<h3>Mit CSS relativ einfach Fortschrittsbalken und Diagramme erstellen</h3>
<p>Wenn Sie manchmal verschiedenartige Diagramme für die Darstellung bestimmter Statistiken benötigen, machen Sie vielleicht mit irgendeinem Programm ein Bild, welches Sie danach auf Ihrer Webseite/Ihrem Blog veröffentlichen.</p>
<p><strong>Das Problem dabei ist aber folgendes:</strong></p>
<p>Ändern sich Ihre ursprünglichen Daten, müssen Sie natürlich wieder zuerst das Bild neu abspeichern und neu veröffentlichen &#8211; ein Vorgang der oft sehr mühsam sein kann. Um auf das Bild verzichten zu können, gibt es diverse CSS Techniken, mit denen Sie auch relativ einfach wunderbare Diagramme erstellen können, welche dann einfacher zu warten sind.</p>
<p>Außerdem verlangsamt jede Grafik die Ladezeiten Ihrer Webseite – der Einsatz von CSS kann Ihnen somit auch helfen, diese zu kurz wie möglich zu halten!<span id="more-8290"></span></p>
<p style="text-align: center;">Fertiges Beispiel ansehen [ Grafik oder Link anklicken!]</p>
<p style="text-align: center;"><a href="http://bencosweb.com/franz/super_simple_css_bar.html" target="_blank">Super Simple CSS Bar &#8211; einfaches CSS-Diagramm</a></p>
<p style="text-align: center;"><a href="http://bencosweb.com/franz/super_simple_css_bar.html" target="_blank"><img class="alignnone size-full wp-image-8305" title="http://bencosweb.com/franz/super_simple_css_bar.html" src="http://www.sura1.at/wordpress/wp-content/uploads/super-simple-css-bars_1226781017573.png" alt="Super Simple Css Bars" width="368" height="362" /></a></p>
<h3>Erstellung der CSS-Diagramme</h3>
<p><strong>HTML-Formatierung:</strong></p>
<p>Im Quellcode wird das HTML-Element-&lt;fieldset&gt;, welches normalerweise in Formularen eingesetzt wird, zu Hilfe genommen. In diesem wird danach durch das &lt;legend&gt;-Element die Diagramm-Überschrift festgelegt. Danach erfolgt die Festlegung  von 2 &lt;div&gt;-Boxen.</p>
<p>Die div-Box <span style="color: #ff6600;"><code>div.progress-container</code></span> wird mit Hilfe von CSS formatiert, bekommt jedoch auch einen Inline-Style, mit welchem die Gesamt-Breite/Länge des Diagrammes festgelegt werden soll.</p>
<p>In diese div-Box (<span style="color: #ff6600;"><code>div.progress-container</code></span>) wird nun eine leere div-Box eingefügt. In dieser legen Sie mit einem Inline-Stylesheet den Prozentsatz des Diagrammes fest, welches Sie farbig darstellen möchten. Mit der Festlegung der Hintergrundfarbe können Sie hier die Farbe des Diagrammes (%-Anteil) festlegen.</p>
<p><strong>HTML-Beispiel für ein Diagramm-Feld:</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;fieldset&gt;
&lt;legend&gt;200px 40% orange&lt;/legend&gt;
&lt;div class=&quot;progress-container&quot; style=&quot;width: 200px&quot;&gt;
&lt;div style=&quot;width: 40%; background: orange;&quot;&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br/&gt;
&lt;/fieldset&gt;</pre></td></tr></table></div>

<p><strong>Formatierung der Cascading Style Sheets:</strong></p>
<p>Im CSS legen Sie mit der CSS-Klasse <span style="color: #ff6600;"><code>div.progress-container</code></span> die äußere Form des Diagrammes fest.<br />
Mit der CSS-Regel <span style="color: #ff6600;"><code>div.progress-container &gt; div</code></span> definieren Sie danach die leere div-Box. Mit der Festlegung der Hintergrundfarbe geben Sie dem Diagramm (%)  erst das gewünschte Aussehen. Sie können die Hintergrundfarbe aber auch als Inline-Style bereits im HTML-Element &lt;fieldset&gt; definieren (siehe Erklärung zu HTML-Quellcode!)</p>
<p><strong>Stylesheet:</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">div<span style="color: #6666ff;">.progress-container</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">;</span> 
  <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span> <span style="color: #933;">5px</span> <span style="color: #933;">2px</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: #933;">1px</span><span style="color: #00AA00;">;</span> 
  <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> 
  <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">white</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
div<span style="color: #6666ff;">.progress-container</span> <span style="color: #00AA00;">&gt;</span> div <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#ACE97C</span><span style="color: #00AA00;">;</span> 
  <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">12px</span>
<span style="color: #00AA00;">&#125;</span>
fieldset <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>In meinem Beispiel habe ich die Festlegung der Diagramm-Farben absichtlich vermischt,  um  Ihnen die beiden Möglichkeiten anschaulich vorzuführen. Die beiden ersten Diagramme werden direkt über den CSS-Befehl <span style="color: #ff6600;"><code>div.progress-container &gt; div</code></span> farblich dargestellt. Die Diagramme 3, 4, und 5 hingegen bekommen ihre Farbe über die Inline-Styles.</p>
<p style="text-align: center;">Fertiges Beispiel ansehen [ Grafik oder Link anklicken!]</p>
<p style="text-align: center;"><a href="http://bencosweb.com/franz/super_simple_css_bar.html" target="_blank">Super Simple CSS Bar &#8211; einfaches CSS-Diagramm</a></p>
<p style="text-align: center;"><a href="http://bencosweb.com/franz/super_simple_css_bar.html" target="_blank"><img class="alignnone size-full wp-image-8305" title="http://bencosweb.com/franz/super_simple_css_bar.html" src="http://www.sura1.at/wordpress/wp-content/uploads/super-simple-css-bars_1226781017573.png" alt="Super Simple Css Bars" width="368" height="362" /></a></p>
<p>Quelle: <a href="http://blog.leetsoft.com/2006/8/22/super-simple-css-bars" target="_blank">http://blog.leetsoft.com/2006/8/22/super-simple-css-bars</a></p>
<blockquote>
<h3>Ähnliche Artikel:</h3>
<p><a href="http://www.sura1.at/wordpress/wie-sie-mit-css-schone-bilderrahmen-gestalten-konnen/">Wie Sie mit CSS schöne Bilderrahmen gestalten können</a><br />
<a href="http://www.sura1.at/wordpress/wie-sie-einen-animierten-fortschrittsbalken-mit-css-erstellen/">Wie Sie einen animierten Fortschrittsbalken mit CSS erstellen</a><br />
<a href="http://www.sura1.at/wordpress/csshtml-tricks-unterschied-zwischen-relativer-und-absoluter-positionierung/">CSS/HTML-Tricks: Unterschied zwischen relativer und absoluter Positionierung</a><br />
<a href="http://www.sura1.at/wordpress/csshtml-tricks-float-mit-mehreren-div-boxen/">CSS/HTML-Tricks: Float mit mehreren div-Boxen</a><br />
<a href="http://www.sura1.at/wordpress/5-beispiele-wie-sie-ungeordnete-listen-formatieren-konnen/">5 Beispiele, wie Sie ungeordnete Listen formatieren können</a>
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.sura1.at/wordpress/wie-sie-mit-css-einfache-fortschrittsbalken-und-diagramme-erstellen/ /feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Wie Sie mit CSS schöne Bilderrahmen gestalten können</title>
		<link>http://www.sura1.at/wordpress/wie-sie-mit-css-schone-bilderrahmen-gestalten-konnen/ </link>
		<comments>http://www.sura1.at/wordpress/wie-sie-mit-css-schone-bilderrahmen-gestalten-konnen/ #comments</comments>
		<pubDate>Thu, 10 Dec 2009 21:03:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Bilderrahmen mit CSS]]></category>
		<category><![CDATA[border]]></category>
		<category><![CDATA[CSS-Trick]]></category>
		<category><![CDATA[Grafik]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[padding]]></category>
		<category><![CDATA[Stylesheet]]></category>

		<guid isPermaLink="false">http://www.sura1.at/wordpress/?p=7999</guid>
		<description><![CDATA[Gestaltung von Bilderrahmen mit CSS
Auf der Webseite http://www.thewebsqueeze.com habe ich einige interessante Beispiele gefunden, wie Sie mit dem Einsatz der CSS-Eigenschaften border und background schöne und ansprechende Bilderrahmen gestalten können.
Ich möchte Ihnen in den folgenden 6 Beispielen zeigen, wie Sie Grafiken mit Rahmen versehen können. Alle verwendeten Bilder habe ich selber gemalt. Sie können diese [...]]]></description>
			<content:encoded><![CDATA[<h2>Gestaltung von Bilderrahmen mit CSS</h2>
<blockquote><p>Auf der Webseite <a href="http://www.thewebsqueeze.com/web-design-articles/unique-css-borders-boring-borders-step-aside.html" target="_blank">http://www.thewebsqueeze.com</a> habe ich einige interessante Beispiele gefunden, wie Sie mit dem Einsatz der CSS-Eigenschaften <span style="color: #ff6600;"><code>border</code></span> und <span style="color: #ff6600;"><code>background</code></span> schöne und ansprechende Bilderrahmen gestalten können.</p></blockquote>
<p>Ich möchte Ihnen in den folgenden 6 Beispielen zeigen, wie Sie Grafiken mit Rahmen versehen können. Alle verwendeten Bilder habe ich selber gemalt. Sie können diese neben meinen anderen Kunstwerken in meinem Webalbum <a href="http://picasaweb.google.com/sura1119" target="_blank">picasaweb/sura1119</a> ansehen.</p>
<h3><a href="http://cid-4961f4e8bffc2861.skydrive.live.com/self.aspx/Zip-Dateien%20ab%2010.11.2009/css-blilderrahmen.zip" target="_blank">Download fertige Beispiele (271 KB Zip-Datei)</a></h3>
<h3>1.Einfacher Rahmen mit Hintergrund-Farbe</h3>
<p>Dies ist die einfachste Variante – sieht aber edel aus. Der Rahmen in der Breite von 1px hat ein padding von 5px und eine Hintergrund-Farbe.</p>
<p style="text-align: center;"><a href="http://bencosweb.com/franz/images_with_css_borders/simply_stated.html" target="_blank"><img class="size-full wp-image-8007 aligncenter" title="http://bencosweb.com/franz/images_with_css_borders/simply_stated.html" src="http://www.sura1.at/wordpress/wp-content/uploads/simply_stated.jpg" alt="Einfacher Rahmen mit Hintergrund-Farbe" width="448" height="323" /></a></p>
<p style="text-align: center;">[Fertiges Beispiel ansehen: Grafik anklicken!]</p>
<p><strong>CSS</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#box1</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;">409px</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#efeecb</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#4c3c1b</span><span style="color: #00AA00;">;</span>
      <span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<h3>2. Polaroid-Look</h3>
<p>Wenn Sie möchten, dass Ihre Bilder wie Polaroids aussehen, wenden Sie dieses Beispiel an. Es ist praktisch gleich aufgebaut wie Beispiel 1, es gibt nur folgenden Unterschied: </p>
<p>Passen Sie die CSS-Anweisung padding-bottom individuell an und schon ergibt sich der „Polariod-Look“!</p>
<p style="text-align: center;"><a href="http://bencosweb.com/franz/images_with_css_borders/snapshot.html" target="_blank"><img src="http://www.sura1.at/wordpress/wp-content/uploads/snapshot.jpg" alt="Polaroid Look" title="http://bencosweb.com/franz/images_with_css_borders/snapshot.html" width="362" height="466" class="alignnone size-full wp-image-8010" /></a></p>
<p style="text-align: center;">[Fertiges Beispiel ansehen: Grafik anklicken!]</p>
<p><strong>CSS</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#box1</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;">315px</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#666</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#efeecb</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span> <span style="color: #933;">10px</span> <span style="color: #933;">40px</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
      <span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<h3>3. Art Gallery</h3>
<p>Durch den doppelten Rahmen und die Hintergrund-Farbe sehen die Bilder aus, als würden sie in einer Art Gallery hängen.</p>
<p style="text-align: center;"><a href="http://bencosweb.com/franz/images_with_css_borders/artgallery.html" target="_blank"><img src="http://www.sura1.at/wordpress/wp-content/uploads/artgallery.jpg" alt="Art Gallery" title="http://bencosweb.com/franz/images_with_css_borders/artgallery.html" width="363" height="428" class="alignnone size-full wp-image-8011" /></a></p>
<p style="text-align: center;">[Fertiges Beispiel ansehen: Grafik anklicken!]</p>
<p><strong>CSS</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#box1</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;">325px</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">border-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">double</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#efeecb</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">16px</span><span style="color: #00AA00;">;</span>
      <span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<h3>4. Rahmen Oben und Unten / Linker und rechter Rahmen</h3>
<p>Doppelter Rahmen oben und unten (als Alternative rechts und links). Probieren Sie beide Varianten aus und spielen Sie mit den Rahmenfarben.</p>
<p style="text-align: center;"><a href="http://bencosweb.com/franz/images_with_css_borders/above_and_below.html" target="_blank"><img src="http://www.sura1.at/wordpress/wp-content/uploads/above_and_below.jpg" alt="Rahmen oben und unten" title="http://bencosweb.com/franz/images_with_css_borders/above_and_below.html" width="401" height="620" class="alignnone size-full wp-image-8012" /></a></p>
<p style="text-align: center;">[Fertiges Beispiel ansehen: Grafik anklicken!]</p>
<p><strong>CSS</strong></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
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* --- CSS (Rahmen oben und unten): --- */</span>
<span style="color: #cc00cc;">#box1</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;">350px</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#f8fbf0</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">border-top-width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">4px</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">border-bottom-width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">4px</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">border-top-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">double</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">border-bottom-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">double</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">border-top-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#E1A60A</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">border-bottom-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#E1A60A</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">8px</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
      <span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* --- CSS (Rahmen links und rechts): --- */</span>
<span style="color: #cc00cc;">#box2</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;">350px</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#f8fbf0</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">border-left-width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">4px</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">border-right-width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">4px</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">border-left-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">double</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">border-right-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">double</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">border-left-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#0020ff</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">border-right-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#0020ff</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
      <span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<h3>5. Bilder mit Schatten</h3>
<p>In Beispiel Nummer 5 kommt als Hintergrund die untenstehende Schatten-Grafik [framebox6.jpg] zum Einsatz.</p>
<p style="text-align: center;"><img src="http://www.sura1.at/wordpress/wp-content/uploads/framebox6.jpg" alt="framebox6" title="framebox6" width="256" height="256" class="alignnone size-full wp-image-8013" /></p>
<p>Über bzw. in diese Schattengrafik wird danach das eigentliche Bild eingefügt.</p>
<p style="text-align: center;"><a href="http://bencosweb.com/franz/images_with_css_borders/shadow_with_image.html" target="_blank"><img src="http://www.sura1.at/wordpress/wp-content/uploads/shadow_with_image.jpg" alt="Grafik mit Schattenhintergrund" title="http://bencosweb.com/franz/images_with_css_borders/shadow_with_image.html" width="281" height="277" class="alignnone size-full wp-image-8014" /></a></p>
<p style="text-align: center;">[Fertiges Beispiel ansehen: Grafik anklicken!]</p>
<p><strong>CSS</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#box1</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;">221px</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>verkleinert/framebox6.jpg<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">17px</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#ddd</span><span style="color: #00AA00;">;</span>
      <span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<h3>6. Einsatz einer Hintergrundgrafik</h3>
<p>Statt einer Hintergrundfarbe habe ich in Beispiel Nummer 6 eine Hintergrund-Grafik (bg2.jpg) eingebaut.</p>
<p style="text-align: center;"><a href="http://bencosweb.com/franz/images_with_css_borders/background.html" target="_blank"><img src="http://www.sura1.at/wordpress/wp-content/uploads/background.jpg" alt="Hintergrund-Grafik" title="http://bencosweb.com/franz/images_with_css_borders/background.html" width="462" height="332" class="alignnone size-full wp-image-8015" /></a></p>
<p style="text-align: center;">[Fertiges Beispiel ansehen: Grafik anklicken!]</p>
<p><strong>CSS</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#box1</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;">436px</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">11px</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>verkleinert/bg2.jpg<span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
      <span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<h3><a href="http://cid-4961f4e8bffc2861.skydrive.live.com/self.aspx/Zip-Dateien%20ab%2010.11.2009/css-blilderrahmen.zip" target="_blank">Download fertige Beispiele (271 KB Zip-Datei)</a></h3>
<p>Quelle: <a href="http://stylish-and-co.blogspot.com/2009/12/css-borders.html" target="_blank">{ stylish &amp; co }</a></p>
<blockquote>
<h3>Ähnliche Artikel:</h3>
<p><a href="http://www.sura1.at/wordpress/wie-sie-eine-bildergalerie-nach-nummern-nur-mit-css-erstellen/">Wie Sie eine Bildergalerie nach Nummern nur mit CSS erstellen</a><br />
<a href="http://www.sura1.at/wordpress/wie-sie-einen-animierten-fortschrittsbalken-mit-css-erstellen/">Wie Sie einen animierten Fortschrittsbalken mit CSS erstellen</a><br />
<a href="http://www.sura1.at/wordpress/css-tricks-wie-sie-doppelte-rahmen-fur-bildergrafiken-erstellen-konnen/">CSS-Tricks: Wie Sie doppelte Rahmen für Bilder/Grafiken erstellen können</a><br />
<a href="http://www.sura1.at/wordpress/css-tricks-mit-inner-border-images-rahmen-um-grafiken-von-chris-coyier/">CSS Tricks mit Inner Border Images (Rahmen um Grafiken) von Chris Coyier</a><br />
<a href="http://www.sura1.at/wordpress/zitate-mit-css-gestalten-styling-blockquotes/">Zitate mit CSS gestalten – Styling Blockquotes</a>
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.sura1.at/wordpress/wie-sie-mit-css-schone-bilderrahmen-gestalten-konnen/ /feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wie Sie eine Bildergalerie nach Nummern nur mit CSS erstellen</title>
		<link>http://www.sura1.at/wordpress/wie-sie-eine-bildergalerie-nach-nummern-nur-mit-css-erstellen/ </link>
		<comments>http://www.sura1.at/wordpress/wie-sie-eine-bildergalerie-nach-nummern-nur-mit-css-erstellen/ #comments</comments>
		<pubDate>Thu, 12 Nov 2009 12:49:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Bildergalerie nach Nummern]]></category>
		<category><![CDATA[CSS Only Version]]></category>
		<category><![CDATA[CSSPlay]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Slideshow]]></category>
		<category><![CDATA[Slideshow by numbers]]></category>
		<category><![CDATA[Stu Nicholls]]></category>

		<guid isPermaLink="false">http://www.sura1.at/wordpress/?p=7218</guid>
		<description><![CDATA[Slideshow by numbers &#8211; Slideshow nach Nummern
Ich möchte Ihnen heute ein schönes Beispiel einer tollen Bildergalerie von Stu Nicholls von CSSPlay vorstellen. Diese ist eine &#8216;CSS only version&#8217;, das heißt, dass für die Realsierung der Bildergalerie kein Flash, kein JavaScript oder andere Tricks angewendet wurden, sondern diese alleine mit HTML und CSS realisiert wurde.
Ich habe [...]]]></description>
			<content:encoded><![CDATA[<h3>Slideshow by numbers &#8211; Slideshow nach Nummern</h3>
<p>Ich möchte Ihnen heute ein schönes Beispiel einer tollen Bildergalerie von Stu Nicholls von <a href="http://www.cssplay.co.uk/index" target="_blank">CSSPlay</a> vorstellen. Diese ist eine <strong>&#8216;CSS only version&#8217;</strong>, das heißt, dass für die Realsierung der Bildergalerie kein Flash, kein JavaScript oder andere Tricks angewendet wurden, sondern diese <strong><em>alleine mit HTML und CSS</em></strong> realisiert wurde.</p>
<p>Ich habe die Slideshow nach Nummern mit meinen Kunstwerken (Acrylbildern, Collagen etc.) versehen und möchte Ihnen diese Bearbeitung hier präsentieren. Die CSS-Formatierungen dazu finden Sie im Quelltext meines Beispieles.</p>
<p style="text-align: center;">[Bildergalerie ansehen: Link oder Grafik anklicken!]</p>
<h3 style="text-align: center;"><a href="http://sura1.at/slideshow-by-numbers/index.html" target="_blank">Slideshow by numbers &#8211; Slideshow nach Nummern</a></h3>
<p style="text-align: center;"><a href="http://sura1.at/slideshow-by-numbers/index.html" target="_blank"><img class="size-full wp-image-7219 aligncenter" title="http://sura1.at/slideshow-by-numbers/index.html" src="http://www.sura1.at/wordpress/wp-content/uploads/k-cssplay.jpg" alt="k-cssplay" width="528" height="316" /></a></p>
<p>Original von Stu Nicholls ansehen: <a href="http://www.cssplay.co.uk/menu/numbergallery.html" target="_blank">http://www.cssplay.co.uk/menu/numbergallery.html</a> </p>
<blockquote>
<h3>Stu Nicholls erklärt zu dieser Slideshow in seiner Info folgendes:</h3>
<p>Ich dachte, dass es nett sein würde, eine reine CSS-Version einer Bildergalerie ohne die Verwendung von &#8217;speziellen Effekten&#8217;  wie JavaScript oder Flash zu erzeugen, welche aber ein ähnlich gutes Ergebnis liefern.</p>
<p>Wenn Sie mit der Maus über den dunklen Hintergrund fahren, erscheint eine Reihe von 34 Zahlen. Jede dieser Zahlen steht für ein Bild. Fahren Sie mit der Maus über die verschiedenen Zahlen und Sie sehen die entsprechende Grafik als Thumbnail (Minibild).</p>
<p>Mit einem Klick auf eine Zahl sehen Sie dann das dazugehörige Bild. Um das ganze Bild ohne die Zahlenreihe zu sehen, fahren Sie mit der Maus weg vom dunklen Hintergrund!</p>
<p>Die CSS-Bildergalerie arbeitet ohne Einschränkungen in  IE6, IE7, IE8, Firefox und Opera. Ein kleines Problem besteht jedoch bei den Browsern von Safari (PC) und Google Chrome. In diesen beiden Fällen müssen Sie, um das Bild in voller Größe anschauen zu wollen, die linke Maustaste auf der jeweiligen Nummer gedrückt halten.</p></blockquote>
<blockquote>
<h3>Ähnliche Artikel:</h3>
<p><a href="http://www.sura1.at/wordpress/wie-sie-einen-animierten-fortschrittsbalken-mit-css-erstellen/">Wie Sie einen animierten Fortschrittsbalken mit CSS erstellen</a><br />
<a href="http://www.sura1.at/wordpress/webseiten-uberschriften-mit-css-als-elegante-hingucker/">Webseiten-Überschriften mit CSS als elegante Hingucker</a><br />
<a href="http://www.sura1.at/wordpress/5-beispiele-wie-sie-ungeordnete-listen-formatieren-konnen/">5 Beispiele, wie Sie ungeordnete Listen formatieren können</a><br />
<a href="http://www.sura1.at/wordpress/css-tricks-listen-mit-sonderzeichen/">CSS-Tricks: Listen mit Sonderzeichen</a><br />
<a href="http://www.sura1.at/wordpress/600-kostenlose-css-layouts-600-free-css-layouts/">600+ kostenlose CSS Layouts – 600+ Free CSS Layouts</a>
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.sura1.at/wordpress/wie-sie-eine-bildergalerie-nach-nummern-nur-mit-css-erstellen/ /feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wie Sie einen animierten Fortschrittsbalken mit CSS erstellen</title>
		<link>http://www.sura1.at/wordpress/wie-sie-einen-animierten-fortschrittsbalken-mit-css-erstellen/ </link>
		<comments>http://www.sura1.at/wordpress/wie-sie-einen-animierten-fortschrittsbalken-mit-css-erstellen/ #comments</comments>
		<pubDate>Tue, 10 Nov 2009 14:31:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Alen Grakalic]]></category>
		<category><![CDATA[animated progress bar]]></category>
		<category><![CDATA[Animation]]></category>
		<category><![CDATA[animierter Fortschrittsbalken]]></category>
		<category><![CDATA[CSS Globe]]></category>
		<category><![CDATA[Fortschrittsbalken]]></category>
		<category><![CDATA[Pixelpusher]]></category>
		<category><![CDATA[Progress Bar]]></category>
		<category><![CDATA[Pure CSS Animated Progress Bar]]></category>
		<category><![CDATA[www.cssglobe.com]]></category>
		<category><![CDATA[www.pixelpusher.bi]]></category>

		<guid isPermaLink="false">http://www.sura1.at/wordpress/?p=7145</guid>
		<description><![CDATA[

Pure CSS Animated Progress Bar – Animierter Fortschrittsbalken

Ich möchte Ihnen heute in diesem Beispiel mit einer einfachen Demonstration zeigen, wie Sie einen animierten Fortschrittsbalken (animated progress bar) mit HTML und ein wenig CSS herstellen können.
Der Trick ist sehr einfach. Sie benötigen dazu einleitend 3 HTML-Elemente (1 Container und 2 ineinander verschachtelte Elemente).

Beispiel ansehen / Download [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="size-full wp-image-7146 aligncenter" title="progress-bar" src="http://www.sura1.at/wordpress/wp-content/uploads/progress-bar.jpg" alt="progress-bar" width="580" height="68" /></p>
<blockquote>
<h3>Pure CSS Animated Progress Bar – Animierter Fortschrittsbalken</h3>
</blockquote>
<p>Ich möchte Ihnen heute in diesem Beispiel mit einer einfachen Demonstration zeigen, wie Sie einen animierten Fortschrittsbalken (animated progress bar) mit HTML und ein wenig CSS herstellen können.</p>
<p>Der Trick ist sehr einfach. Sie benötigen dazu einleitend 3 HTML-Elemente (1 Container und 2 ineinander verschachtelte Elemente).</p>
<blockquote>
<h3 style="text-align: center;"><a href="http://sura1.at/progress-bar/index.html" target="_blank">Beispiel ansehen</a> / <a href="http://cid-4961f4e8bffc2861.skydrive.live.com/self.aspx/Zip-Dateien%20ab%2010.11.2009/progress%5E_bar.zip" target="_blank">Download Beispieldateien (17,5 KB Zip-File)</a></h3>
</blockquote>
<h2>Das Konzept</h2>
<h3>Punkt 1:</h3>
<p>Zuerst legen wir eine Hintergrund-Grafik (bg_bar.gif) in den Container (Definitionsliste <span style="color: #ff6600;"><code>dd</code></span> bzw. Blockelement <span style="color: #ff6600;"><code>p</code></span>) und definieren eine fixe Höhe und eine fixe Breite.</p>
<p><img class="alignnone size-full wp-image-7164" title="bg_bar" src="http://www.sura1.at/wordpress/wp-content/uploads/bg_bar.gif" alt="bg_bar" width="300" height="60" /></p>
<h3>Punkt 2:</h3>
<p>Das HTML-Element <span style="color: #ff6600;"><code>span</code></span> (First Child) fungiert als animierter Fortschrittsbalken (bar.gif).</p>
<p><img class="alignnone size-full wp-image-7165" title="bar" src="http://www.sura1.at/wordpress/wp-content/uploads/bar.gif" alt="bar" width="300" height="60" /></p>
<h3>Punkt 3:</h3>
<p>Das HTML-Element <span style="color: #ff6600;"><code>em</code></span> (Second Child) mit der Grafik bg_cover.gif wird danach mit der CSS-Eigenschaft <span style="color: #ff6600;"><code>position: absolute</code></span> genau über der Progress Bar platziert.</p>
<p><strong>Ganz wichtig:</strong> Im HTML-Element <code>em</code> wird die Breite des Fortschrittbalkens mit einem Inline-Style festgelegt.</p>
<p>Inline-Styles bieten Ihnen die Möglichkeit, die CSS-Formatierungen ohne die herkömmlichen Selektoren direkt am HTML-Element selbst anzubringen. Sie sind am besten geeignet zur individuellen Formatierung einzelner Elemente.</p>
<p>Dadurch und durch den CSS-Befehl <span style="color: #ff6600;"><code>repeat-x</code></span> entsteht erst der Effekt des Fortschrittsbalken, welcher bei einem bestimmten Prozentsatz stehen bleibt.</p>
<p><img class="alignnone size-full wp-image-7166" title="bg_cover" src="http://www.sura1.at/wordpress/wp-content/uploads/bg_cover.gif" alt="bg_cover" width="300" height="60" /></p>
<h3>Punkt 4:</h3>
<p>Fertige Progress Bar (Grafik mit Erläuterungen)</p>
<p><img class="alignnone size-full wp-image-7167" title="grafik" src="http://www.sura1.at/wordpress/wp-content/uploads/grafik.png" alt="grafik" width="320" height="150" /></p>
<h3>Punkt 5:</h3>
<p>In meinem Beispiel sehen Sie den Effekt des Fortschrittsbalkens in 2 verschiedenen Variationen:</p>
<blockquote>
<h3>1. Fortschrittsbalken &#8211; Progress Bar in einer Definitionsliste (dd):</h3>
</blockquote>
<p>HTML:</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
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">&lt;dl<span style="color: #00AA00;">&gt;</span>
&lt;dt<span style="color: #00AA00;">&gt;</span>Marktanteil <span style="color: #933;"><span style="color: #cc66cc;">90</span>%</span>&lt;/dt<span style="color: #00AA00;">&gt;</span>
&lt;dd<span style="color: #00AA00;">&gt;</span>
&lt;em style<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;left: 180px;&quot;</span><span style="color: #00AA00;">&gt;</span><span style="color: #933;"><span style="color: #cc66cc;">90</span>%</span>&lt;/em<span style="color: #00AA00;">&gt;</span>
&lt;/dd<span style="color: #00AA00;">&gt;</span>
&lt;dt<span style="color: #00AA00;">&gt;</span>Toleranzgrenze <span style="color: #933;"><span style="color: #cc66cc;">10</span>%</span>&lt;/dt<span style="color: #00AA00;">&gt;</span>
&lt;dd<span style="color: #00AA00;">&gt;</span>
&lt;em style<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;left: 20px;&quot;</span><span style="color: #00AA00;">&gt;</span><span style="color: #933;"><span style="color: #cc66cc;">10</span>%</span>&lt;/em<span style="color: #00AA00;">&gt;</span>
&lt;/dd<span style="color: #00AA00;">&gt;</span>
&lt;dt<span style="color: #00AA00;">&gt;</span>Bekanntheitsgrad <span style="color: #933;"><span style="color: #cc66cc;">50</span>%</span>&lt;/dt<span style="color: #00AA00;">&gt;</span>
&lt;dd<span style="color: #00AA00;">&gt;</span>
&lt;em style<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;left: 100px;&quot;</span><span style="color: #00AA00;">&gt;</span><span style="color: #933;"><span style="color: #cc66cc;">50</span>%</span>&lt;/em<span style="color: #00AA00;">&gt;</span>
&lt;/dd<span style="color: #00AA00;">&gt;</span>
&lt;/dl<span style="color: #00AA00;">&gt;</span></pre></td></tr></table></div>

<p>CSS:</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
36
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* DEFINITION LIST PROGRESS BAR */</span>
&nbsp;
dt<span style="color: #00AA00;">,</span> dd <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>
dl <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</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;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
     <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">230px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
dd <span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">216px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">41px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">bg_bar.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</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>
dd 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;">absolute</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</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;">25px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">bar.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span><span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span><span style="color: #933;">-8000px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
dd em <span style="color: #00AA00;">&#123;</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: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</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;">25px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">bg_cover.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat-x</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<blockquote>
<h3>2. Fortschrittsbalken innerhalb des Block-Elementes p:</h3>
</blockquote>
<p>HTML:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">&lt;p class<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;progressBar&quot;</span><span style="color: #00AA00;">&gt;</span>
&lt;em style<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;left: 50px;&quot;</span><span style="color: #00AA00;">&gt;</span><span style="color: #933;"><span style="color: #cc66cc;">25</span>%</span>&lt;/em<span style="color: #00AA00;">&gt;</span>
&lt;/p<span style="color: #00AA00;">&gt;</span></pre></td></tr></table></div>

<p>CSS:</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
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* SINGLE PROGRESS BAR */</span>
&nbsp;
<span style="color: #6666ff;">.progressBar</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;">216px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">41px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">bg_bar.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</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>
<span style="color: #6666ff;">.progressBar</span> 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;">absolute</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</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;">25px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">bar.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span><span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span><span style="color: #933;">-8000px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.progressBar</span> em <span style="color: #00AA00;">&#123;</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: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</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;">25px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">bg_cover.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat-x</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<h3>Punkt 6:</h3>
<p><strong>Animation</strong></p>
<p>Warum funktioniert dies nun also? Natürlich nur, weil hier eine animierte Grafik (bar.gif) zur Anwendung kommt. Das HTML-Element <span style="color: #ff6600;"><code>span</code></span> besitzt eine 200px breite Hintergrund-Grafik, welche sozusagen von „Null“ bis 200px verläuft (animiert). Im HTML-Element <span style="color: #ff6600;"><code>em</code></span> wird danach die Breite der Animation durch einen Inline-Style (left …. px) eingestellt.</p>
<p><strong>Ergebnis</strong></p>
<p>Es ist völlig egal, welchen Prozentsatz Sie auch einstellen, die Grafik bleibt genau bei Ihrer eingestellten Zahl stehen</p>
<p><img class="alignnone size-full wp-image-7170" title="progressbar2" src="http://www.sura1.at/wordpress/wp-content/uploads/progressbar2.png" alt="progressbar2" width="433" height="116" /></p>
<h3>Punkt 7:</h3>
<p><strong>HTML-Element EM: Einstellung der Breite</strong></p>
<p>In meinem Beispiel verwende ich eine 200px breite Progress Bar. Das HTML-Element <span style="color: #ff6600;"><code>em</code></span> hat also auch eine Breite von 200px. Jedes Prozent ist hier dementsprechend 2px breit. 50% bedeutet also 100px, 35% wäre 70px, 90% sind demnach 180px und so weiter.</p>
<blockquote><h3 style="text-align: center;"><a href="http://sura1.at/progress-bar/index.html" target="_blank">Beispiel ansehen</a> / <a href="http://cid-4961f4e8bffc2861.skydrive.live.com/self.aspx/Zip-Dateien%20ab%2010.11.2009/progress%5E_bar.zip" target="_blank">Download Beispieldateien (17,5 KB Zip-File)</a></h3>
</blockquote>
<blockquote><h2>Zum Original-Artikel:</h2>
<h3><a href="http://cssglobe.com/post/1468/pure-css-animated-progress-bar" target="_blank">http://cssglobe.com/post/1468/pure-css-animated-progress-bar</a></h3>
<p>Mein Artikel ist eine autorisierte Bearbeitung bzw. Übersetzung des Artikels von Alen Grakalic von <a href="http://cssglobe.com/" target="_blank">CSS Globe | Web Standard Magazine</a>. Das Original hat den Titel <a href="http://cssglobe.com/post/1468/pure-css-animated-progress-bar" target="_blank">Pure CSS Animated Progress Bar</a> und wurde vom Webdesigner am 27. März 2008 veröffentlicht.</p>
<h3>Nähere Informationen zum Autor:</h3>
<p><a href="http://cssglobe.com/about.asp" target="_blank">About CSS Globe</a><br />
<a href="http://www.pixelpusher.biz/about/" target="_blank">Pixelpusher</a></p>
<p>Alen Grakalic lives in Rijeka, Croatia. He is a freelance web designer and web developer. He is 33 years old and married (wife Natasa and 3 years old son Erik).</p></blockquote>
<blockquote>
<h3>Ähnliche Artikel:</h3>
<p><a href="http://www.sura1.at/wordpress/csshtml-tricks-float-mit-mehreren-div-boxen/">CSS/HTML-Tricks: Float mit mehreren div-Boxen</a><br />
<a href="http://www.sura1.at/wordpress/csshtml-tricks-unterschied-zwischen-relativer-und-absoluter-positionierung/">CSS/HTML-Tricks: Unterschied zwischen relativer und absoluter Positionierung</a><br />
<a href="http://www.sura1.at/wordpress/csshtml-tricks-der-normale-fluss-flow-von-3-div-boxen/">CSS/HTML-Tricks: Der normale Fluss (Flow) von 3 div-Boxen</a><br />
<a href="http://www.sura1.at/wordpress/css-tricks-wie-sie-doppelte-rahmen-fur-bildergrafiken-erstellen-konnen/">CSS-Tricks: Wie Sie doppelte Rahmen für Bilder/Grafiken erstellen können</a><br />
<a href="http://www.sura1.at/wordpress/css-tricks-bereits-besuchte-links-mit-sogenannten-checkmarks-extra-kennzeichnen/">CSS-Tricks: Bereits besuchte Links mit sogenannten Checkmarks extra kennzeichnen</a><br />
<a href="http://www.sura1.at/wordpress/css-tricks-listen-mit-sonderzeichen/">CSS-Tricks: Listen mit Sonderzeichen</a>
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.sura1.at/wordpress/wie-sie-einen-animierten-fortschrittsbalken-mit-css-erstellen/ /feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS/HTML-Tricks: Float mit mehreren &lt;div&gt;-Boxen</title>
		<link>http://www.sura1.at/wordpress/csshtml-tricks-float-mit-mehreren-div-boxen/ </link>
		<comments>http://www.sura1.at/wordpress/csshtml-tricks-float-mit-mehreren-div-boxen/ #comments</comments>
		<pubDate>Tue, 03 Nov 2009 20:13:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS Eigenschaft: float]]></category>
		<category><![CDATA[CSS/HTML-Tricks]]></category>
		<category><![CDATA[div-Boxen]]></category>
		<category><![CDATA[Dozent Peter Müller]]></category>
		<category><![CDATA[Float Praxis]]></category>
		<category><![CDATA[Float-Theorie]]></category>
		<category><![CDATA[Float-Tutorials]]></category>
		<category><![CDATA[float:left;]]></category>
		<category><![CDATA[float:right; schwebende Boxen]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Webseiten gestalten]]></category>
		<category><![CDATA[www.little-boxes.de]]></category>

		<guid isPermaLink="false">http://www.sura1.at/wordpress/?p=7018</guid>
		<description><![CDATA[
Einleitung
Das klassische Einsatzgebiet für die CSS-Anweisung float ist die Positionierung von Grafiken in einem Fließtext.
Lesen Sie dazu die genauen Erläuterungen in Little-Boxes 1 online.
„To Float“ heißt «schweben» &#8211; und eine schwebende Box macht 3 Bewegungen: Sie erhebt sich aus dem normalen Fluss, schwebt wie ein losgelassener Heißluftballon in der umgebenden Kiste auf der einen Seite [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="size-full wp-image-7019 aligncenter" title="float" src="http://www.sura1.at/wordpress/wp-content/uploads/float.jpg" alt="float" width="580" height="68" /></p>
<h3 style="text-align: center;">Einleitung</h3>
<p>Das klassische Einsatzgebiet für die CSS-Anweisung <span style="color: #ff6600;"><code>float</code></span> ist die Positionierung von Grafiken in einem Fließtext.<br />
Lesen Sie dazu die genauen Erläuterungen in <a href="http://little-boxes.de/lb1/13.1-text-um-bilder-fliessen-lassen.html" target="_blank">Little-Boxes 1 online</a>.</p>
<p>„To Float“ heißt «schweben» &#8211; und eine schwebende Box macht 3 Bewegungen: Sie erhebt sich aus dem normalen Fluss, schwebt wie ein losgelassener Heißluftballon in der umgebenden Kiste auf der einen Seite nach oben und driftet dann je nach Windrichtung so weit es geht auf die andere Seite (Zitat: <a href="http://little-boxes.de/lb1/13-float-schwebende-boxen.html" target="_blank">Little Boxes – Teil 1</a>)</p>
<blockquote>
<h3 style="text-align: center;">Webseiten zur Float-Theorie in CSS:</h3>
<p>Auf den unten angeführten 7 Webseiten finden Sie ausführliche Anleitungen,  Erklärungen und Beschreibungen über die CSS-Eigenschaft <span style="color: #ff6600;"><code>float</code></span>.</p>
<p><a href="http://little-boxes.de/lb1/13-float-schwebende-boxen.html" target="_blank">http://little-boxes.de/lb1/13-float-schwebende-boxen.html</a><br />
<a href="http://little-boxes.de/lb1/13.4-floats-mit-mehreren-boxen.html" target="_blank">http://little-boxes.de/lb1/13.4-floats-mit-mehreren-boxen.html</a><br />
<a href="http://www.thestyleworks.de/tut-art/layout_div_2.shtml" target="_blank">http://www.thestyleworks.de/tut-art/layout_div_2.shtml</a><br />
<a href="http://jendryschik.de/wsdev/einfuehrung/eigenschaften/ausrichtung-und-elementfluss" target="_blank">http://jendryschik.de/wsdev/einfuehrung/eigenschaften/ausrichtung-und-elementfluss</a></p>
<p><a href="http://css.maxdesign.com.au/floatutorial/" target="_blank">http://css.maxdesign.com.au/floatutorial/</a><br />
<a href="http://www.smashingmagazine.com/2009/10/05/mastering-css-coding-getting-started/#CSS-Basics2" target="_blank">http://www.smashingmagazine.com/2009/10/05/mastering-css-coding-getting-started/#CSS-Basics2</a><br />
<a href="http://www.w3schools.com/CSS/css_float.asp" target="_blank">http://www.w3schools.com/CSS/css_float.asp</a></p></blockquote>
<h3 style="text-align: center;">Floats mit mehreren Boxen</h3>
<p>Auf der Grundlage des Artikels <a href="http://little-boxes.de/lb1/13.1-text-um-bilder-fliessen-lassen.html" target="_blank">Little-Boxes 1 online &#8211; 13.1 Text um Bilder fließen lassen</a> von Dozent Peter Müller möchte ich mit ein paar einfachen Beispielen erklären, wie Sie die Float-Theorie in die Praxis umsetzen können. Sie werden danach das manchmal etwas seltsame Verhalten von Floats besser verstehen können.</p>
<h3 style="text-align: center;">3 Boxen ohne Float</h3>
<p>Die Grundlage für die folgenden Beispiele bilden drei einfache, nicht gefloatete div-Boxen.</p>
<p>HTML:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">&lt;body<span style="color: #00AA00;">&gt;</span>
&lt;div id<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;eins&quot;</span><span style="color: #00AA00;">&gt;</span>Box <span style="color: #cc66cc;">1</span>&lt;/div<span style="color: #00AA00;">&gt;</span>
&lt;div id<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;zwei&quot;</span><span style="color: #00AA00;">&gt;</span>Box <span style="color: #cc66cc;">2</span>&lt;/div<span style="color: #00AA00;">&gt;</span>
&lt;div id<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;drei&quot;</span><span style="color: #00AA00;">&gt;</span>Box <span style="color: #cc66cc;">3</span>&lt;/div<span style="color: #00AA00;">&gt;</span>
&lt;/body<span style="color: #00AA00;">&gt;</span></pre></td></tr></table></div>

<p>CSS:</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
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">body <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">black</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">gray</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: #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: #00AA00;">&#125;</span>
div <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span><span style="color: #00AA00;">;</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;">50px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #000000; font-weight: bold;">black</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#eins</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: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#zwei</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: #cc00cc;">#ddd</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#drei</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: #cc00cc;">#aaa</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Die 3 div-Boxen haben verschiedene Hintergrundfarben, eine fixe Breite und eine vorgegebene Höhe und sehen so aus:</p>
<p style="text-align: center;"><a href="http://bencosweb.com/franz/02_float-3-boxes/01_3boxes_nofloat.html" target="_blank"><img class="size-full wp-image-7025 aligncenter" title="http://bencosweb.com/franz/02_float-3-boxes/01_3boxes_nofloat.html" src="http://www.sura1.at/wordpress/wp-content/uploads/3boxes_nofloat.jpg" alt="3boxes_nofloat" width="448" height="250" /></a></p>
<p style="text-align: center;"><a href="http://bencosweb.com/franz/02_float-3-boxes/01_3boxes_nofloat.html" target="_blank"><img class="size-full wp-image-7026 aligncenter" title="http://bencosweb.com/franz/02_float-3-boxes/01_3boxes_nofloat.html" src="http://www.sura1.at/wordpress/wp-content/uploads/demo2.jpg" alt="demo" width="152" height="38" /></a></p>
<blockquote><p><strong>Wichtig:</strong></p>
<p>Gefloatete Boxen müssen immer eine mit <span style="color: #ff6600;"><code>width</code></span> fix definierte Breite haben. Ohne diese Angabe wird die Breite von div-Boxen unberechenbar. Bei Grafiken ist <span style="color: #ff6600;"><code>width</code></span> nicht nötig, weil sie eine feste Breite haben, bei allen anderen gefloateten Elementen gilt die Faustregel: floaten immer mit der CSS-Anweisung <span style="color: #ff6600;"><code>width</code></span>.</p></blockquote>
<h3 style="text-align: center;">Übung 1: 3 Boxen nach links floaten</h3>
<p>In der ersten Übung werden alle 3 Boxen nach links gefloatet. Das CSS wird dafür nur an einer Stelle geändert &#8211; die CSS-Formatierung <span style="color: #ff6600;"><code>float: left</code></span> wird hinzugefügt.</p>
<p>CSS:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">div <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span><span style="color: #00AA00;">;</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;">50px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #000000; font-weight: bold;">black</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Im Browser stehen die 3 Boxen jetzt nebeneinander und beginnen auf der linken Seite.</p>
<p style="text-align: center;"><a href="http://bencosweb.com/franz/02_float-3-boxes/02_3boxes_float-left.html" target="_blank"><img class="alignnone size-full wp-image-7037" title="http://bencosweb.com/franz/02_float-3-boxes/02_3boxes_float-left.html" src="http://www.sura1.at/wordpress/wp-content/uploads/3boxes_floatleft.jpg" alt="3boxes_floatleft" width="448" height="250" /></a></p>
<p style="text-align: center;"><a href="http://bencosweb.com/franz/02_float-3-boxes/02_3boxes_float-left.html" target="_blank"><img class="size-full wp-image-7026 aligncenter" title="http://bencosweb.com/franz/02_float-3-boxes/02_3boxes_float-left.html" src="http://www.sura1.at/wordpress/wp-content/uploads/demo2.jpg" alt="demo" width="152" height="38" /></a></p>
<blockquote><p><strong>Ergebnis Übung 1:</strong></p>
<p>Die erste div-Box schwebt an der <em>rechten</em> Seite der umgebenden Box (hier: <span style="color: #ff6600;"><code>body</code></span>) so weit es geht nach oben und schwebt dann so weit es geht nach <em>links</em> rüber. Jede folgende Box macht genau dasselbe, bis die 3 Boxen nebeneinander stehen.</p></blockquote>
<h3 style="text-align: center;">Übung 2: 3 Boxen nach rechts floaten</h3>
<p>In der zweiten Übung floaten Sie die 3 Boxen nach rechts. Dazu müssen Sie im CSS nur ein einzigen Wort ändern &#8211; statt <span style="color: #ff6600;"><code>float: left</code></span> steht nun <span style="color: #ff6600;"><code>float: right</code></span>.</p>
<p>CSS:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">div <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span><span style="color: #00AA00;">;</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;">50px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #000000; font-weight: bold;">black</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Auch hier stehen die 3 Boxen auch nebeneinander, die Reihenfolge ist jedoch geändert und beginnt auf der rechten Seite im Browser.</p>
<p style="text-align: center;"><a href="http://bencosweb.com/franz/02_float-3-boxes/03_3boxes_float-right.html" target="_blank"><img class="alignnone size-full wp-image-7038" title="http://bencosweb.com/franz/02_float-3-boxes/03_3boxes_float-right.html" src="http://www.sura1.at/wordpress/wp-content/uploads/3boxes_floatright.jpg" alt="3boxes_floatright" width="448" height="250" /></a></p>
<p style="text-align: center;"><a href="http://bencosweb.com/franz/02_float-3-boxes/03_3boxes_float-right.html" target="_blank"><img class="size-full wp-image-7026 aligncenter" title="http://bencosweb.com/franz/02_float-3-boxes/03_3boxes_float-right.html" src="http://www.sura1.at/wordpress/wp-content/uploads/demo2.jpg" alt="demo" width="152" height="38" /></a></p>
<blockquote><p><strong>Ergebnis Übung 2:</strong></p>
<p>Box 1 ist ganz rechts angeordnet, links daneben steht Box 2 und noch weiter links folgt Box 3. Dies kommt daher, dass Box 1 an der linken Seite des umgebenden Elementes ganz nach oben schwebt und dann soweit wie möglich nach rechts rüber schwebt; die anderen Boxen machen genau dasselbe.</p></blockquote>
<h3 style="text-align: center;">Übung 3: Float und zu wenig Platz im Browserfenster</h3>
<p>Sollte eine gefloatete Box im  Browserfenster zu wenig Platz finden, springt sie automatisch eine Zeile tiefer. Die folgenden Grafik zeigt die 3 nach links gefloateten Boxen in einem verkleinerten Browserfenster.</p>
<p style="text-align: center;"><a href="http://bencosweb.com/franz/02_float-3-boxes/04_3boxes_float-drop.html" target="_blank"><img class="alignnone size-full wp-image-7040" title="http://bencosweb.com/franz/02_float-3-boxes/04_3boxes_float-drop.html" src="http://www.sura1.at/wordpress/wp-content/uploads/3boxes_float_zuwenigplatz1.jpg" alt="3boxes_float_zuwenigplatz" width="448" height="328" /></a></p>
<p style="text-align: center;"><a href="http://bencosweb.com/franz/02_float-3-boxes/04_3boxes_float-drop.html" target="_blank"><img class="size-full wp-image-7026 aligncenter" title="http://bencosweb.com/franz/02_float-3-boxes/04_3boxes_float-drop.html" src="http://www.sura1.at/wordpress/wp-content/uploads/demo2.jpg" alt="demo" width="152" height="38" /></a></p>
<blockquote><p><strong>Ergebnis Übung 3:</strong></p>
<p>Verkleinern Sie bitte das Browserfenster so weit, bis Box 3 eine Zeile tiefer springt. Wenn Sie das Fenster noch mehr verkleinern, wird  Box 2 dies auch tun.</p></blockquote>
<h3 style="text-align: center;">Übung 4: Float und verschieden hohe Boxen</h3>
<p>Wenn gefloatete Boxen verschiedene Höhen haben, kann es vorkommen, dass einige Boxen an anderen hängen bleiben. Für das Beispiel habe ich die Höhe von Box 1 auf <span style="color: #ff6600;"><code>height: 75px</code></span> erhöht.</p>
<p>CSS:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">div <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span><span style="color: #00AA00;">;</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;">75px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #000000; font-weight: bold;">black</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Bei zu kleinem Browserfenster schwebt Box 3 nicht an den linken Rand, sondern bleibt an Box 1 hängen.</p>
<p style="text-align: center;"><a href="http://bencosweb.com/franz/02_float-3-boxes/05_3boxes_float-stuck.html" target="_blank"><img class="alignnone size-full wp-image-7041" title="http://bencosweb.com/franz/02_float-3-boxes/05_3boxes_float-stuck.html" src="http://www.sura1.at/wordpress/wp-content/uploads/3boxes_float_verschiedenhoheBoxen.jpg" alt="3boxes_float_verschiedenhoheBoxen" width="448" height="328" /></a></p>
<p style="text-align: center;"><a href="http://bencosweb.com/franz/02_float-3-boxes/05_3boxes_float-stuck.html" target="_blank"><img class="size-full wp-image-7026 aligncenter" title="http://bencosweb.com/franz/02_float-3-boxes/05_3boxes_float-stuck.html" src="http://www.sura1.at/wordpress/wp-content/uploads/demo2.jpg" alt="demo" width="152" height="38" /></a></p>
<blockquote><p><strong>Ergebnis Übung 4:</strong></p>
<p>Um den Effekt sehen zu können, verkleinern Sie das Browserfenster, bis Box 3 an Box 1 hängen bleibt.</p></blockquote>
<h3 style="text-align: center;">Beispieldateien herunterladen (2,9KB &#8211; Zip-Datei)</h3>
<p style="text-align: center;"><a href="http://cid-4961f4e8bffc2861.skydrive.live.com/self.aspx/%C3%96ffentlich/02|_float-3-boxes.zip" target="_blank"><img src="http://www.sura1.at/wordpress/wp-content/uploads/download2.jpg" alt="download" title="http://cid-4961f4e8bffc2861.skydrive.live.com/self.aspx/%C3%96ffentlich/02|_float-3-boxes.zip" width="132" height="33" class="alignnone size-full wp-image-7044" /></a></p>
<p><strong>Quellnachweis:</strong></p>
<p>Little Boxes -Teil 1</p>
<p><img src="http://www.sura1.at/wordpress/wp-content/uploads/littleboxes_teil.jpg" alt="littleboxes_teil" title="littleboxes_teil" width="89" height="127" class="alignnone size-full wp-image-6845" /></p>
<p>Webseiten gestalten mit CSS. Grundlagen.<br />
Markt + Technik / 2007 / Dozent Peter Müller</p>
<p><a href="http://little-boxes.de/" target="_blank">www.little-boxes.de</a> (Peter Müller )<br />
<a href="http://little-boxes.de/downloads/beispieldateien.html#beispieldateien" target="_blank">http://little-boxes.de/downloads/beispieldateien.html#beispieldateien</a>  (Beispieldateien) </p>
<blockquote>
<h3>Ähnliche Artikel:</h3>
<p><a href="http://www.sura1.at/wordpress/csshtml-tricks-unterschied-zwischen-relativer-und-absoluter-positionierung/">CSS/HTML-Tricks: Unterschied zwischen relativer und absoluter Positionierung</a><br />
<a href="http://www.sura1.at/wordpress/csshtml-tricks-der-normale-fluss-flow-von-3-div-boxen/">CSS/HTML-Tricks: Der normale Fluss (Flow) von 3 div-Boxen</a><br />
<a href="http://www.sura1.at/wordpress/css-tricks-bereits-besuchte-links-mit-sogenannten-checkmarks-extra-kennzeichnen/">CSS-Tricks: Bereits besuchte Links mit sogenannten Checkmarks extra kennzeichnen</a><br />
<a href="http://www.sura1.at/wordpress/css-tricks-listen-mit-grafischen-aufzahlungszeichen/">CSS-Tricks: Listen mit grafischen Aufzählungszeichen</a><br />
<a href="http://www.sura1.at/wordpress/5-beispiele-wie-sie-ungeordnete-listen-formatieren-konnen/">5 Beispiele, wie Sie ungeordnete Listen formatieren können</a>
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.sura1.at/wordpress/csshtml-tricks-float-mit-mehreren-div-boxen/ /feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS/HTML-Tricks: Unterschied zwischen relativer und absoluter Positionierung</title>
		<link>http://www.sura1.at/wordpress/csshtml-tricks-unterschied-zwischen-relativer-und-absoluter-positionierung/ </link>
		<comments>http://www.sura1.at/wordpress/csshtml-tricks-unterschied-zwischen-relativer-und-absoluter-positionierung/ #comments</comments>
		<pubDate>Thu, 29 Oct 2009 20:52:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[absolute Positionierung]]></category>
		<category><![CDATA[bottom]]></category>
		<category><![CDATA[CSS Grundlagen]]></category>
		<category><![CDATA[CSS-Positionierung]]></category>
		<category><![CDATA[HTML Grundlagen]]></category>
		<category><![CDATA[left]]></category>
		<category><![CDATA[Little Boxes]]></category>
		<category><![CDATA[position:absolute]]></category>
		<category><![CDATA[position:relative]]></category>
		<category><![CDATA[relative Positionierung]]></category>
		<category><![CDATA[right]]></category>
		<category><![CDATA[top]]></category>
		<category><![CDATA[www.little-boxes.de]]></category>

		<guid isPermaLink="false">http://www.sura1.at/wordpress/?p=6910</guid>
		<description><![CDATA[
Basierend auf meinem Artikel CSS/HTML-Tricks: Der normale Fluss (Flow) von 3 div-Boxen vom 24. Oktober 2009 möchte ich Ihnen heute in der Reihe CSS/HTML-Tricks den Unterschied zwischen relativer und absoluter Positionierung erklären.
Die Grundlage zu meinen nachfolgenden Erläuterungen bilden die 3 verkürzten Boxen im Fluss aus dem Beispiel vom 24.10.2009.
3 verkürzte Boxen im Fluss
Der Quellcode bzw. [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-6911" title="relative-absolute" src="http://www.sura1.at/wordpress/wp-content/uploads/relative-absolute.jpg" alt="relative-absolute" width="580" height="68" /></p>
<p>Basierend auf meinem Artikel <a href="http://www.sura1.at/wordpress/2009/10/24/csshtml-tricks-der-normale-fluss-flow-von-3-div-boxen/" target="_blank">CSS/HTML-Tricks: Der normale Fluss (Flow) von 3 div-Boxen vom 24. Oktober 2009</a> möchte ich Ihnen heute in der Reihe <strong>CSS/HTML-Tricks</strong> den Unterschied zwischen <em>relativer</em> und <em>absoluter</em> Positionierung erklären.</p>
<p>Die Grundlage zu meinen nachfolgenden Erläuterungen bilden die <em>3 verkürzten Boxen im Fluss</em> aus dem Beispiel vom 24.10.2009.</p>
<h3>3 verkürzte Boxen im Fluss</h3>
<p>Der Quellcode bzw. die CSS-Formatierung sieht dazu wie folgt aus:</p>
<p>HTML-Quellcode:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">&lt;body<span style="color: #00AA00;">&gt;</span>
&lt;div<span style="color: #00AA00;">&gt;</span>Box <span style="color: #cc66cc;">1</span>&lt;/div<span style="color: #00AA00;">&gt;</span>
&lt;div<span style="color: #00AA00;">&gt;</span>Box <span style="color: #cc66cc;">2</span>&lt;/div<span style="color: #00AA00;">&gt;</span>
&lt;div<span style="color: #00AA00;">&gt;</span>Box <span style="color: #cc66cc;">3</span>&lt;/div<span style="color: #00AA00;">&gt;</span>
&lt;/body<span style="color: #00AA00;">&gt;</span></pre></td></tr></table></div>

<p>CSS:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">body <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">black</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">gray</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: #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: #00AA00;">&#125;</span>
div  <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;">white</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #000000; font-weight: bold;">black</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p style="text-align: center;">[Beispiel ansehen: Grafik oder Demo-Button anklicken!]</p>
<p style="text-align: center;"><a href="http://bencosweb.com/franz/01_flow/flow_width.html" target="_blank"><img class="size-full wp-image-6912 aligncenter" title="http://bencosweb.com/franz/01_flow/flow_width.html" src="http://www.sura1.at/wordpress/wp-content/uploads/flow201.jpg" alt="flow20" width="462" height="312" /></a></p>
<p style="text-align: center;"><a href="http://bencosweb.com/franz/01_flow/flow_width.html" target="_blank"><img class="size-full wp-image-6913 aligncenter" title="http://bencosweb.com/franz/01_flow/flow_width.html" src="http://www.sura1.at/wordpress/wp-content/uploads/demo1.jpg" alt="demo" width="152" height="38" /></a></p>
<blockquote>
<h3 style="text-align: center;">Unterschied zwischen absoluter und relativer Positionierung</h3>
<p>Die Eigenschaft <span style="color: #ff6600;"><code>position</code></span> legt fest, auf welche Art und Weise die Position einer Box berechnet wird.</p></blockquote>
<blockquote>
<h3 style="text-align: center;">Relative Positionierung: relative</h3>
</blockquote>
<p>Die relative Positionierung mit <span style="color: #ff6600;"><code>position: relative;</code></span> macht 2 Dinge:</p>
<p>• Sie verschiebt die Box von ihrer normalen Position im Fluss.<br />
• Sie markiert den ursprünglichen Platz des Elementes als geschützt</p>
<p>Die anderen Elemente im Dokument verhalten sich so, als ob das Element noch an seinem ursprünglichen Platz im normalen Fluss steht.</p>
<p>HTML und CSS werden für dieses Beispiel ein klein wenig geändert:</p>
<p>HTML-Code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">&lt;body<span style="color: #00AA00;">&gt;</span>
&lt;div id<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;anders&quot;</span><span style="color: #00AA00;">&gt;</span>Box <span style="color: #cc66cc;">1</span>&lt;/div<span style="color: #00AA00;">&gt;</span>
&lt;div<span style="color: #00AA00;">&gt;</span>Box <span style="color: #cc66cc;">2</span>&lt;/div<span style="color: #00AA00;">&gt;</span>
&lt;div<span style="color: #00AA00;">&gt;</span>Box <span style="color: #cc66cc;">3</span>&lt;/div<span style="color: #00AA00;">&gt;</span>
&lt;/body<span style="color: #00AA00;">&gt;</span></pre></td></tr></table></div>

<p>CSS:</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
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">body <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">black</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">gray</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: #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: #00AA00;">&#125;</span>
div  <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;">white</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #000000; font-weight: bold;">black</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#anders</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: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">25px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">25px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#f3c600</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p style="text-align: center;">[Beispiel ansehen: Grafik oder Demo-Button anklicken!]</p>
<p style="text-align: center;"><a href="http://bencosweb.com/franz/css_relative/position_relative.html" target="_blank"><img class="alignnone size-full wp-image-6922" title="http://bencosweb.com/franz/css_relative/position_relative.html" src="http://www.sura1.at/wordpress/wp-content/uploads/positionierung_relative.jpg" alt="positionierung_relative" width="468" height="350" /></a></p>
<p style="text-align: center;"><a href="http://bencosweb.com/franz/css_relative/position_relative.html" target="_blank"><img class="size-full wp-image-6913 aligncenter" title="http://bencosweb.com/franz/css_relative/position_relative.html" src="http://www.sura1.at/wordpress/wp-content/uploads/demo1.jpg" alt="demo" width="152" height="38" /></a></p>
<p>Die Boxen 2 und 3 verändern sich also überhaupt nicht. Bei der relativen Positionierung bleibt die ursprüngliche Position des Elements wie gesagt geschützt und wird nicht von den nachfolgenden Elementen beansprucht.</p>
<p>Ein positioniertes Element bekommt seine genauen Koordinaten mit den CSS-Eigenschaften <code><span style="color: #ff6600;">top, right, bottom und left</span>,</code> die bei der relativen Positionierung von der ursprünglichen Position im Flow aus gemessen werden:</p>
<p>• <span style="color: #ff6600;"><code>top: 25px</code></span> drückt die Box 1 nach unten. An der normalen Position der Box werden oben 25px eingefügt<br />
• <span style="color: #ff6600;"><code>right: 25px</code></span> schiebt die Box 1 nach links, sodass sie zum Teil verschwindet. An der ursprünglichen Position werden rechts 25 Pixel eingefügt.</p>
<p>Alle Angabe sind relativ zur ursprünglichen Position und geben an, <em>wo</em> der Wert eingefügt wird und <em>nicht (!)</em>, in welche Richtung die Box geschoben werden soll.</p>
<blockquote>
<h3 style="text-align: center;">Absolute Positionierung: absolute</h3>
</blockquote>
<p>Im Gegensatz zur relativen nimmt die absolute Positionierung das Element komplett aus dem Fluss heraus. Das Element wird – bildlich gesprochen – hoch gezogen, und alle anderen Elemente verhalten sich so, als ob es gar nicht da wäre.</p>
<p>Das HTML für dieses Beispiel ist gleich, im CSS wird genau ein Wort geändert. Die CSS-Anweisung <span style="color: #ff6600;"><code>position: relative</code></span> wird durch die Anweisung <span style="color: #ff6600;"><code>position: absolute</code></span> ersetzt.</p>
<p>HTML-Code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">&lt;body<span style="color: #00AA00;">&gt;</span>
&lt;div id<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;anders&quot;</span><span style="color: #00AA00;">&gt;</span>Box <span style="color: #cc66cc;">1</span>&lt;/div<span style="color: #00AA00;">&gt;</span>
&lt;div<span style="color: #00AA00;">&gt;</span>Box <span style="color: #cc66cc;">2</span>&lt;/div<span style="color: #00AA00;">&gt;</span>
&lt;div<span style="color: #00AA00;">&gt;</span>Box <span style="color: #cc66cc;">3</span>&lt;/div<span style="color: #00AA00;">&gt;</span>
&lt;/body<span style="color: #00AA00;">&gt;</span></pre></td></tr></table></div>

<p>CSS:</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
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">body <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">black</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">gray</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: #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: #00AA00;">&#125;</span>
div  <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;">white</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #000000; font-weight: bold;">black</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#anders</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;">absolute</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">25px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">25px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#f3c600</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p style="text-align: center;">[Beispiel ansehen: Grafik oder Demo-Button anklicken!]</p>
<p style="text-align: center;"><a href="http://bencosweb.com/franz/css_absolute/position_absolute.html" target="_blank"><img class="alignnone size-full wp-image-6927" title="http://bencosweb.com/franz/css_absolute/position_absolute.html" src="http://www.sura1.at/wordpress/wp-content/uploads/positionierung_absolute.jpg" alt="positionierung_absolute" width="469" height="351" /></a></p>
<p style="text-align: center;"><a href="http://bencosweb.com/franz/css_absolute/position_absolute.html" target="_blank"><img class="size-full wp-image-6913 aligncenter" title="http://bencosweb.com/franz/css_absolute/position_absolute.html" src="http://www.sura1.at/wordpress/wp-content/uploads/demo1.jpg" alt="demo" width="152" height="38" /></a></p>
<p>Absolut positionierte Elemente werden aus dem Fluss herausgehoben und liegen über den anderen Elementen.</p>
<p>Die genaue Position wird wieder durch <span style="color: #ff6600;"><code>top, right, bottom oder left</code></span> angegeben, aber die Werte für diese 4 CSS-Eigenschaften orientieren sich nicht mehr an der ursprünglichen Position der Box im Fluss:</p>
<p>Die absolute Positionierung eines Elements  bezieht sich auf das nächste umschließende Element, das mit <span style="color: #ff6600;"><code>relative, absolute oder fixed</code></span> positioniert ist.</p>
<p>Falls kein positioniertes umschließendes Element vorhanden ist (kommt in der Praxis häufig vor), erfolgt die Positionierung <em>relativ zum obersten Element</em> des Dokumentenbaumes, und das ist nicht (!) <span style="color: #ff6600;"><code>body</code></span>, sondern <span style="color: #ff6600;"><code>html</code></span>.</p>
<p>Diese beiden Aussagen kann man abschließend wie folgt zusammenfassen:</p>
<p>a) Absolute Positionierung ist relativ zu irgendeinem Bezugspunkt.<br />
b) Es gibt zwei verschiedene mögliche Bezugspunkte: [ein umgebendes, positioniertes Element | das Stammelement html]</p>
<blockquote>
<h3 style="text-align: center;"><a href="http://cid-4961f4e8bffc2861.skydrive.live.com/self.aspx/%c3%96ffentlich/absolute-relative.zip" target="_blank">Download Beispieldateien |  Relative – Absolute Positionierung (1,5KB Zip-Datei)</a></h3>
</blockquote>
<p><strong>Quellnachweis:</strong></p>
<p>Little Boxes -Teil 1</p>
<p><img src="http://www.sura1.at/wordpress/wp-content/uploads/littleboxes_teil.jpg" alt="littleboxes_teil" title="littleboxes_teil" width="89" height="127" class="alignnone size-full wp-image-6845" /></p>
<p>Webseiten gestalten mit CSS. Grundlagen.<br />
Markt + Technik / 2007 / Dozent Peter Müller</p>
<p><a href="http://little-boxes.de/" target="_blank">www.little-boxes.de</a> (Peter Müller )<br />
<a href="http://little-boxes.de/downloads/beispieldateien.html#beispieldateien" target="_blank">http://little-boxes.de/downloads/beispieldateien.html#beispieldateien</a>  (Beispieldateien) </p>
<blockquote><p>Ausführliche Informationen zur Positionierung mit <acronym title="Cascading Style Sheets">CSS:</acronym><br />
<a href="http://jendryschik.de/wsdev/einfuehrung/eigenschaften/positionierung" target="_blank">http://jendryschik.de/wsdev/einfuehrung/eigenschaften/positionierung</a><br />
<a href="http://www.mediaevent.de/tutorial/positionieren.html" target="_blank">http://www.mediaevent.de/tutorial/positionieren.html</a><br />
<a href="http://www.barelyfitz.com/screencast/html-training/css/positioning/" target="_blank">http://www.barelyfitz.com/screencast/html-training/css/positioning/</a><br />
<a href="http://www.de.html.net/tutorials/css/lesson14.asp" target="_blank">http://www.de.html.net/tutorials/css/lesson14.asp</a><br />
<a href="http://www.thestyleworks.de/ref/position.shtml" target="_blank">http://www.thestyleworks.de/ref/position.shtml</a><br />
<a href="http://www.validome.org/doc/HTML_ge/css/eigenschaften/positionierung.htm" target="_blank">http://www.validome.org/doc/HTML_ge/css/eigenschaften/positionierung.htm</a></p></blockquote>
<blockquote>
<h3>Ähnliche Artikel:</h3>
<p><a href="http://www.sura1.at/wordpress/csshtml-tricks-der-normale-fluss-flow-von-3-div-boxen/">CSS/HTML-Tricks: Der normale Fluss (Flow) von 3 div-Boxen</a><br />
<a href="http://www.sura1.at/wordpress/css-tricks-listen-mit-grafischen-aufzahlungszeichen/">CSS-Tricks: Listen mit grafischen Aufzählungszeichen</a><br />
<a href="http://www.sura1.at/wordpress/die-gestaltung-von-hyperlinks-mit-hilfe-von-css-%e2%80%93-teil-1/">Die Gestaltung von Hyperlinks mit Hilfe von CSS – Teil 1</a><br />
<a href="http://www.sura1.at/wordpress/die-gestaltung-von-hyperlinks-mit-hilfe-von-css-%e2%80%93-teil-2/">Die Gestaltung von Hyperlinks mit Hilfe von CSS – Teil 2</a><br />
<a href="http://www.sura1.at/wordpress/css-tricks-bereits-besuchte-links-mit-sogenannten-checkmarks-extra-kennzeichnen/">CSS-Tricks: Bereits besuchte Links mit sogenannten Checkmarks extra kennzeichnen</a><br />
<a href="http://www.sura1.at/wordpress/css-tricks-mit-inner-border-images-rahmen-um-grafiken-von-chris-coyier/">CSS Tricks mit Inner Border Images (Rahmen um Grafiken) von Chris Coyier</a>
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.sura1.at/wordpress/csshtml-tricks-unterschied-zwischen-relativer-und-absoluter-positionierung/ /feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS/HTML-Tricks: Der normale Fluss (Flow) von 3 &lt;div&gt;-Boxen</title>
		<link>http://www.sura1.at/wordpress/csshtml-tricks-der-normale-fluss-flow-von-3-div-boxen/ </link>
		<comments>http://www.sura1.at/wordpress/csshtml-tricks-der-normale-fluss-flow-von-3-div-boxen/ #comments</comments>
		<pubDate>Sat, 24 Oct 2009 18:55:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[div-Boxen im Fluss]]></category>
		<category><![CDATA[document flow]]></category>
		<category><![CDATA[Dozent Peter Müller]]></category>
		<category><![CDATA[Flow]]></category>
		<category><![CDATA[Fluss des Dokumentes]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTML Grundlagen]]></category>
		<category><![CDATA[HTML-Elemente]]></category>
		<category><![CDATA[Little Boxes Teil 1]]></category>
		<category><![CDATA[position:static]]></category>
		<category><![CDATA[width]]></category>
		<category><![CDATA[Zeilenumbruch in HTML]]></category>

		<guid isPermaLink="false">http://www.sura1.at/wordpress/?p=6825</guid>
		<description><![CDATA[Normalerweise folgen die HTML-Elemente auf einer Webseite dem sogenannten document flow, dem &#8220;Fluss des Dokumentes&#8221;. Alle HTML-Elemente schwimmen in diesem Fluss.

Begriffserläuterung: Document Flow
1.Ein einzelnes Element wird soweit wie möglich links und oben positioniert.
2.Wenn weitere Elemente dazu kommen,  werden diese jeweils rechts davon angeordnet, und zwar so lange, bis kein Platz mehr vorhanden ist.
3.Wenn rechts [...]]]></description>
			<content:encoded><![CDATA[<p>Normalerweise folgen die HTML-Elemente auf einer Webseite dem sogenannten <em>document flow</em>, dem &#8220;Fluss des Dokumentes&#8221;. Alle HTML-Elemente schwimmen in diesem Fluss.</p>
<blockquote>
<h3 style="text-align: center;">Begriffserläuterung: Document Flow</h3>
<p>1.Ein einzelnes Element wird soweit wie möglich links und oben positioniert.</p>
<p>2.Wenn weitere Elemente dazu kommen,  werden diese jeweils rechts davon angeordnet, und zwar so lange, bis kein Platz mehr vorhanden ist.</p>
<p>3.Wenn rechts kein Platz mehr ist, rutschen sie eine Zeile tiefer und beginnen wieder ganz links.</p></blockquote>
<p>Erst durch die Wirkung des Flows werden Webseiten flexibel und können von den Webdesignern wie von Architekten geplant und aufgebaut werden.</p>
<h3 style="text-align: center;">a) Der normale Fluss der Boxen</h3>
<p>Ich möchte Ihnen an Hand eines kleinen Beispieles zeigen, wie der Flow funktioniert und wie sich die &lt;div&gt;-Boxen auf einer Webseite verhalten.</p>
<p style="text-align: center;"><strong>3 Boxen im Fluss</strong></p>
<p>Schauen Sie sich folgendes HTML und CSS an:</p>
<p><strong>HTML-Quellcode</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">&lt;div<span style="color: #00AA00;">&gt;</span>Box <span style="color: #cc66cc;">1</span>&lt;/div<span style="color: #00AA00;">&gt;</span>
&lt;div<span style="color: #00AA00;">&gt;</span>Box <span style="color: #cc66cc;">2</span>&lt;/div<span style="color: #00AA00;">&gt;</span>
&lt;div<span style="color: #00AA00;">&gt;</span>Box <span style="color: #cc66cc;">3</span>&lt;/div<span style="color: #00AA00;">&gt;</span></pre></td></tr></table></div>

<p><strong>CSS</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">body <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">black</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">gray</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: #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: #00AA00;">&#125;</span>
div  <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;">white</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #000000; font-weight: bold;">black</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Weil &lt;div&gt; ein Block-Element ist, stehen die 3 Kästen untereinander, auch wenn sie nur wenig Inhalt haben.</p>
<p style="text-align: center;">[Beispiel ansehen: Grafik oder Demo-Button anklicken!]</p>
<p style="text-align: center;"><a href="http://bencosweb.com/franz/01_flow/flow.html" target="_blank"><img class="size-full wp-image-6836 aligncenter" title="http://bencosweb.com/franz/01_flow/flow.html" src="http://www.sura1.at/wordpress/wp-content/uploads/flow.jpg" alt="flow" width="462" height="312" /></a></p>
<p style="text-align: center;"><a href="http://bencosweb.com/franz/01_flow/flow.html" target="_blank"><img class="size-full wp-image-6837 aligncenter" title="http://bencosweb.com/franz/01_flow/flow.html" src="http://www.sura1.at/wordpress/wp-content/uploads/demo.jpg" alt="demo" width="152" height="38" /></a></p>
<p>Ein Block-Element nimmt immer die verfügbare Breite des Eltern-Elements ein, in diesem Falle also von body.</p>
<blockquote><p><strong>Unterschied zwischen Block-Element und Inline-Element</strong></p>
<p>Block-Elemente erzeugen eine neue Zeile im Textfluß und können zum vorherigen und zum nachfolgenden Element einen größeren Abstand aufweisen. Sie sind im Textfluß somit immer untereinander angeordnet.<br />
Block-Elemente können Text, Inline- und je nach Element auch weitere Block-Elemente enthalten.</p>
<p>Inline-Elemente erzeugen im Gegensatz dazu keine neue Zeile und sind im normalen Textfluß immer nebeneinander angeordnet. Es sei denn, sie sind zusammen breiter als das übergeordnete Element. Dann wird eine weitere Zeile eingefügt. Inline-Elemente dürfen Text und weitere Inline-Elemente aber in der Regel keine Block-Elemente enthalten.</p>
<p>Weitere Infos: <a href="http://www.css4you.de/elemente.html#block" target="_blank">CSS4You</a></p></blockquote>
<h3 style="text-align: center;">b) 3 verkürzte Boxen im Fluss</h3>
<p>Im nächsten Schritt werden die drei div-Geschwister mit <span style="color: #ff6600;"><code>width</code></span> auf 20% verkürzt. Alles andere bleibt unverändert.</p>
<p><strong>Geänderte CSS-Formatierung</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">div  <span style="color: #00AA00;">&#123;</span>
      <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">20</span>%</span><span style="color: #00AA00;">;</span>
      <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">white</span><span style="color: #00AA00;">;</span>
      <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
      <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #000000; font-weight: bold;">black</span><span style="color: #00AA00;">;</span>
      <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span>
  <span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p style="text-align: center;">[Beispiel ansehen: Grafik oder Demo-Button anklicken!]</p>
<p style="text-align: center;"><a href="http://bencosweb.com/franz/01_flow/flow_width.html" target="_blank"><img class="alignnone size-full wp-image-6842" title="http://bencosweb.com/franz/01_flow/flow_width.html" src="http://www.sura1.at/wordpress/wp-content/uploads/flow20.jpg" alt="flow20" width="462" height="312" /></a></p>
<p style="text-align: center;"><a href="http://bencosweb.com/franz/01_flow/flow_width.html" target="_blank"><img class="size-full wp-image-6837 aligncenter" title="http://bencosweb.com/franz/01_flow/flow_width.html" src="http://www.sura1.at/wordpress/wp-content/uploads/demo.jpg" alt="demo" width="152" height="38" /></a></p>
<p>Auch die verkürzten &lt;div&gt;-Boxen stehen weiterhin untereinander (Grafik 2). &lt;div&gt; ist ein Block-Element, und Block-Elemente haben einen integrierten Zeilenumbruch. Mit der CSS-Eigenschaft <span style="color: #ff6600;"><code>widht</code></span> wurden die Boxen zwar verkürzt, der Zeilenumbruch bleibt aber bestehen.</p>
<p>Dieses Verhalten der Boxen im Flow wird im CSS auch <span style="color: #ff6600;"><code>position: static</code></span> bezeichnet. So hat gerade die Positionierung, die dem natürlichen Fluss der HTML-Elemente freien Lauf lässt, den Namen static erhalten.</p>
<blockquote>
<h3 style="text-align: center;"><a href="http://cid-4961f4e8bffc2861.skydrive.live.com/self.aspx/%C3%96ffentlich/01|_flow.zip">Download 3 Boxen im Fluss | 3 verkürzte Boxen im Fluss &#8211; Beispieldateien (9,8KB Zip-Datei):</a></h3>
</blockquote>
<p><strong>Quellnachweis:</strong></p>
<p>Little Boxes -Teil 1</p>
<p><img src="http://www.sura1.at/wordpress/wp-content/uploads/littleboxes_teil.jpg" alt="littleboxes_teil" title="littleboxes_teil" width="89" height="127" class="alignnone size-full wp-image-6845" /></p>
<p>Webseiten gestalten mit CSS. Grundlagen.<br />
Markt + Technik / 2007 / Dozent Peter Müller</p>
<p><a href="http://little-boxes.de/" target="_blank">www.little-boxes.de</a> (Peter Müller )<br />
<a href="http://little-boxes.de/downloads/beispieldateien.html#beispieldateien" target="_blank">http://little-boxes.de/downloads/beispieldateien.html#beispieldateien</a>  (Beispieldateien) </p>
<blockquote>
<h3>Ähnliche Artikel:</h3>
<p><a href="http://www.sura1.at/wordpress/css-tricks-listen-mit-grafischen-aufzahlungszeichen/">CSS-Tricks: Listen mit grafischen Aufzählungszeichen</a><br />
<a href="http://www.sura1.at/wordpress/die-gestaltung-von-hyperlinks-mit-hilfe-von-css-%e2%80%93-teil-1/">Die Gestaltung von Hyperlinks mit Hilfe von CSS – Teil 1</a><br />
<a href="http://www.sura1.at/wordpress/die-gestaltung-von-hyperlinks-mit-hilfe-von-css-%e2%80%93-teil-2/">Die Gestaltung von Hyperlinks mit Hilfe von CSS – Teil 2</a><br />
<a href="http://www.sura1.at/wordpress/css-tricks-bereits-besuchte-links-mit-sogenannten-checkmarks-extra-kennzeichnen/">CSS-Tricks: Bereits besuchte Links mit sogenannten Checkmarks extra kennzeichnen</a><br />
<a href="http://www.sura1.at/wordpress/css-tricks-mit-inner-border-images-rahmen-um-grafiken-von-chris-coyier/">CSS Tricks mit Inner Border Images (Rahmen um Grafiken) von Chris Coyier</a>
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.sura1.at/wordpress/csshtml-tricks-der-normale-fluss-flow-von-3-div-boxen/ /feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CSS-Tricks: Wie Sie doppelte Rahmen für Bilder/Grafiken erstellen können</title>
		<link>http://www.sura1.at/wordpress/css-tricks-wie-sie-doppelte-rahmen-fur-bildergrafiken-erstellen-konnen/ </link>
		<comments>http://www.sura1.at/wordpress/css-tricks-wie-sie-doppelte-rahmen-fur-bildergrafiken-erstellen-konnen/ #comments</comments>
		<pubDate>Fri, 16 Oct 2009 19:41:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[background-image]]></category>
		<category><![CDATA[Bilderrahmen]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[CSS-Rahmen]]></category>
		<category><![CDATA[CSS-Tricks]]></category>
		<category><![CDATA[cssglobe]]></category>
		<category><![CDATA[doppelte Rahmen um Grafiken]]></category>
		<category><![CDATA[double-border]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[span]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.sura1.at/wordpress/?p=6612</guid>
		<description><![CDATA[
In meinem heutigen Artikel möchte ich Ihnen zeigen, wie Sie mit CSS doppelte Rahmen für Bilder/Grafiken erstellen können.
Den englischsprachigen Original-Artikel zu diesem Tutorial finden Sie unter http://cssglobe.com/post/1330/custom-double-solid-borders-for-images.

Fertige Beispiele ansehen &#124; Download Beispieldateien (16,8 KB)

Vielleicht denken Sie bei doppelten Bilderrahmen daran, die CSS-Anweisung {border-style:double} einzusetzen. Ich würde Ihnen vom Gebrauch dieses CSS-Befehls abraten, da dieser nur [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="size-full wp-image-6613 aligncenter" title="doppelte-bilderrahmen" src="http://www.sura1.at/wordpress/wp-content/uploads/doppelte-bilderrahmen.jpg" alt="doppelte-bilderrahmen" width="580" height="68" /></p>
<p>In meinem heutigen Artikel möchte ich Ihnen zeigen, wie Sie mit CSS doppelte Rahmen für Bilder/Grafiken erstellen können.</p>
<p>Den englischsprachigen Original-Artikel zu diesem Tutorial finden Sie unter <a href="http://cssglobe.com/post/1330/custom-double-solid-borders-for-images" target="_blank">http://cssglobe.com/post/1330/custom-double-solid-borders-for-images</a>.</p>
<blockquote>
<h3 style="text-align: center;"><a href="http://sura1.at/double_border/double_border_images.html" target="_blank">Fertige Beispiele ansehen</a> | <a href="http://cid-4961f4e8bffc2861.skydrive.live.com/self.aspx/%c3%96ffentlich/double%7C_borders.zip" target="_blank">Download Beispieldateien (16,8 KB)</a></h3>
</blockquote>
<p>Vielleicht denken Sie bei doppelten Bilderrahmen daran, die CSS-Anweisung <span style="color: #ff6600;"><code>{border-style:double}</code></span> einzusetzen. Ich würde Ihnen vom Gebrauch dieses CSS-Befehls abraten, da dieser nur sehr schwer zu kontrollieren ist.</p>
<p>Stellen Sie sich eine Situation vor, wo Sie für eine Grafik einen äußeren Rahmen mit 3px und der Farbe &#8216;Grün&#8217; und einen inneren Rahmen mit 1px und der Farbe &#8216;Gelb&#8217; festlegen möchten. Mit <span style="color: #ff6600;"><code>{border-style:double}</code></span> können Sie dies nicht bewerkstelligen.</p>
<h3>Der Trick:</h3>
<p>Um dies doch zu realisieren, verwende ich für den äußeren Rahmen den CSS-Befehl <span style="color: #ff6600;"><code>border</code></span>. Der innere Rahmen wird nur vorgetäuscht und setzt sich zusammen aus den CSS-Anweisungen <span style="color: #ff6600;"><code>background</code></span> und <span style="color: #ff6600;"><code>padding</code></span>.</p>
<p><img class="alignnone size-full wp-image-6632" title="image1" src="http://www.sura1.at/wordpress/wp-content/uploads/image1.jpg" alt="image1" width="411" height="201" /></p>
<p>Zuerst bekommt das Bild mit CSS einen Rahmen von 2px</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">img<span style="color: #00AA00;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#72a143</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Wenn man nun für die Grafik ein Padding von 1px einsetzt und mit der Hintergrund-Farbe (background) Gelb ergänzt,</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">img<span style="color: #00AA00;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#72a143</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#ffeda5</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>erhält das Bild einen „zusätzlichen Rahmen“ innerhalb des tatsächlichen Rahmens.</p>
<h3 style="text-align: center;">Anleitung für Beispiel Nummer 1 &#8211;  Beispiel Nummer 3</h3>
<p>In meinen 3 Beispielen verwenden ich einmal die Rahmen-Farbe &#8216;Grün&#8217;, einmal die Farbe &#8216;Blau&#8217;; im 3. Beispiel wird ein &#8216;Schatten&#8217; für die Grafik vorgetäuscht.</p>
<h3 style="text-align: center;">Vorstellung Beispiel 1 &#8211; Rahmen Grün:</h3>
<p style="text-align: center;"><img class="size-full wp-image-6635 aligncenter" title="k-bild1" src="http://www.sura1.at/wordpress/wp-content/uploads/k-bild1.jpg" alt="k-bild1" width="275" height="186" /></p>
<p><strong>HTML-Quellcode:</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">&lt;a href<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #00AA00;">&gt;</span>&lt;img class<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;image1&quot;</span> src<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;image.jpg&quot;</span> alt<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;image&quot;</span> /<span style="color: #00AA00;">&gt;</span>&lt;/a<span style="color: #00AA00;">&gt;</span></pre></td></tr></table></div>

<p><strong>CSS:</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">.image1<span style="color: #00AA00;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#72a143</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#ffeda5</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<h3 style="text-align: center;">Vorstellung Beispiel 2 &#8211; Rahmen Blau:</h3>
<p style="text-align: center;"><img src="http://www.sura1.at/wordpress/wp-content/uploads/k-bild2.jpg" alt="k-bild2" title="k-bild2" width="275" height="186" class="alignnone size-full wp-image-6638" /></p>
<p><strong>HTML-Quellcode:</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">&lt;a href<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #00AA00;">&gt;</span>&lt;img class<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;image2&quot;</span> src<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;image.jpg&quot;</span> alt<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;image&quot;</span> /<span style="color: #00AA00;">&gt;</span>&lt;/a<span style="color: #00AA00;">&gt;</span></pre></td></tr></table></div>

<p><strong>CSS:</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">.image2<span style="color: #00AA00;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#0055c2</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<h3 style="text-align: center;">Vorstellung Beispiel 3 &#8211; Vorgetäuschter Schatten</h3>
<p style="text-align: center;"><img src="http://www.sura1.at/wordpress/wp-content/uploads/k-bild3.jpg" alt="k-bild3" title="k-bild3" width="275" height="211" class="alignnone size-full wp-image-6639" /></p>
<p><strong>HTML-Quellcode:</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">&lt;a href<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #00AA00;">&gt;</span>&lt;img class<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;image3&quot;</span> src<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;image.jpg&quot;</span> alt<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;image&quot;</span> /<span style="color: #00AA00;">&gt;</span>&lt;/a<span style="color: #00AA00;">&gt;</span></pre></td></tr></table></div>

<p><strong>CSS:</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">.image3<span style="color: #00AA00;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#eee</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<blockquote><h3 style="text-align: center;"><a href="http://sura1.at/double_border/double_border_images.html" target="_blank">Fertige Beispiele ansehen</a> | <a href="http://cid-4961f4e8bffc2861.skydrive.live.com/self.aspx/%c3%96ffentlich/double%7C_borders.zip" target="_blank">Download Beispieldateien (16,8 KB)</a></h3>
</blockquote>
<blockquote>
<h3>Ähnliche Artikel:</h3>
<p><a href="http://www.sura1.at/wordpress/css-tricks-bereits-besuchte-links-mit-sogenannten-checkmarks-extra-kennzeichnen/">CSS-Tricks: Bereits besuchte Links mit sogenannten Checkmarks extra kennzeichnen</a><br />
<a href="http://www.sura1.at/wordpress/css-tricks-listen-mit-sonderzeichen/">CSS-Tricks: Listen mit Sonderzeichen</a><br />
<a href="http://www.sura1.at/wordpress/css-tricks-listen-mit-grafischen-aufzahlungszeichen/">CSS-Tricks: Listen mit grafischen Aufzählungszeichen</a><br />
<a href="http://www.sura1.at/wordpress/wie-sie-mit-css-sogenannte-%e2%80%9espazierende-links%e2%80%9c-erstellen-konnen/">Wie Sie mit CSS sogenannte “Spazierende Links” erstellen können</a><br />
<a href="http://www.sura1.at/wordpress/5-beispiele-wie-sie-ungeordnete-listen-formatieren-konnen/">5 Beispiele, wie Sie ungeordnete Listen formatieren können</a>
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.sura1.at/wordpress/css-tricks-wie-sie-doppelte-rahmen-fur-bildergrafiken-erstellen-konnen/ /feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS-Tricks: Bereits besuchte Links mit sogenannten Checkmarks extra kennzeichnen</title>
		<link>http://www.sura1.at/wordpress/css-tricks-bereits-besuchte-links-mit-sogenannten-checkmarks-extra-kennzeichnen/ </link>
		<comments>http://www.sura1.at/wordpress/css-tricks-bereits-besuchte-links-mit-sogenannten-checkmarks-extra-kennzeichnen/ #comments</comments>
		<pubDate>Mon, 05 Oct 2009 16:42:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[besuchte Links]]></category>
		<category><![CDATA[Checkmarks]]></category>
		<category><![CDATA[Chris Coyier]]></category>
		<category><![CDATA[CSS-Tricks]]></category>
		<category><![CDATA[Häkchen]]></category>
		<category><![CDATA[Hyperlinks]]></category>
		<category><![CDATA[Kennzeichnung von Links]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[nicht besuchte Links]]></category>
		<category><![CDATA[Visited Links]]></category>

		<guid isPermaLink="false">http://www.sura1.at/wordpress/?p=6301</guid>
		<description><![CDATA[

Fertiges Beispiel ansehen &#124;  Download Beispieldateien (42,8KB)

Abgehakt &#8211; Kennzeichnung von besuchten Links &#124; Visited Links
Eine ewige Diskussion unter Webdesignern zum Thema Benutzerfreundlichkeit von Internetseiten ist die Frage, ob man bereits besuchte Links (visited Links) kennzeichnen sollte oder nicht.
Bei kleinen und übersichtlichen Webseiten ist es meiner Meinung nach nicht notwendig, die gerade besuchten Links extra [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="size-full wp-image-6302 aligncenter" title="visited-links-logo" src="http://www.sura1.at/wordpress/wp-content/uploads/visited-links-logo.jpg" alt="visited-links-logo" width="580" height="68" /></p>
<blockquote>
<h3 style="text-align: center;"><a href="http://bencosweb.com/franz/visited_link/visited_link.html" target="_blank">Fertiges Beispiel ansehen</a> |  <a href="http://bencosweb.com/franz/visited_link.zip" target="_blank">Download Beispieldateien (42,8KB)</a></h3>
</blockquote>
<h3 style="text-align: center;">Abgehakt &#8211; Kennzeichnung von besuchten Links | Visited Links</h3>
<blockquote><p>Eine ewige Diskussion unter Webdesignern zum Thema Benutzerfreundlichkeit von Internetseiten ist die Frage, ob man bereits besuchte Links (visited Links) kennzeichnen sollte oder nicht.</p>
<p>Bei kleinen und übersichtlichen Webseiten ist es meiner Meinung nach nicht notwendig, die gerade besuchten Links extra zu kennzeichnen. Wenn Sie jedoch eine große Linkliste ( wie zum Beispiel <a href="http://www.forwebdesigners.com/" target="_blank">forwebdesigners.com</a>; überhaupt keine Kennzeichnung!) besuchen und dort die einzelnen Punkte abarbeiten wollen, werden Sie schon bald die Übersicht verlieren. Schon nach einigen besuchten Links wissen Sie kaum mehr, welche Seiten Sie nun schon aufgerufen haben und welche nicht.</p>
<p>Sie können natürlich die besuchten Links farblich anders gestalten oder mit unterstreichen<br />
bzw. nicht unterstreichen formatieren, doch auch hier werden Sie nach einiger Zeit nicht mehr genau wissen, welche Farbe die noch nicht besuchten und welche die bereits besuchten Links kennzeichnet.</p>
<p>Es gibt jedoch eine elegante und einfache Art, besuchte Links mit Grafiken auszustatten. Sie nehmen so genannte checkmarks (Häkchen) oder auch andere Grafiken mit transparentem Hintergrund und platzieren diese links oder rechts neben den visited Links. Sehen Sie dazu die folgenden 2 Tutorials!</p></blockquote>
<h3>Tutorial 1: Visited Links von CSS-Tricks</h3>
<p>Chris Coyier von <a href="http://css-tricks.com/" target="_blank">CSS-Tricks</a> erklärt in seinem Artikel <a href="http://css-tricks.com/put-checkmarks-next-to-visted-links-with-pure-css/" target="_blank">Put Checkmarks Next To Visted Links With Pure CSS</a> wie man mit Einsatz von <strong>Checkmarks (Häkchen)</strong> bereits besuchte Links mit Grafiken ausstatten kann.</p>
<h4 style="text-align: center;">Visited Links von Chris Coyier ansehen: Grafik anklicken</h4>
<p style="text-align: center;"><a href="http://css-tricks.com/examples/CheckVisitedLInks/" target="_blank"><img class="size-full wp-image-6313 aligncenter" title="css-tricks" src="http://www.sura1.at/wordpress/wp-content/uploads/css-tricks.png" alt="css-tricks" width="320" height="256" /></a></p>
<h3>Tutorial 2: Kennzeichnung von besuchten Links auf ge.webdesign.de</h3>
<p>Zusätzlich möchte ich Ihnen die Webseite <a href="http://www.ge-webdesign.de/" target="_blank">ge.webdesign.de</a> empfehlen, wo Sie ein tolles <a href="http://www.ge-webdesign.de/blog/43_abgehakt-kennzeichnung-von-besuchten-links.html" target="_blank">Tutorial über die Kennzeichnung von besuchten Links</a> finden.</p>
<h4 style="text-align: center;">Demoseite ansehen: Grafik anklicken</h4>
<p style="text-align: center;"><a href="http://www.ge-webdesign.de/visitlinks.html" target="_blank"><img class="size-full wp-image-6315 aligncenter" title="ge-webdesign" src="http://www.sura1.at/wordpress/wp-content/uploads/ge-webdesign.jpg" alt="ge-webdesign" width="320" height="256" /></a></p>
<h3>Mein Beispiel auf sura1.at</h3>
<p>Auf der Grundlage dieser beiden Tutorials habe ich selber ein kleines Beispiel zum Thema Visited Links erstellt, welches ich Ihnen nachfolgend vorstellen möchte:</p>
<h4 style="text-align: center;">Fertiges Beispiel ansehen (Grafik anklicken!)</h4>
<p style="text-align: center;"><a href="http://bencosweb.com/franz/visited_link/visited_link.html" target="_blank"><img class="size-full wp-image-6318 aligncenter" title="sura_visited_links" src="http://www.sura1.at/wordpress/wp-content/uploads/sura_visited_links.jpg" alt="sura_visited_links" width="408" height="501" /></a></p>
<h4>CSS-Formatierung:</h4>
<p>Das Häkchen ist ein kleines gif, 11 x 11px mit transparentem Hintergrund, für die Schriftgrösse 1.5em.  Das Aussehen der Visited Links definiere ich mittels CSS:</p>
<div style="width:585px;">

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* ===============================
   2. Formatierung der Hyperlinks
   =============================== */</span>
a<span style="color: #00AA00;">,</span> a<span style="color: #3333ff;">:link </span><span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FFFF00</span><span style="color: #00AA00;">;</span>
	   <span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
a<span style="color: #3333ff;">:visited </span><span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">padding-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">14px</span><span style="color: #00AA00;">;</span>
	   <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>checkmark2.gif<span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span>
	   <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#c0ff00</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
a<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">underline</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
a<span style="color: #3333ff;">:active </span><span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">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>

</div>
<p>Es ist  meist sinnvoll, diese Definition auf bestimmte IDs zu beschränken, so dass Links im Kopf oder im Fuss der Seite weiterhin normal angezeigt werden.</p>
<blockquote>
<h3 style="text-align: center;"><a href="http://bencosweb.com/franz/visited_link/visited_link.html" target="_blank">Fertiges Beispiel ansehen</a> |  <a href="http://bencosweb.com/franz/visited_link.zip" target="_blank">Download Beispieldateien (42,8KB)</a></h3>
</blockquote>
<h3>Besuchte Hyperlinks wieder unbesucht machen</h3>
<p>Beim Testen Ihrer Seiten sind früher oder später alle Links besucht. Um diese wieder unbesucht zu machen, müssen Sie den Verlauf bzw.die History Ihres Browsers löschen.</p>
<p>Im Firefox geht dies jedoch viel einfacher mit dem <a href="https://addons.mozilla.org/de/firefox/addon/60" target="_blank">Add-on Web Developer</a>; dort finden Sie im Menü <em>Verschiedenes</em> zu diesem Zweck das Untermenü <em>besuchte Links</em>. Klicken Sie dort auf die Leiste <em>alle Links als nicht besucht</em>.</p>
<blockquote>
<h3>Ähnliche Artikel:</h3>
<p><a href="http://www.sura1.at/wordpress/zitate-mit-css-gestalten-styling-blockquotes/">Zitate mit CSS gestalten – Styling Blockquotes</a><br />
<a href="http://www.sura1.at/wordpress/wie-sie-mit-css-sogenannte-%e2%80%9espazierende-links%e2%80%9c-erstellen-konnen/">Wie Sie mit CSS sogenannte „Spazierende Links“ erstellen können</a><br />
<a href="http://www.sura1.at/wordpress/css-tooltip-mit-vertikaler-navigation-css-vertical-navigation-with-teaser/">CSS Tooltip mit vertikaler Navigation – CSS Vertical Navigation with Teaser</a><br />
<a href="http://www.sura1.at/wordpress/free-css-templates-mehr-als-12000-kostenlose-webseitenvorlagen/">Free CSS Templates – mehr als 12.000 kostenlose Webseitenvorlagen</a><br />
<a href="http://www.sura1.at/wordpress/schoner-scrolling-%e2%80%93-trick-mit-css-eigenschaft-background-attachment-fixed/">Schöner “Scrolling – Trick” mit CSS-Eigenschaft “background-attachment: fixed”</a></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.sura1.at/wordpress/css-tricks-bereits-besuchte-links-mit-sogenannten-checkmarks-extra-kennzeichnen/ /feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS-Tricks: Listen mit Sonderzeichen</title>
		<link>http://www.sura1.at/wordpress/css-tricks-listen-mit-sonderzeichen/ </link>
		<comments>http://www.sura1.at/wordpress/css-tricks-listen-mit-sonderzeichen/ #comments</comments>
		<pubDate>Tue, 15 Sep 2009 16:43:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS-Tipps]]></category>
		<category><![CDATA[CSS-Tricks]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Listen]]></category>
		<category><![CDATA[Little Boxes]]></category>
		<category><![CDATA[Quelltext]]></category>
		<category><![CDATA[Somderzeichen]]></category>
		<category><![CDATA[Übungsdateien]]></category>
		<category><![CDATA[ungeordnete Listen]]></category>
		<category><![CDATA[www.little-boxes.de]]></category>

		<guid isPermaLink="false">http://www.sura1.at/wordpress/?p=5945</guid>
		<description><![CDATA[
Auf der Webseite www.little-boxes.de habe ich ein interessantes Beispiel gefunden, wie man mit Sonderzeichen eine ungeordnete Liste &#60;ul&#62;&#8230;..&#60;/ul&#62; optisch aufwerten kann.
Fertiges Beispiel ansehen &#124;  Download Beispieldateien (1,4KB)
Ich habe die Vorlage als Grundlage für meine Bearbeitung genommen. Dabei wurden von mir sowohl die CSS-Dateien als auch der HTML-Quellcode an diese Variante angepasst.
Fertiges Beispiel ansehen – [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img src="http://www.sura1.at/wordpress/wp-content/uploads/css-listen.jpg" style="margin:10px 0;" alt="css-listen" title="css-listen" width="580" height="68" class="alignnone size-full wp-image-5946" /></p>
<p>Auf der Webseite <a href="http://little-boxes.de/" target="_blank">www.little-boxes.de</a> habe ich ein interessantes Beispiel gefunden, wie man mit Sonderzeichen eine <span style="color:#fff;background-color:#7f9a42;padding: 2px;">ungeordnete Liste &lt;ul&gt;&#8230;..&lt;/ul&gt;</span> optisch aufwerten kann.</p>
<div style="border: 1px solid #7f9a42;font-size:18px;font-family:Georgia;padding:5px;margin: 10px 0;text-align:center;"><a href="http://sura1.at/sign-list/index.html" target="_blank">Fertiges Beispiel ansehen</a> |  <a href="http://cid-4961f4e8bffc2861.skydrive.live.com/self.aspx/%C3%96ffentlich/sign-list.zip" target="_blank">Download Beispieldateien (1,4KB)</a></div>
<p>Ich habe die Vorlage als Grundlage für meine Bearbeitung genommen. Dabei wurden von mir sowohl die CSS-Dateien als auch der HTML-Quellcode an diese Variante angepasst.</p>
<h2 style="color:#fff;background-color:#7f9a42;font-size:18px;font-family:Georgia;padding:5px;margin: 10px 0;text-align:center;">Fertiges Beispiel ansehen – Grafik anklicken!</h2>
<p style="text-align: center;"><a href="http://sura1.at/sign-list/index.html" target="_blank"><img src="http://www.sura1.at/wordpress/wp-content/uploads/liste_sonderzeichen.gif" style="margin: 10px 0 -5px 0;border:1px solid #000;" alt="liste_sonderzeichen" title="http://sura1.at/sign-list/index.html" width="484" height="531" class="alignnone size-full wp-image-5947" /></a></p>
<p>Das Listen-Beispiel befindet sich in den Übungsdateien von Little Boxes Teil 02 und kann unter <a href="http://little-boxes.de/index.php?page_id=129&amp;PHPSESSID=5527641ca559f22377213fe39b96be80#beispieldateien" target="_blank">www.little-boxes.de/Beispieldateien</a> heruntergeladen werden (4,3Mb ZIP-Datei; ca. 100 Beispiele!).</p>
<h2 style="color:#fff;background-color:#7f9a42;font-size:20px;font-family:Georgia;padding:5px;margin: 10px 0;text-align:center;">HTML-Quelltext:</h2>
<div style="width: 585px;">

<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
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">&lt;h2<span style="color: #00AA00;">&gt;</span>Liste mit Sonderzeichen&lt;/h2<span style="color: #00AA00;">&gt;</span>
&lt;div class<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;liste&quot;</span><span style="color: #00AA00;">&gt;</span>
&lt;ul<span style="color: #00AA00;">&gt;</span>
   &lt;li<span style="color: #00AA00;">&gt;</span>&lt;span<span style="color: #00AA00;">&gt;</span>&amp;ndash<span style="color: #00AA00;">;</span> &lt;/span<span style="color: #00AA00;">&gt;</span>Kisten erstellen&lt;/li<span style="color: #00AA00;">&gt;</span>
   &lt;li<span style="color: #00AA00;">&gt;</span>&lt;span<span style="color: #00AA00;">&gt;</span>&amp;ndash<span style="color: #00AA00;">;</span> &lt;/span<span style="color: #00AA00;">&gt;</span>Kisten gestalten&lt;/li<span style="color: #00AA00;">&gt;</span>
   &lt;li<span style="color: #00AA00;">&gt;</span>&lt;span<span style="color: #00AA00;">&gt;</span>&amp;ndash<span style="color: #00AA00;">;</span> &lt;/span<span style="color: #00AA00;">&gt;</span>Kisten positionieren&lt;/li<span style="color: #00AA00;">&gt;</span>
&lt;/ul<span style="color: #00AA00;">&gt;</span>
&lt;/div<span style="color: #00AA00;">&gt;</span>
&nbsp;
&lt;div class<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;liste&quot;</span><span style="color: #00AA00;">&gt;</span>
&lt;ul<span style="color: #00AA00;">&gt;</span>
   &lt;li<span style="color: #00AA00;">&gt;</span>&lt;span<span style="color: #00AA00;">&gt;</span>&amp;mdash<span style="color: #00AA00;">;</span> &lt;/span<span style="color: #00AA00;">&gt;</span>Kisten erstellen&lt;/li<span style="color: #00AA00;">&gt;</span>
   &lt;li<span style="color: #00AA00;">&gt;</span>&lt;span<span style="color: #00AA00;">&gt;</span>&amp;mdash<span style="color: #00AA00;">;</span> &lt;/span<span style="color: #00AA00;">&gt;</span>Kisten gestalten&lt;/li<span style="color: #00AA00;">&gt;</span>
   &lt;li<span style="color: #00AA00;">&gt;</span>&lt;span<span style="color: #00AA00;">&gt;</span>&amp;mdash<span style="color: #00AA00;">;</span> &lt;/span<span style="color: #00AA00;">&gt;</span>Kisten positionieren&lt;/li<span style="color: #00AA00;">&gt;</span>
&lt;/ul<span style="color: #00AA00;">&gt;</span>
&lt;/div<span style="color: #00AA00;">&gt;</span>
&lt;div class<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;liste&quot;</span><span style="color: #00AA00;">&gt;</span>
&lt;ul<span style="color: #00AA00;">&gt;</span>
   &lt;li<span style="color: #00AA00;">&gt;</span>&lt;span<span style="color: #00AA00;">&gt;</span>&amp;rArr<span style="color: #00AA00;">;</span> &lt;/span<span style="color: #00AA00;">&gt;</span>Kisten erstellen&lt;/li<span style="color: #00AA00;">&gt;</span>
   &lt;li<span style="color: #00AA00;">&gt;</span>&lt;span<span style="color: #00AA00;">&gt;</span>&amp;rArr<span style="color: #00AA00;">;</span> &lt;/span<span style="color: #00AA00;">&gt;</span>Kisten gestalten&lt;/li<span style="color: #00AA00;">&gt;</span>
   &lt;li<span style="color: #00AA00;">&gt;</span>&lt;span<span style="color: #00AA00;">&gt;</span>&amp;rArr<span style="color: #00AA00;">;</span> &lt;/span<span style="color: #00AA00;">&gt;</span>Kisten positionieren&lt;/li<span style="color: #00AA00;">&gt;</span>
&lt;/ul<span style="color: #00AA00;">&gt;</span>
&lt;/div<span style="color: #00AA00;">&gt;</span>
&lt;div class<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;liste&quot;</span><span style="color: #00AA00;">&gt;</span>
&lt;ul<span style="color: #00AA00;">&gt;</span>
   &lt;li<span style="color: #00AA00;">&gt;</span>&lt;span<span style="color: #00AA00;">&gt;</span>&amp;hArr<span style="color: #00AA00;">;</span> &lt;/span<span style="color: #00AA00;">&gt;</span>Kisten erstellen&lt;/li<span style="color: #00AA00;">&gt;</span>
   &lt;li<span style="color: #00AA00;">&gt;</span>&lt;span<span style="color: #00AA00;">&gt;</span>&amp;hArr<span style="color: #00AA00;">;</span> &lt;/span<span style="color: #00AA00;">&gt;</span>Kisten gestalten&lt;/li<span style="color: #00AA00;">&gt;</span>
   &lt;li<span style="color: #00AA00;">&gt;</span>&lt;span<span style="color: #00AA00;">&gt;</span>&amp;hArr<span style="color: #00AA00;">;</span> &lt;/span<span style="color: #00AA00;">&gt;</span>Kisten positionieren&lt;/li<span style="color: #00AA00;">&gt;</span>
&lt;/ul<span style="color: #00AA00;">&gt;</span>
&lt;/div<span style="color: #00AA00;">&gt;</span>
&lt;/div<span style="color: #00AA00;">&gt;</span></pre></td></tr></table></div>

</div>
<h2 style="color:#fff;background-color:#7f9a42;font-size:20px;font-family:Georgia;padding:5px;margin: 10px 0;text-align:center;">CSS-Formatierung</h2>
<div style="width: 585px;">

<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
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">ul li <span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">list-style-type</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</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: #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: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.liste</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: #cc00cc;">#DFDFDF</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">4px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
  <span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Der Trick: Aufzählung mit negativem margin nach links rücken */</span>
ul li span <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-1em</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

</div>
<div style="border: 1px solid #7f9a42;font-size:18px;font-family:Georgia;padding:5px;margin: 10px 0;text-align:center;"><a href="http://sura1.at/sign-list/index.html" target="_blank">Fertiges Beispiel ansehen</a> |  <a href="http://cid-4961f4e8bffc2861.skydrive.live.com/self.aspx/%C3%96ffentlich/sign-list.zip" target="_blank">Download Beispieldateien (1,4KB)</a></div>
<blockquote>
<h3>Ähnliche Artikel:</h3>
<p><a href="http://www.sura1.at/wordpress/css-tricks-listen-mit-grafischen-aufzahlungszeichen/">CSS-Tricks: Listen mit grafischen Aufzählungszeichen</a><br />
<a href="http://www.sura1.at/wordpress/css-tricks-mit-inner-border-images-rahmen-um-grafiken-von-chris-coyier/">CSS Tricks mit Inner Border Images (Rahmen um Grafiken) von Chris Coyier</a><br />
<a href="http://www.sura1.at/wordpress/webseiten-uberschriften-mit-css-als-elegante-hingucker/">Webseiten-Überschriften mit CSS als elegante Hingucker</a><br />
<a href="http://www.sura1.at/wordpress/wie-sie-mit-css-sogenannte-%e2%80%9espazierende-links%e2%80%9c-erstellen-konnen/">Wie Sie mit CSS sogenannte „Spazierende Links“ erstellen können</a><br />
<a href="http://www.sura1.at/wordpress/css-tipps-und-tricks-textmarker/">CSS-Tipps und Tricks: Textmarker</a><br />
<a href="http://www.sura1.at/wordpress/css-tricks-multiple-remote-linking-2/">CSS-Tricks: Multiple Remote Linking #2</a>
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.sura1.at/wordpress/css-tricks-listen-mit-sonderzeichen/ /feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
