<?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>webmatze.de &#187; CSS</title>
	<atom:link href="http://webmatze.de/category/webseiten-erstellen/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://webmatze.de</link>
	<description>Profi Tipps für einen erfolgreichen Internetauftritt</description>
	<lastBuildDate>Fri, 30 Jul 2010 11:50:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Wie erstelle ich eine Webseite?</title>
		<link>http://webmatze.de/wie-erstelle-ich-eine-webseite/</link>
		<comments>http://webmatze.de/wie-erstelle-ich-eine-webseite/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 12:28:56 +0000</pubDate>
		<dc:creator>webmatze</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML / XHTML]]></category>
		<category><![CDATA[Planung]]></category>
		<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[Webseiten erstellen]]></category>
		<category><![CDATA[homepage]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[webhoster]]></category>
		<category><![CDATA[webspace]]></category>

		<guid isPermaLink="false">http://webmatze.de/?p=478</guid>
		<description><![CDATA[An diesem Punkt hat jeder schon einmal gestanden. Man hat so viele verschiedene gute oder auch weniger gute Webseiten im Internet besucht und die eine oder andere gute Information für sich aus diesen Seiten gezogen. Doch wenn man Anderen sein eigenes Wissen oder die eigenen Ansichten und Gedanken mitteilen möchte, wird man nicht drum herum [...]]]></description>
			<content:encoded><![CDATA[<p>An diesem Punkt hat jeder schon einmal gestanden. Man hat so viele verschiedene gute oder auch weniger gute Webseiten im Internet besucht und die eine oder andere gute Information für sich aus diesen Seiten gezogen. Doch wenn man Anderen sein eigenes Wissen oder die eigenen Ansichten und Gedanken mitteilen möchte, wird man nicht drum herum kommen, sich eine eigene Homepage zu erstellen.</p>
<p>Doch wie genau funktioniert das? Und welche Tools brauche ich dafür? Genau diesen Fragen möchte ich in diesem und in kommenden Artikeln auf den Grund gehen.<br />
<span id="more-478"></span></p>
<h3>Was brauche ich für meine eigene Webseite?</h3>
<p>Um zu starten braucht es eigentlich nicht viel. Die wenigen Dinge, die man wirklich benötigt, habe ich hier mal in einer Liste näher beschrieben.</p>
<ul>
<li><strong>Etwas Zeit</strong><br />
Eine gute Homepage lässt sich nicht einfach in wenigen Minuten erstellen, darum sollte man sich auch die entsprechende Zeit nehmen.</li>
<li><strong>Einen Plan</strong><br />
Man kann keine eigene Webseite erstellen, ohne vorher zu wissen, welches Ziel man eigentlich mit dieser Seite verfolgen will. Möchte man ein Tagebuch schreiben? Will man Informationen zu einem bestimmten Thema zusammentragen und aufbereiten? Will man sich selbst und die eigenen Projekte vorstellen? Oder möchte man eine Plattform für sich und seine Freunde schaffen? Die Möglichkeiten sind grenzenlos, aber man sollte zumindest grob das Thema der Webseite festlegen.</li>
<li><strong>Kenntnisse im Umgang mit HTML, CSS und JavaScript</strong><br />
Man kann keine Homepage erstellen, ohne nicht zumindest die grundlegendsten Bausteine einer Webseite zu kennen. Mit <a href="http://webmatze.de/category/webseiten-erstellen/html-xhtml/">HTML</a> legt man die Struktur und den Inhalt einer Webseite fest. Mit <a href="http://webmatze.de/category/webseiten-erstellen/css/">CSS</a> kann man das Aussehen der einzelnen Elemente einer Webseite kontrollieren und mit <a href="http://webmatze.de/category/webseiten-erstellen/javascript/">JavaScript</a> kann man die Funktionalität der eigenen Seite erweitern. Aber erst die Kombination aus allen Zutaten ergibt eine gute Webseite.</li>
<li><strong>Eine eigene Internetadresse</strong><br />
Ohne eine eigene Domain kann niemand auf die liebevoll erstellten Inhalte zugreifen. Der Domainname ist die Adresse einer Seite im Internet. Daher sollte man sich einen sprechenden Namen für die eigene Homepage ausdenken. Ob nun <em>www.willies-kochrezepte.de</em> oder <em>www.webmatze.de</em> - solange der Name noch nicht vergeben ist, kann man fast jeden Domainnamen registrieren lassen.</li>
<li><strong>Webspeicherplatz</strong><br />
Damit man die erstellen HTML Seiten auch für Jeden zugänglich im Internet ablegen kann, benötigt man etwas Speicherplatz. Diesen Webspeicherplatz oder auch <a href="http://www.prosite.de">Webspace</a> genannt, wird man sich meistens bei professionellen Webhostern anmieten. Die Kosten dafür sind überwiegend sehr niedrig. Es ist auch möglich, eigene Webserver zu verwenden, doch für eine kleine Homepage reicht meistens weniger aus.</li>
</ul>
<p>Das waren auch schon die wichtigsten Zutaten für die eigene Homepage. Wie man sehen kann, braucht es nicht wirklich viel, um eine eigenen Webseite zu erstellen. Doch für jemanden, der bisher noch nie eine Homepage erstellt hat, können einige der Punkte trotzdem eine Hürde darstellen.</p>
<h3>Schritt für Schritt zur eigenen Webseite</h3>
<p>Gerade für diese Anfänger - und dass meine ich nicht abwertend, denn jeder hat einmal an diesem Punkt begonnen - werde ich in den nächsten Tagen und Wochen in verschiedenen Beiträgen auf die einzelnen oben angesprochenen Punkte näher eingehen. Am Ende wird dann jeder eine Schritt für Schritt Anleitung für die erste eigene Homepage zur freien Verfügung haben.</p>
<p>Auf folgende Punkte werde ich dabei detaillierter eingeben:</p>
<ul>
<li>Wie man das richtige Thema für die eigene Homepage wählt</li>
<li>HTML, CSS und JavaScript - Das Grundgerüst einer Webseite beherrschen</li>
<li>So findet man den passenden Domainnamen für die eigene Webseite</li>
<li>Wie wähle ich den richtigen Webhoster für meine Homepage aus?</li>
<li>Wie bekomme ich mehr Besucher für meine eigenen Webseite?</li>
</ul>
<p>Ich freue mich schon darauf und hoffe, dass der Eine oder Andere von Euch mit Hilfe dieser Anleitungen seine erste eigene Homepage erstellen können wird.</p>
Similar Posts:<ul><li><a href="http://webmatze.de/schritt-fur-schritt-zum-eigenen-blog/" rel="bookmark" title="16. 04. 2008">Schritt für Schritt zum eigenen Blog</a></li>

<li><a href="http://webmatze.de/surfino-bietet-exklusiv-paket/" rel="bookmark" title="18. 06. 2008">Surfino bietet Exklusiv-Paket</a></li>

<li><a href="http://webmatze.de/genial/" rel="bookmark" title="15. 06. 2002">Genial</a></li>

<li><a href="http://webmatze.de/google-gadgets-auf-der-eigenen-homepage/" rel="bookmark" title="4. 10. 2006">Google Gadgets auf der eigenen Homepage</a></li>

<li><a href="http://webmatze.de/fallstudie-von-0-auf-100-euro-in-12-monaten/" rel="bookmark" title="24. 04. 2008">Fallstudie: Von 0 auf 100 Euro in 12 Monaten</a></li>
</ul><!-- Similar Posts took 5.018 ms -->]]></content:encoded>
			<wfw:commentRss>http://webmatze.de/wie-erstelle-ich-eine-webseite/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Hierarchische Menüs mit CSS erstellen</title>
		<link>http://webmatze.de/hierarchische-menus-mit-css-erstellen/</link>
		<comments>http://webmatze.de/hierarchische-menus-mit-css-erstellen/#comments</comments>
		<pubDate>Thu, 04 Sep 2008 16:38:53 +0000</pubDate>
		<dc:creator>webmatze</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML / XHTML]]></category>
		<category><![CDATA[webmatze]]></category>

		<guid isPermaLink="false">http://webmatze.de/?p=337</guid>
		<description><![CDATA[Eines der wichtigsten Elemente eines Webauftritts ist das Menü. Das Menü hilft dem Nutzer dabei, sich in komplizierten Seitenstrukturen zurechtzufinden und um schnell an jeden gewünschten Punkt in dieser Hierarchie springen zu können. 
Auf vielen Seiten werden immer noch Navigationsmenüs verwendet, welche vollständig auf JavaScript aufbauen und bei ausgeschaltetem JavaScript nicht mehr funktionieren. Solche Seiten [...]]]></description>
			<content:encoded><![CDATA[<p>Eines der wichtigsten Elemente eines Webauftritts ist <a href="http://de.wikipedia.org/wiki/Menü_(Computer)">das Menü</a>. Das Menü hilft dem Nutzer dabei, sich in komplizierten Seitenstrukturen zurechtzufinden und um schnell an jeden gewünschten Punkt in dieser Hierarchie springen zu können. </p>
<p>Auf vielen Seiten werden immer noch Navigationsmenüs verwendet, welche vollständig auf JavaScript aufbauen und bei ausgeschaltetem JavaScript nicht mehr funktionieren. Solche Seiten sind dann für Nutzer mit Behinderungen meistens nicht mehr bedienbar.</p>
<div style="text-align:center"><img src="http://webmatze.de/wp-content/uploads/2008/09/css_menu.png" alt="" title="CSS Menü" width="500" height="240" class="alignnone size-full wp-image-377" /></div>
<h3>Das barrierefreie <abbr title="Cascading Style Sheets">CSS</abbr> Menü</h3>
<p>In diesem Beitrag möchte ich euch zeigen, dass man Menüs auch auf <a href="http://www.einfach-fuer-alle.de/blog/">behindertengerechte</a> und <a href="http://blog.techdivision.com/barrierefreie-webseiten/">barrierefreie Weise</a> erstellen kann. Ziel ist es ein Menü zu bauen, dass nur auf aktuellen Standards wie <abbr title="Hypertext Markup Language">HTML</abbr> und <bbr>CSS</abbr> beruht und keine Verwendung von JavaScript macht. So soll es möglich sein, dass Menü auch dann noch bedienen zu können, wenn der Nutzer JavaScript oder gar <a href="http://forum.de.selfhtml.org/archiv/2005/3/t102578/"><abbr>CSS</abbr> im Browser ausgeschaltet</a> hat.</p>
<h3>So sieht das fertige Menü aus</h3>
<p>Hier könnt Ihr schon einmal sehen, wie das Menü aussehen wird. (Wird im IE6 als vertikales Menü angezeigt, während es alle modernen Browser als Drop Down Menü angezeigen.)<br />
<span id="more-337"></span>
<ul class="cssmenu">
<li><a href="http://webmatze.de/">Start</a></li>
<li><a href="http://webmatze.de/">Informationen</a>
<ul>
<li><a href="#">Webseiten erstellen</a>
<ul>
<li><a href="http://webmatze.de/category/webseiten-erstellen/html-xhtml/">HTML</a></li>
<li><a href="http://webmatze.de/category/webseiten-erstellen/css/">CSS</a></li>
<li><a href="#">Programmieren</a>
<ul>
<li><a href="http://webmatze.de/category/webseiten-erstellen/javascript/">JavaScript</a></li>
<li><a href="http://webmatze.de/category/webseiten-erstellen/php/">PHP</a></li>
<li><a href="http://java.net">Java</a></li>
<li><a href="http://webmatze.de/category/webseiten-erstellen/flash/">ActionScript</a></li>
<li><a href="http://ruby.org">Ruby</a></li>
</ul>
</li>
<li><a href="http://webmatze.de/category/webseiten-erstellen/flash/">Flash</a></li>
</ul>
</li>
<li><a href="#">Multimedia</a>
<ul>
<li><a href="http://flickr.com">Grafiken</a></li>
<li><a href="http://youtube.com">Videos</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#">Suchen</a>
<ul>
<li><a href="http://google.de">Google</a></li>
<li><a href="http://yahoo.de">Yahoo</a></li>
<li><a href="http://msn.de">MSN</a></li>
</ul>
</li>
<li><a href="http://webmatze.de/about/">Über</a></li>
</ul>
<p style="clear:both"> </p>
<p>Dieses Beispiel hat insgesamt vier Ebenden, wobei jede einzelne Ebene auch noch unterschiedlich per <bbr>CSS</abbr> angepasst werden kann.</p>
<h3>Der HTML Code</h3>
<p>Der Aufbau dieses Menüs per <abbr>HTML</abbr> erfolgt über verschachtelte unsortierte Listen <code>&lt;ul&gt;</code>. Zur besseren Veranschaulichung könnt Ihr hier den <abbr>HTML</abbr> Code betrachten:</p>
<pre class="html">&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ul</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;cssmenu&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Start<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Informationen<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ul&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Webseiten erstellen<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ul&gt;</span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>HTML<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>CSS<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Programmieren<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ul&gt;</span></span>
              <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>JavaScript<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
              <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>PHP<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
              <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Java<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
              <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>ActionScript<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
              <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Ruby<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Flash<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Multimedia<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ul&gt;</span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Grafiken<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Videos<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Suchen<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ul&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Google<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Yahoo<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>MSN<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Über<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span>
&nbsp;</pre>
<p>Wie man sehen kann, gibt es keine besonderen Tricks. Es handelt sich einfach um ganz normalen standardkonformen <abbr>HTML</abbr> Code. Auch ohne <abbr>CSS</abbr> kann man dieses Menü bedienen und alle einzelnen Links aufrufen. </p>
<p>Um das Menü aber etwas ansprechender zu gestalten, wird es durch die folgenden <abbr>CSS</abbr> Anweisungen in die richtige Form gebracht.</p>
<h3>Der CSS Code</h3>
<p>Ich werde jetzt nicht ins Detail gehen, wie genau die einzelnen Anweisungen sich auf die Darstellung des Menüs auswirken. Zum besseren Verständnis habe ich ein paar Kommentare in den <abbr>CSS</abbr> Code mit aufgenommen. Anmerken möchte ich jedoch, dass ich den letzten Teil nur mit aufnehmen musste, weil sich der <abbr title="Internet Explorer Version 6">IE 6</abbr> hier etwas quer stellt und sich nur durch spezielle <abbr>CSS</abbr> Anweisungen dazu bringen lässt, das Menü ebenfalls richtig darzustellen. (Wer möchte, kann den <abbr>IE 6</abbr> speziellen Teil natürlich weglassen.)</p>
<pre class="css">ul<span style="color: #6666ff;">.cssmenu</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">position</span>: <span style="color: #993333;">relative</span>;
  <span style="color: #000000; font-weight: bold;">display</span>: <span style="color: #993333;">block</span>;
  <span style="color: #000000; font-weight: bold;">margin</span>: <span style="color: #933;">0px</span>;
  <span style="color: #000000; font-weight: bold;">padding</span>: <span style="color: #933;">0px</span>;
<span style="color: #66cc66;">&#125;</span>
ul<span style="color: #6666ff;">.cssmenu</span> ul <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">position</span>: <span style="color: #993333;">relative</span>;
  <span style="color: #000000; font-weight: bold;">display</span>: <span style="color: #993333;">none</span>;
<span style="color: #66cc66;">&#125;</span>
ul<span style="color: #6666ff;">.cssmenu</span> li <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">position</span>: <span style="color: #993333;">relative</span>;
  <span style="color: #000000; font-weight: bold;">display</span>: <span style="color: #993333;">inline</span>;
  <span style="color: #000000; font-weight: bold;">float</span>: <span style="color: #000000; font-weight: bold;">left</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #808080; font-style: italic;">/* Menupunkt stylen */</span>
ul<span style="color: #6666ff;">.cssmenu</span> li a <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">font-family</span>: arial, <span style="color: #993333;">sans-serif</span>;
  <span style="color: #000000; font-weight: bold;">font-size</span>: <span style="color: #933;">12px</span>;
  <span style="color: #000000; font-weight: bold;">line-height</span>: <span style="color: #933;">20px</span>;
  <span style="color: #000000; font-weight: bold;">text-decoration</span>: <span style="color: #993333;">none</span>;
  <span style="color: #000000; font-weight: bold;">text-align</span>: <span style="color: #993333;">center</span>;
  <span style="color: #000000; font-weight: bold;">display</span>: <span style="color: #993333;">block</span>;
  <span style="color: #000000; font-weight: bold;">width</span>: <span style="color: #933;">100px</span>;
  <span style="color: #000000; font-weight: bold;">height</span>: <span style="color: #933;">20px</span>;
<span style="color: #66cc66;">&#125;</span>
ul<span style="color: #6666ff;">.cssmenu</span> li<span style="color: #3333ff;">:hover</span> &gt; a <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">background-color</span>: <span style="color: #cc00cc;">#<span style="color: #933;">666666</span></span>;
  <span style="color: #000000; font-weight: bold;">color</span>: <span style="color: #cc00cc;">#FFFFFF</span>;
  <span style="color: #000000; font-weight: bold;">font-weight</span>: <span style="color: #993333;">bold</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #808080; font-style: italic;">/* Untermenüpunkt einblenden */</span>
ul<span style="color: #6666ff;">.cssmenu</span> li<span style="color: #3333ff;">:hover</span> &gt; ul <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">position</span>: <span style="color: #993333;">absolute</span>;
  <span style="color: #000000; font-weight: bold;">top</span>: <span style="color: #933;">20px</span>;
  <span style="color: #000000; font-weight: bold;">left</span>: -<span style="color: #933;">40px</span>;
  <span style="color: #000000; font-weight: bold;">display</span>: <span style="color: #993333;">inline</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #808080; font-style: italic;">/* ab zweite Ebene */</span>
ul<span style="color: #6666ff;">.cssmenu</span> li li<span style="color: #3333ff;">:hover</span> &gt; ul <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">top</span>: <span style="color: #933;">0px</span>;
  <span style="color: #000000; font-weight: bold;">left</span>: <span style="color: #933;">110px</span>;
<span style="color: #66cc66;">&#125;</span>
ul<span style="color: #6666ff;">.cssmenu</span> li li a <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">width</span>: <span style="color: #933;">150px</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #808080; font-style: italic;">/* Farben der einzelnen Ebenen (werden vererbt)*/</span>
ul<span style="color: #6666ff;">.cssmenu</span> a <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">color</span>: <span style="color: #cc00cc;">#<span style="color: #933;">000000</span></span>;
  <span style="color: #000000; font-weight: bold;">background-color</span>: <span style="color: #cc00cc;">#e4e4e4</span>;
<span style="color: #66cc66;">&#125;</span>
ul<span style="color: #6666ff;">.cssmenu</span> ul a <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">background-color</span>: <span style="color: #cc00cc;">#d4d4d4</span>;
<span style="color: #66cc66;">&#125;</span>
ul<span style="color: #6666ff;">.cssmenu</span> ul ul a<span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">background-color</span>: <span style="color: #cc00cc;">#c4c4c4</span>;
<span style="color: #66cc66;">&#125;</span>
ul<span style="color: #6666ff;">.cssmenu</span> ul ul ul a<span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">background-color</span>: <span style="color: #cc00cc;">#b4b4b4</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* zusätzliche Styleangaben für IE 6 */</span>
<span style="color: #808080; font-style: italic;">/* das Menü wird dort untereinander dargestellt */</span>
ul<span style="color: #6666ff;">.cssmenu</span> <span style="color: #66cc66;">&#123;</span>
  _text-indent: <span style="color: #933;">10px</span>;
<span style="color: #66cc66;">&#125;</span>
ul<span style="color: #6666ff;">.cssmenu</span> ul <span style="color: #66cc66;">&#123;</span>
  _display: <span style="color: #993333;">inline</span>;
  _margin-<span style="color: #000000; font-weight: bold;">left</span>: <span style="color: #933;">0px</span>;
  _text-indent: <span style="color: #933;">20px</span>;
<span style="color: #66cc66;">&#125;</span>
ul<span style="color: #6666ff;">.cssmenu</span> ul ul <span style="color: #66cc66;">&#123;</span>
  _text-indent: <span style="color: #933;">30px</span>;
<span style="color: #66cc66;">&#125;</span>
ul<span style="color: #6666ff;">.cssmenu</span> ul ul ul <span style="color: #66cc66;">&#123;</span>
  _text-indent: <span style="color: #933;">40px</span>;
<span style="color: #66cc66;">&#125;</span>
ul<span style="color: #6666ff;">.cssmenu</span> li <span style="color: #66cc66;">&#123;</span>
  _float: <span style="color: #993333;">none</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #808080; font-style: italic;">/* Menupunkt stylen */</span>
ul<span style="color: #6666ff;">.cssmenu</span> li a <span style="color: #66cc66;">&#123;</span>
  _text-align: <span style="color: #000000; font-weight: bold;">left</span>;
  _width: <span style="color: #933;">150px</span>;
<span style="color: #66cc66;">&#125;</span>
ul<span style="color: #6666ff;">.cssmenu</span> a<span style="color: #3333ff;">:hover</span> <span style="color: #66cc66;">&#123;</span>
  _font-weight: <span style="color: #993333;">bold</span>;
  _background-<span style="color: #000000; font-weight: bold;">color</span>: <span style="color: #cc00cc;">#<span style="color: #933;">666666</span></span>;
<span style="color: #66cc66;">&#125;</span></pre>
<h3>Fazit</h3>
<p>Wie Ihr sehen könnt ist es gar nicht so schwer auch ohne JavaScript ein ansprechendes Menü zu gestalten. Das hier gezeigte Beispiel lässt sich natürlich leicht durch andere Farben oder Hintergrundgrafiken per <abbr>CSS</abbr> noch weiter verschönern und an die eigenen Bedürfnisse anpassen. Alle modernen Browser sollten damit zurecht kommen - selbstverständlich auch <a href="http://webmatze.de/google-chrome-der-neue-browser/">Googles neuer Chrome Browser</a>.</p>
Similar Posts:<ul><li><a href="http://webmatze.de/css-button-tricks/" rel="bookmark" title="23. 01. 2003">CSS Button Tricks</a></li>

<li><a href="http://webmatze.de/wie-man-wirklich-ansprechende-formulare-erstellt/" rel="bookmark" title="5. 08. 2008">Wie man wirklich ansprechende Formulare erstellt</a></li>

<li><a href="http://webmatze.de/wirklich-einfache-javascript-tooltips/" rel="bookmark" title="12. 01. 2006">Wirklich einfache JavaScript Tooltips</a></li>

<li><a href="http://webmatze.de/firebug-04-der-ultimative-web-debugger/" rel="bookmark" title="24. 05. 2006">FireBug 0.4 &#8211; Der ultimative Web Debugger</a></li>

<li><a href="http://webmatze.de/ist-display-none-jetzt-irrelevant/" rel="bookmark" title="12. 08. 2008">Ist display=&#8221;none&#8221; jetzt irrelevant?</a></li>
</ul><!-- Similar Posts took 4.814 ms -->]]></content:encoded>
			<wfw:commentRss>http://webmatze.de/hierarchische-menus-mit-css-erstellen/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>CSS 3: Rotating Image Gallery</title>
		<link>http://webmatze.de/css-3-rotating-image-gallery/</link>
		<comments>http://webmatze.de/css-3-rotating-image-gallery/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 15:57:47 +0000</pubDate>
		<dc:creator>webmatze</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://webmatze.de/?p=372</guid>
		<description><![CDATA[I've played a little bit with WebKit's new CSS 3 features such as CSS transform and CSS transition and I came up with a funny Rotating Image Gallery.
You need the latest nightly build of WebKit to see the effects in action. But you can also watch it as a video on YouTube:

Go to the original [...]]]></description>
			<content:encoded><![CDATA[<p>I've played a little bit with WebKit's new <abbr title="Cascading Style Sheets Version 3">CSS 3</abbr> features such as <a href="http://webkit.org/specs/CSSVisualEffects/CSSTransforms.html"><abbr>CSS</abbr> transform</a> and <a href="http://webkit.org/specs/CSSVisualEffects/CSSTransitions.html"><abbr>CSS</abbr> transition</a> and I came up with a funny <a href="http://samples.webmatze.de/rotating_image_gallery.htm">Rotating Image Gallery</a>.</p>
<p>You need the <a href="http://nightly.webkit.org">latest nightly build of WebKit</a> to see the effects in action. But you can also watch it as a <a href="http://de.youtube.com/watch?v=rPH1G41Nu2U">video on YouTube</a>:</p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/rPH1G41Nu2U&hl=de&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/rPH1G41Nu2U&hl=de&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p>Go to the original <a href="http://samples.webmatze.de/rotating_image_gallery.htm">Rotating Image Gallery</a> to try for yourself and look at the source code to see how it was made.</p>
<p>I'll give you a more detailed description of those new <abbr>CSS</abbr> effects in an upcoming post, so check back later.</p>
Similar Posts:<ul><li><a href="http://webmatze.de/css-button-tricks/" rel="bookmark" title="23. 01. 2003">CSS Button Tricks</a></li>

<li><a href="http://webmatze.de/google-bindet-youtube-videos-in-suchergebnisse-ein/" rel="bookmark" title="26. 06. 2007">Google bindet YouTube Videos in Suchergebnisse ein</a></li>

<li><a href="http://webmatze.de/google-chrome-der-neue-browser/" rel="bookmark" title="3. 09. 2008">Google Chrome &#8211; Der neue Browser</a></li>

<li><a href="http://webmatze.de/wwwrudicomebackde/" rel="bookmark" title="25. 06. 2004">www.rudicomeback.de</a></li>

<li><a href="http://webmatze.de/das-problem-mit-scripaculous-effectscroll/" rel="bookmark" title="10. 08. 2006">Das Problem mit scrip.aculo.us Effect.scroll()</a></li>
</ul><!-- Similar Posts took 3.585 ms -->]]></content:encoded>
			<wfw:commentRss>http://webmatze.de/css-3-rotating-image-gallery/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ist display=&#8221;none&#8221; jetzt irrelevant?</title>
		<link>http://webmatze.de/ist-display-none-jetzt-irrelevant/</link>
		<comments>http://webmatze.de/ist-display-none-jetzt-irrelevant/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 10:36:41 +0000</pubDate>
		<dc:creator>webmatze</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML / XHTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Programmierung]]></category>

		<guid isPermaLink="false">http://webmatze.de/?p=370</guid>
		<description><![CDATA[Beim Studieren der aktuellen HTML5 Spezifikation, ist mir ein neues Attribut aufgefallen, welches möglicherweise bald eine große Bedeutung bekommen könnte. Ich spreche hier vom Attribut irrelevant, welches allen HTML Elementen zugewiesen werden darf.
Wofür steht irrelevant?
Das Attribut irrelevant darf die Werte "true" oder "false" enthalten und gibt an, ob ein so ausgezeichnetes HTML Element im aktuellen [...]]]></description>
			<content:encoded><![CDATA[<p>Beim Studieren der aktuellen <abbr title="Hypertext Markup Language Version 5">HTML5</abbr> Spezifikation, ist mir ein neues Attribut aufgefallen, welches möglicherweise bald eine große Bedeutung bekommen könnte. Ich spreche hier vom Attribut <code><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/editing.html#irrelevant">irrelevant</a></code>, welches allen <abbr>HTML</abbr> Elementen zugewiesen werden darf.</p>
<h3>Wofür steht irrelevant?</h3>
<p>Das Attribut <code>irrelevant</code> darf die Werte <strong>"true"</strong> oder <strong>"false"</strong> enthalten und gibt an, ob ein so ausgezeichnetes <abbr>HTML</abbr> Element im aktuellen Kontext noch nicht oder nicht mehr relevant ist. So gekennzeichnete Elemente werden vom Browser weder gerendert, noch angezeigt. Das heißt, man kann damit beliebige Elemente ein- und ausblenden.</p>
<p style="text-align:center"><img src="http://webmatze.de/wp-content/uploads/2008/08/html5.png" alt="HTML 5 Draft Recommendation Screenshot" title="HTML 5 Draft Recommendation" width="500" height="240" class="alignnone size-full wp-image-371" /></p>
<p>Bisher konnte man diese Funktionalität nur durch das Setzen der <abbr title="Cascading Style Sheets">CSS</abbr> Eigenschaft <code><a href="http://www.w3.org/TR/REC-CSS2/visuren.html#display-prop">display</a></code> auf <strong>display: none</strong> erreichen. Damit werden die entsprechenden Elemente ebenfalls nicht gerendert und angezeigt.</p>
<p>Der Nachteil hier wäre allerdings, dass ein Gerät oder Browser, welcher keine Stylesheets versteht, solche Elemente dann trotzdem darstellen würde. Bei Verwendung von <code>irrelevant</code> würde der entsprechende Teil auch in diesem Fall nicht angezeigt werden. <em>(Vorausgesetzt das Gerät versteht HTML5.)</em><br />
<span id="more-370"></span></p>
<h3>irrelevant schon heute verwenden</h3>
<p>Damit man das neue Attribut in <abbr>HTML</abbr> Seiten verwenden kann, müsste man darauf warten, dass die aktuellen Browser <abbr>HTML 5</abbr> unterstützen. Doch bis es soweit ist, kann es noch eine Weile dauern, zumal <a href="http://www.whatwg.org/specs/web-apps/current-work/">die Spezifikation</a> noch nicht in der finalen Version vorliegt.</p>
<p>Um das Warten aber ein wenig zu verkürzen, kann man die entsprechende Funktionalität in allen aktuellen Browsern auch auf anderem Weg erreichen. Dazu muss man nur zwei einfache <abbr>CSS</abbr> Definitionen in das <abbr>HTML</abbr> Dokument einbinden, und schon wird das Attribut <code>irrelevant</code> richtig ausgewertet.</p>
<pre class="css">&nbsp;
&lt;style type=<span style="color: #ff0000;">&quot;text/css&quot;</span>&gt;
  *<span style="color: #66cc66;">&#91;</span>irrelevant<span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">display</span>: <span style="color: #993333;">none</span>;
  <span style="color: #66cc66;">&#125;</span>
  *<span style="color: #66cc66;">&#91;</span>irrelevant=<span style="color: #ff0000;">&quot;false&quot;</span><span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">display</span>: <span style="color: #993333;">inherit</span>;
  <span style="color: #66cc66;">&#125;</span>
&lt;/style&gt;
&nbsp;</pre>
<p><em>(Man sollte jedoch versuchen möglichst nicht <strong>irrelevant="false"</strong> zu verwenden, sondern statt dessen das Attribut ganz entfernen, da es unter Umständen bei einigen <abbr>HTML</abbr> Elementen zu Problemen in der Darstellung kommen kann.)</em></p>
<p>So kann man nun beliebige Elemente ausblenden lassen:</p>
<pre class="html">&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;p&gt;</span></span>Laut HTML 5  können nicht relevante Elemente
 ausgeblendet werden, indem ihnen das Attribut irrelevant
 zugewiesen wird. <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;span</span> irrelevant=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>HTML 5 wird noch
 nicht von allen aktuellen Browsern unterstützt.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/span&gt;</span></span>
 Irrelevante Elemente sind solche, die noch nicht, oder nicht
 mehr relevant sind. Das Attribut sollte auf solche Abschnitte
 angewendet werden, die im aktuellen Kontext nicht relevant
 sind, es aber später durchaus wieder werden können.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/p&gt;</span></span>
&nbsp;</pre>
<p>Wenn man dies mit einem aktuellen Browser wie Firefox 3, Safari 3 oder <abbr title="Internet Explorer">IE</abbr> 8 betrachtet, sollte der zweite Satz nicht mehr angezeigt werden:</p>
<p><em></p>
<p>Laut HTML 5 können nicht relevante Elemente<br />
 ausgeblendet werden, indem ihnen das Attribut irrelevant<br />
 zugewiesen wird. <span irrelevant="true">HTML 5 wird noch<br />
 nicht von allen aktuellen Browsern unterstützt.</span><br />
 Irrelevante Elemente sind solche, die noch nicht, oder nicht<br />
 mehr relevant sind. Das Attribut sollte auf solche Abschnitte<br />
 angewendet werden, die im aktuellen Kontext nicht relevant<br />
 sind, es aber später durchaus wieder werden können.</p>
<p></em></p>
<h3>Elemente per <abbr title="Document Object Model">DOM</abbr> ein- und ausblenden</h3>
<p>Jetzt, da wir mit <code>irrelevant</code> gekennzeichnete Elemente vom Browser ausblenden lassen können, fehlt nur noch der entsprechende JavaScript Code, um dies auch dynamisch per Mausklick durchführen zu können:</p>
<pre class="javascript">&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> hide<span style="color: #66cc66;">&#40;</span>elementId<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #003366; font-weight: bold;">var</span> el = document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#40;</span>elementId<span style="color: #66cc66;">&#41;</span>;
  el.<span style="color: #006600;">setAttribute</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'irrelevant'</span>,<span style="color: #003366; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #003366; font-weight: bold;">function</span> show<span style="color: #66cc66;">&#40;</span>elementId<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #003366; font-weight: bold;">var</span> el = document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#40;</span>elementId<span style="color: #66cc66;">&#41;</span>;
  el.<span style="color: #006600;">removeAttribute</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'irrelevant'</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<h3>Fazit</h3>
<p>Wie man sieht, kann man schon heute bestimmte <a href="http://xhtml.com/de/future/x-html-5-versus-xhtml-2/">HTML5 Features</a> verwenden und so die eigenen Seiten für die Zukunft vorbereiten. Ob man das auch tun sollte, sei jedem selbst überlassen. Da ältere Browser möglicherweise mit den hier gezeigten Beispielen nicht zurecht kommen, ist dies nicht unter allen Umständen die beste Wahl. Aber da in den entsprechenden Browsern in dem Fall die zu versteckenden Inhalte einfach angezeigt werden würden, wäre auch kein größerer Schaden entstanden.</p>
Similar Posts:<ul><li><a href="http://webmatze.de/css-formular-design-textfelder/" rel="bookmark" title="11. 08. 2001">CSS Formular Design &#8211; Textfelder</a></li>

<li><a href="http://webmatze.de/die-sprache-eines-links-kennzeichnen/" rel="bookmark" title="4. 09. 2007">Die Sprache eines Links kennzeichnen</a></li>

<li><a href="http://webmatze.de/wirklich-einfache-javascript-tooltips/" rel="bookmark" title="12. 01. 2006">Wirklich einfache JavaScript Tooltips</a></li>

<li><a href="http://webmatze.de/css-auswahlliste-mit-checkboxen/" rel="bookmark" title="20. 07. 2002">CSS Auswahlliste mit Checkboxen</a></li>

<li><a href="http://webmatze.de/unsicher-objekte-unter-ssl-in-ie/" rel="bookmark" title="19. 10. 2005">Unsicher Objekte unter SSL in IE</a></li>
</ul><!-- Similar Posts took 5.865 ms -->]]></content:encoded>
			<wfw:commentRss>http://webmatze.de/ist-display-none-jetzt-irrelevant/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wie man wirklich ansprechende Formulare erstellt</title>
		<link>http://webmatze.de/wie-man-wirklich-ansprechende-formulare-erstellt/</link>
		<comments>http://webmatze.de/wie-man-wirklich-ansprechende-formulare-erstellt/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 16:57:23 +0000</pubDate>
		<dc:creator>webmatze</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML / XHTML]]></category>

		<guid isPermaLink="false">http://webmatze.de/?p=335</guid>
		<description><![CDATA[Eines der wichtigsten Elemente in Webseiten sind Formulare. Ohne Formulare wäre es nicht möglich Informationen vom Anwender auf den Server zu übertragen. Es könnten keine Gästebucheinträge gemacht oder Mails über ein Kontaktformular versendet werden.
Gerade weil Formulare solch ein wichtiger Bestandteil einer Seite sind, sollte man auch beim Design eines Formulars an den Anwender denken. Klar [...]]]></description>
			<content:encoded><![CDATA[<p>Eines der wichtigsten Elemente in Webseiten sind Formulare. Ohne Formulare wäre es nicht möglich Informationen vom Anwender auf den Server zu übertragen. Es könnten keine Gästebucheinträge gemacht oder Mails über ein Kontaktformular versendet werden.</p>
<p>Gerade weil Formulare solch ein wichtiger Bestandteil einer Seite sind, sollte man auch beim Design eines Formulars an den Anwender denken. Klar strukturierte Formulare mit sinnvollen Bezeichnungen und Beschreibungen der einzelnen Felder helfen dem Nutzer dabei, die benötigten Daten schnell eingeben zu können. Aber auch beim HTML Code der Formulare sollte man sich an allgemein gültige Regeln halten, damit diese z.B. auch von behinderten Anwendern leicht ausgefüllt werden können.</p>
<p style="text-align: center;"><img src="http://webmatze.de/wp-content/uploads/2008/08/formulardesign.png" alt="Formulardesign Screenshot" title="Formulardesign" width="500" height="240" class="alignnone size-full wp-image-367" /></p>
<h3>Formulare richtig aufbauen</h3>
<p>Um ein Formular erstellen zu können, sollte man sich zuerst alle benötigten Daten notieren und sich überlegen, wie man diese als Formularfeld darstellen kann. Namen oder Emails wird man am besten als <a href="http://de.selfhtml.org/html/formulare/eingabe.htm#felder">Texteingabefeld</a> darstellen. Für Beschreibungen oder größere Texte eignet sich die <a href="http://de.selfhtml.org/html/formulare/eingabe.htm#bereiche">Textarea</a> besser. Eine Auswahl, z.B. ob der Nutzer Mann oder Frau ist, lässt sich sowohl durch <a href="http://de.selfhtml.org/html/formulare/auswahl.htm#radiobuttons">Radiobuttons</a> und auch als <a href="http://de.selfhtml.org/html/formulare/auswahl.htm#listen">Auswahlliste</a> darstellen. Mit <a href="http://de.selfhtml.org/html/formulare/auswahl.htm#checkboxen">Checkboxen</a> fragt man schließlich Daten ab, die keine Texteingabe erfordern, sondern nur ausgewählt werden müssen.</p>
<p>Alle verschiedenen Felder sollten möglichst durch ein <a href="http://de.selfhtml.org/html/formulare/strukturieren.htm#label">Label</a> gekennzeichnet werden. Wenn notwendig kann man dies noch durch ausführlichere Beschreibungen ergänzen, wenn sich die benötigten Daten nicht durch ein oder zwei Wörter erklären lassen.</p>
<p>Wenn ein Formular aus mehreren, inhaltlich nicht zusammengehörigen Abschnitten besteht, so sollte man diese durch <a href="http://de.selfhtml.org/html/formulare/strukturieren.htm#gruppieren">Fieldsets</a> logisch aufteilen und mit Legend genauer beschreiben.<span id="more-335"></span></p>
<h3>Ein einfaches Beispiel - Das Kontaktformular</h3>
<p>Zur besseren Veranschaulichung werde ich ein einfaches Kontaktformular aufbauen. Kontaktformulare kann man auf fast jeder Seite finden und sind ein wichtiges Mittel zur Kommunikation zwischen Seitenbesucher und Seitenbetreiber. </p>
<p>Am Ende soll unser Kontaktformular folgendermaßen aussehen:</p>
<form class="wmForm" action="#" method="post">
<fieldset>
<legend>Ihre Kontaktdaten</legend>
<ul>
<li> <label for="name"><span>*</span>Name</label><br />
<input id="name" name="name" type="text" />
<p class="wmHint">Verwenden Sie wenn möglich Vor- und Zuname.</p>
</li>
<li> <label for="email"><span>*</span>Email</label><br />
<input id="email" name="email" type="text" />
<p class="wmHint">Bitte stellen Sie sicher, dass diese Email wirklich existiert.</p>
</li>
<li> <label for="nachricht"><span>*</span>Ihre Nachricht</label><br />
<textarea id="nachricht" name="nachricht"></textarea></p>
<p class="wmHint">
</li>
</ul>
</fieldset>
<fieldset>
<legend>Ich möchte Folgendes gleich kostenlos mitbestellen</legend>
<ul>
<li> <label for="fruehlingskatalog">Frühlingskatalog</label><br />
<input id="fruehlingskatalog" class="checkbox" name="fruehlingskatalog" type="checkbox" /></li>
<li> <label for="sommerkatalog">Sommerkatalog</label><br />
<input id="sommerkatalog" class="checkbox" name="sommerkatalog" type="checkbox" /></li>
<li> <label for="herbstkatalog">Herbstkatalog</label><br />
<input id="herbstkatalog" class="checkbox" name="herbstkatalog" type="checkbox" /></li>
<li> <label for="winterkatalog">Winterkatalog</label><br />
<input id="winterkatalog" class="checkbox" name="winterkatalog" type="checkbox" />
<p class="wmHint">
</li>
</ul>
</fieldset>
<fieldset class="wmButtons">
<input class="wmButton" name="submit" type="button" value="Absenden" />
<input class="wmButton" name="reset" type="reset" value="Eingaben löschen" />
</fieldset>
</form>
<p>Wie man sehen kann, ist das Formular relativ einfach gehalten, sieht aber dennoch ansprechend aus. Erreicht wird dies durch den Einsatz von gut strukturiertem HTML und einfachen CSS Definitionen.</p>
<h3>Der HTML Code</h3>
<p>Beim Aufbau des Formulars mit HTML habe ich darauf geachtet, dass es in allen Browsern bedienbar bleibt und auch für Behinderte mit Screenreadern keine Probleme macht. Die einzelnen Formularfelder wie einzeilige oder mehrzeilige Textfelder wurden in einer Liste untergebracht und mit &lt;LABEL&gt; Elementen versehen. Bei bestimmten Feldern habe ich zusätzlich noch einen längeren, beschreibenden Text hinzugefügt:</p>
<pre class="html">&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;form</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;wmForm&quot;</span> <span style="color: #000066;">action</span>=<span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;post&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fieldset&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;legend&gt;</span></span>Ihre Kontaktdaten<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/legend&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ul&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;label</span> <span style="color: #000066;">for</span>=<span style="color: #ff0000;">&quot;name&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;span&gt;</span></span>*<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/span&gt;</span></span>Name<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;input</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;name&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;name&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;p</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;wmHint&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Verwenden Sie wenn möglich Vor- und Zuname.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/p&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;label</span> <span style="color: #000066;">for</span>=<span style="color: #ff0000;">&quot;email&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;span&gt;</span></span>*<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/span&gt;</span></span>Email<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;input</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;email&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;email&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;p</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;wmHint&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Bitte stellen Sie sicher, dass diese Email wirklich existiert.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/p&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;label</span> <span style="color: #000066;">for</span>=<span style="color: #ff0000;">&quot;nachricht&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;span&gt;</span></span>*<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/span&gt;</span></span>Ihre Nachricht<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;textarea</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;nachricht&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;nachricht&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/textarea&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;p</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;wmHint&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/p&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/fieldset&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fieldset&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;legend&gt;</span></span>Ich möchte Folgendes gleich kostenlos mitbestellen<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/legend&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ul&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;label</span> <span style="color: #000066;">for</span>=<span style="color: #ff0000;">&quot;fruehlingskatalog&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Frühlingskatalog<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;input</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;fruehlingskatalog&quot;</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;checkbox&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;fruehlingskatalog&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;checkbox&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;label</span> <span style="color: #000066;">for</span>=<span style="color: #ff0000;">&quot;sommerkatalog&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Sommerkatalog<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;input</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;sommerkatalog&quot;</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;checkbox&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;sommerkatalog&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;checkbox&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;label</span> <span style="color: #000066;">for</span>=<span style="color: #ff0000;">&quot;herbstkatalog&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Herbstkatalog<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;input</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;herbstkatalog&quot;</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;checkbox&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;herbstkatalog&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;checkbox&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;label</span> <span style="color: #000066;">for</span>=<span style="color: #ff0000;">&quot;winterkatalog&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Winterkatalog<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;input</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;winterkatalog&quot;</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;checkbox&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;winterkatalog&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;checkbox&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;p</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;wmHint&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/p&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/fieldset&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fieldset</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;wmButtons&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;input</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;wmButton&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;button&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;Absenden&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;input</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;wmButton&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;reset&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;reset&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;Eingaben löschen&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/fieldset&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/form&gt;</span></span>
&nbsp;</pre>
<h3>Die dazugehörigen Style Definitionen</h3>
<p>Damit das Formular auch ansprechend aussieht, muss es natürlich über CSS verschönert werden. Im folgenden CSS sind alle notwendigen Angaben, um die einzelnen Formularelemente auszurichten und farblich gestalten zu können.</p>
<pre class="css">&nbsp;
<span style="color: #6666ff;">.wmForm</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">background-color</span>: <span style="color: #cc00cc;">#ffffff</span>;
  <span style="color: #000000; font-weight: bold;">padding</span>: <span style="color: #933;">10px</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #6666ff;">.wmForm</span> fieldset<span style="color: #6666ff;">.wmButtons</span> input<span style="color: #6666ff;">.wmButton</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">float</span>: <span style="color: #000000; font-weight: bold;">right</span>;
  <span style="color: #000000; font-weight: bold;">width</span>: <span style="color: #933;">150px</span>;
  <span style="color: #000000; font-weight: bold;">background-color</span>: <span style="color: #cc00cc;">#E9F7F6</span>;
  <span style="color: #000000; font-weight: bold;">border</span>: <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#7BB9B7</span>;
  <span style="color: #000000; font-weight: bold;">color</span>: <span style="color: #cc00cc;">#7BB9B7</span>;
  <span style="color: #000000; font-weight: bold;">margin-left</span>: <span style="color: #933;">10px</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #6666ff;">.wmForm</span> fieldset legend <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">background-color</span>: <span style="color: #cc00cc;">#ffffff</span>;
  <span style="color: #000000; font-weight: bold;">color</span>: <span style="color: #cc00cc;">#7BB9B7</span>;
  <span style="color: #000000; font-weight: bold;">font-weight</span>: <span style="color: #993333;">bold</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #6666ff;">.wmForm</span> ul <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">background-color</span>: <span style="color: #cc00cc;">#E9F7F6</span>;
  <span style="color: #000000; font-weight: bold;">border-top</span>: <span style="color: #933;">2px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#7BB9B7</span>;
  <span style="color: #000000; font-weight: bold;">margin</span>: <span style="color: #933;">0px</span>;
  <span style="color: #000000; font-weight: bold;">padding</span>: <span style="color: #933;">0px</span>;
  <span style="color: #000000; font-weight: bold;">list-style</span>: <span style="color: #993333;">none</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #6666ff;">.wmForm</span> ul li <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">padding</span>: <span style="color: #933;">10px</span>;
  <span style="color: #000000; font-weight: bold;">clear</span>: <span style="color: #993333;">both</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #6666ff;">.wmForm</span> ul li label <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">display</span>: <span style="color: #993333;">inline</span>;
  <span style="color: #000000; font-weight: bold;">float</span>: <span style="color: #000000; font-weight: bold;">left</span>;
  <span style="color: #000000; font-weight: bold;">width</span>: <span style="color: #933;"><span style="color: #933;">30</span>%</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #6666ff;">.wmForm</span> ul li label span <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">float</span>: <span style="color: #000000; font-weight: bold;">right</span>;
  <span style="color: #000000; font-weight: bold;">color</span>: <span style="color: #cc00cc;">#7BB9B7</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #6666ff;">.wmForm</span> ul li input,
<span style="color: #6666ff;">.wmForm</span> ul li textarea <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">float</span>: <span style="color: #000000; font-weight: bold;">right</span>;
  <span style="color: #000000; font-weight: bold;">width</span>: <span style="color: #933;"><span style="color: #933;">68</span>%</span>;
  <span style="color: #000000; font-weight: bold;">background-color</span>: <span style="color: #cc00cc;">#F0F0F0</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #6666ff;">.wmForm</span> ul li input<span style="color: #3333ff;">:focus</span>,
<span style="color: #6666ff;">.wmForm</span> ul li textarea<span style="color: #3333ff;">:focus</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">border</span>: <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#7BB9B7</span>;
  <span style="color: #000000; font-weight: bold;">background-color</span>: <span style="color: #cc00cc;">#FFFFFF</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #6666ff;">.wmForm</span> ul li input<span style="color: #6666ff;">.checkbox</span>,
<span style="color: #6666ff;">.wmForm</span> ul li input<span style="color: #6666ff;">.radio</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">float</span>: <span style="color: #000000; font-weight: bold;">left</span>;
  <span style="color: #000000; font-weight: bold;">width</span>: <span style="color: #933;">20px</span>;
  <span style="color: #000000; font-weight: bold;">border-width</span>: <span style="color: #933;">0px</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #6666ff;">.wmForm</span> ul li p<span style="color: #6666ff;">.wmHint</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">clear</span>: <span style="color: #993333;">both</span>;
  <span style="color: #000000; font-weight: bold;">margin-left</span>: <span style="color: #933;"><span style="color: #933;">30</span>%</span>;
  <span style="color: #000000; font-weight: bold;">width</span>: <span style="color: #933;"><span style="color: #933;">68</span>%</span>;
  <span style="color: #000000; font-weight: bold;">text-align</span>: <span style="color: #000000; font-weight: bold;">left</span>;
  <span style="color: #000000; font-weight: bold;">font-size</span>: <span style="color: #933;">10px</span>;
  <span style="color: #000000; font-weight: bold;">padding</span>: <span style="color: #933;">0px</span> <span style="color: #933;">10px</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<p>Diese Angaben können natürlich beliebig erweitert oder verändert werden, um das Aussehen des Formulars den eigenen Vorstellungen anzupassen.</p>
<h3>Fazit</h3>
<p>Wie man bei diesem Beispiel erkennen kann, müssen Formulare nicht grau und langweilig aussehen. Sie können sehr flexibel an das jeweilige Seitendesign angepasst werden. Der Fantasie sind hier fast keine Grenzen gesetzt, aber man sollte immer darauf achten, dass solch ein Formular leicht bedienbar bleibt. Dies ist vor allem auch dann wichtig, wenn man bedenkt das Formulare auch von Menschen mit Behinderungen ausgefüllt werden können müssen.</p>
Similar Posts:<ul><li><a href="http://webmatze.de/css-button-tricks/" rel="bookmark" title="23. 01. 2003">CSS Button Tricks</a></li>

<li><a href="http://webmatze.de/hierarchische-menus-mit-css-erstellen/" rel="bookmark" title="4. 09. 2008">Hierarchische Menüs mit CSS erstellen</a></li>

<li><a href="http://webmatze.de/css-formular-design-textfelder/" rel="bookmark" title="11. 08. 2001">CSS Formular Design &#8211; Textfelder</a></li>

<li><a href="http://webmatze.de/email-mit-php-senden/" rel="bookmark" title="24. 08. 2006">Email mit PHP senden</a></li>

<li><a href="http://webmatze.de/wegwerfadressen-oder-einmaladressen-mit-google-mail/" rel="bookmark" title="11. 03. 2009">Wegwerfadressen oder Einmaladressen mit Google Mail</a></li>
</ul><!-- Similar Posts took 5.195 ms -->]]></content:encoded>
			<wfw:commentRss>http://webmatze.de/wie-man-wirklich-ansprechende-formulare-erstellt/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Text in Spalten darstellen mit &#8220;CSS3 Columns&#8221;</title>
		<link>http://webmatze.de/text_in_spalten_css3_columns/</link>
		<comments>http://webmatze.de/text_in_spalten_css3_columns/#comments</comments>
		<pubDate>Mon, 04 Sep 2006 10:21:11 +0000</pubDate>
		<dc:creator>webmatze</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://version3.webmatze.de/2007/09/04/text_in_spalten_css3_columns/</guid>
		<description><![CDATA[Mit CSS3 solle es möglich werden Text auch in in mehreren Spalten darstellen zu lassen. Ganz so, wie man es auch von Zeitungen gewohnt ist. In diesem Artikel will ich zeigen, wie man dies am einfachsten umsetzen kann und mit welchen Problemen noch zu rechnen ist.]]></description>
			<content:encoded><![CDATA[<p>Um beliebigen Text in Browsern mit HTML darzustellen, braucht es nicht vieler Kenntnisse. Am einfachsten ist es den gew&uuml;nschten Text zwischen zwei <b>&lt;p&gt;</b> Tags zu packen und schon wird er als Paragraph auf der Seite dargestellt. Doch wie schafft man es Text wie in einer Zeitung &uuml;ber mehrere Spalten hinweg darzustellen? Also so, dass der Text unten in der ersten Spalte endet und oben in der zweiten Spalte fortgef&uuml;hrt wird! Das ist mit HTML nicht m&ouml;glich? Falsch! Mit dem neuen <a href="http://www.w3.org/TR/2001/WD-css3-multicol-20010118/">CSS3 Modul: Multi-column layout</a> soll dies nun doch m&ouml;glich werden. Und wer schon den neuen Browser <a href="http://www.mozilla.org/projects/firefox/">Firefox 1.5</a> besitzt, kann dies gleich hier an dieser Stelle testen!</p>
<h3>Anzahl der Spalten festlegen</h3>
<p>Um festzulegen, mit wievielen Spalten ein Text dargestellt werden soll, braucht man nur folgende CSS Eigenschaft anzugeben: <b>-moz-column-count</b>. Wobei das Prefix <b>-moz-</b> speziell f&uuml;r den Firefox definiert wurde, da es sich hierbei noch nicht um einen endg&uuml;ltig anerkannten Standard handelt. Sollte sich dieser Standard durchsetzen, w&uuml;rde man das Prefix weglassen und nur noch <b>column-count</b> verwenden. Als Wert gibt man nun die Anzahl der Spalten an:</p>
<p><span id="more-11"></span></p>
<pre class="html4strict"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;P</span> <span style="color: #000066;">style</span>=<span style="color: #ff0000;">&quot;-moz-column-count: 2&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Dieser Text wird in zwei Spalten angezeigt, wenn man den aktuellen Firefox Browser verwendet. Sollte man einen älteren Browser verwenden, wird dieser Absatz einfach so wie immer mit nur einer Spalte dargestellt werden. Dieser Text wird in zwei Spalten angezeigt, wenn man den aktuellen Firefox Browser verwendet. Sollte man einen älteren Browser verwenden, wird dieser Absatz einfach so wie immer mit nur einer Spalte dargestellt werden.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/P&gt;</span></span>
&nbsp;</pre>
<p>Das Ergebnis w&uuml;rde dann so aussehen:</p>
<p style="-moz-column-count: 2;font-weight: bold">Dieser Text wird in zwei Spalten angezeigt, wenn man den aktuellen Firefox Browser verwendet. Sollte man einen &auml;lteren Browser verwenden, wird diesr Absatz einfach so wie immer mit nur einer Spalte dargestellt werden. Dieser Text wird in zwei Spalten angezeigt, wenn man den aktuellen Firefox Browser verwendet. Sollte man einen &auml;lteren Browser verwenden, wird diesr Absatz einfach so wie immer mit nur einer Spalte dargestellt werden.</p>
<p><b>[funktioniert vorerst nur im <a href="http://www.mozilla.org/projects/firefox/">Mozilla Firefox 1.5</a>]</b></p>
<h3>Minimale Spaltenbreite festlegen</h3>
<p>Wenn man nun m&ouml;chte, dass die Spalten nun immer mindestens 200 Pixel breit sein sollen, so kann man dies mit der Eigenschaft <b>-moz-column-width</b> festlegen. Die Spalten sind dann immer mindestens 200 Pixel breit. Und wenn man die Eigenschaft -moz-column-count wegl&auml;ßt, dann werden automatisch immer so viele Spalten angezeigt wie f&uuml;r die angegebene Breite ben&ouml;tigt werden. Das bedeutet, das folgendes:</p>
<pre class="html4strict"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;P</span> <span style="color: #000066;">style</span>=<span style="color: #ff0000;">&quot;-moz-column-width: 100px&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Dieser Text wird in einer oder mehreren
Spalten dargestellt, wobei die Spalten immer mindestens 100 Pixel groß sein müssen. Ist weniger Platz vorhanden wird nur eine Spalte angezeigt. Ist mehr Platz vorhanden, werden entsprechend mehr Spalten dargestellt. Dieser Text wird in einer oder mehreren Spalten dargestellt, wobei die Spalten immer mindestens 100 Pixel groß sein müssen. Ist weniger Platz vorhanden wird nur eine Spalte angezeigt. Ist mehr Platz vorhanden, werden entsprechend mehr Spalten dargestellt.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/P&gt;</span></span>
&nbsp;</pre>
<p>dann folgendes Ergebnis bringt:</p>
<p style="-moz-column-width: 100px;font-weight: bold">Dieser Text wird in einer oder mehreren Spalten dargestellt, wobei die Spalten immer mindestens 100 Pixel groß sein m&uuml;ssen. Ist weniger Platz vorhanden wird nur eine Spalte angezeigt. Ist mehr Platz vorhanden, werden entsprechend mehr Spalten dargestellt. Dieser Text wird in einer oder mehreren Spalten dargestellt, wobei die Spalten immer mindestens 100 Pixel groß sein m&uuml;ssen. Ist weniger Platz vorhanden wird nur eine Spalte angezeigt. Ist mehr Platz vorhanden, werden entsprechend mehr Spalten dargestellt.</p>
<p><b>[funktioniert vorerst nur im <a href="http://www.mozilla.org/projects/firefox/">Mozilla Firefox 1.5</a>]</b></p>
<p>Und wenn ich zus&auml;tzlich noch die Anzahl der Spalten angebe, kann ich erreichen, dass immer zwei Spalten angezeigt werden, außer wenn der zur Verf&uuml;gung stehende Platz nicht außreicht um mindestens zwei Spalten mit einer Breite von je 200 Pixeln anzuzeigen.</p>
<pre class="html4strict"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;P</span> <span style="color: #000066;">style</span>=<span style="color: #ff0000;">&quot;-moz-column-width: 200px;-moz-column-count: 2&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Dieser Text wird in zwei Spalten angezeigt, es sei denn der zur Verf<span style="color: #ddbb00;">&amp;uuml;</span>gung stehende Platz reicht nicht aus um
die Spalten mit einer Breite von mindestens 200 Pixeln darstellen zu k<span style="color: #ddbb00;">&amp;ouml;</span>nnen. Ist weniger Platz vorhanden wird nur noch eine Spalte dargestellt. Dieser Text wird in zwei Spalten angezeigt, es sei denn der zur Verf<span style="color: #ddbb00;">&amp;uuml;</span>gung stehende Platz reicht nicht aus um die Spalten mit einer Breite von mindestens 200 Pixeln darstellen zu k<span style="color: #ddbb00;">&amp;ouml;</span>nnen. Ist weniger Platz vorhanden wird nur noch eine Spalte dargestellt.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/P&gt;</span></span>
&nbsp;</pre>
<p style="-moz-column-width: 200px;-moz-column-count: 2;font-weight: bold">Dieser Text wird in zwei Spalten angezeigt, es sei denn der zur Verf&uuml;gung stehende Platz reicht nicht aus um die Spalten mit einer Breite von mindestens 200 Pixeln darstellen zu k&ouml;nnen. Ist weniger Platz vorhanden wird nur noch eine Spalte dargestellt. Dieser Text wird in zwei Spalten angezeigt, es sei denn der zur Verf&uuml;gung stehende Platz reicht nicht aus um die Spalten mit einer Breite von mindestens 200 Pixeln darstellen zu k&ouml;nnen. Ist weniger Platz vorhanden wird nur noch eine Spalte dargestellt.</p>
<p><b>[funktioniert vorerst nur im <a href="http://www.mozilla.org/projects/firefox/">Mozilla Firefox 1.5</a>]</b></p>
<h3>Den Abstand zwischen den Spalten festlegen</h3>
<p>Normalerweise schließen die einzelnen Spalten immer direkt aneinander an. Dies ist aber nicht immer so gew&uuml;nscht, da der Text viel besser lesbar ist, wenn sich zwischen den einzelnen Spalten ein gewisser Abstand befindet. Um diesen Abstand festzulegen, kann man die CSS3 Eigenschaft <b>-moz-column-gap</b> verwenden. </p>
<pre class="html4strict"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;P</span> <span style="color: #000066;">style</span>=<span style="color: #ff0000;">&quot;-moz-column-count: 3;-moz-column-gap: 50px&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Dieser Text wird in zwei Spalten angezeigt,  wobei zwischen den einzelnen Spalten immer ein Abstand von mindestens 50 Pixeln angezeigt wird. Dieser Text wird in zwei Spalten angezeigt, wobei zwischen den einzelnen Spalten immer ein Abstand von mindestens 40 Pixeln angezeigt wird.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/P&gt;</span></span>
&nbsp;</pre>
<p>Das Ergebnis sollte dann wie erwartet so aussehen:</p>
<p style="-moz-column-count: 3;-moz-column-gap: 50px;font-weight: bold">Dieser Text wird in zwei Spalten angezeigt,  wobei zwischen den einzelnen Spalten immer ein Abstand von mindestens 40 Pixeln angezeigt wird. Dieser Text wird in zwei Spalten angezeigt,  wobei zwischen den einzelnen Spalten immer ein Abstand von mindestens 50 Pixeln angezeigt wird.</p>
<p><b>[funktioniert vorerst nur im <a href="http://www.mozilla.org/projects/firefox/">Mozilla Firefox 1.5</a>]</b></p>
<p>Wie zu sehen ist, lassen sich diese neuen CSS3 Eigenschaften sehr gut für das Layout von übersichtlichen Webseiten einsetzen. Es ist abzuwarten, wann dies auch von anderen Browsern außer dem Firefox 1.5 übernommen wird. Ich bin überzeugt, dass wir in der nächsten Zeit mehr Seiten sehen werden, die sich diese Features zu Nutzen machen werden.</p>
Similar Posts:<ul><li><a href="http://webmatze.de/css-auswahlliste-mit-checkboxen/" rel="bookmark" title="20. 07. 2002">CSS Auswahlliste mit Checkboxen</a></li>

<li><a href="http://webmatze.de/firefox3-kann-jetzt-auch-schuechtern/" rel="bookmark" title="7. 08. 2008">Firefox3 kann jetzt auch schüchtern</a></li>

<li><a href="http://webmatze.de/der-kleine-pfeil-mal-anders/" rel="bookmark" title="23. 08. 2002">Der kleine Pfeil mal anders</a></li>

<li><a href="http://webmatze.de/macromedia-mx-2004/" rel="bookmark" title="25. 08. 2003">Macromedia &#8211; MX 2004</a></li>

<li><a href="http://webmatze.de/meta-description-wie-wichtig-ist-sie-wirklich/" rel="bookmark" title="15. 07. 2008">Meta-Description: Wie wichtig ist sie wirklich?</a></li>
</ul><!-- Similar Posts took 6.252 ms -->]]></content:encoded>
			<wfw:commentRss>http://webmatze.de/text_in_spalten_css3_columns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FireBug 0.4 &#8211; Der ultimative Web Debugger</title>
		<link>http://webmatze.de/firebug-04-der-ultimative-web-debugger/</link>
		<comments>http://webmatze.de/firebug-04-der-ultimative-web-debugger/#comments</comments>
		<pubDate>Wed, 24 May 2006 13:52:00 +0000</pubDate>
		<dc:creator>webmatze</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML / XHTML]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://version3.webmatze.de/firebug-04-der-ultimative-web-debugger/</guid>
		<description><![CDATA[Webseiten von heute bestehen meistens nicht nur aus HTML und CSS, sondern häufig auch viel JavaScript. Es sind häufig gar keine Webseiten mehr, sondern schon richtige Webanwendungen. Und wir alle wissen, dass Anwendungen häufig auch Fehler enthalten können. Auch Webanwendungen sind davon nicht ausgeschlossen.Bisher war es meistens schwierig solche Fehler im JavaScript Code oder im [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.joehewitt.com/software/firebug/firebug.png" style="margin: 6px; float: left;" />Webseiten von heute bestehen meistens nicht nur aus HTML und CSS, sondern häufig auch viel JavaScript. Es sind häufig gar keine Webseiten mehr, sondern schon richtige Webanwendungen. Und wir alle wissen, dass Anwendungen häufig auch Fehler enthalten können. Auch Webanwendungen sind davon nicht ausgeschlossen.<br />Bisher war es meistens schwierig solche Fehler im JavaScript Code oder im HTML zu finden. Es fehlen die richtigen Tools, wie man sie z.B. bei der Programmierung mit Java ode C++ gewohnt ist, um diese Fehler aufzuspüren und zu beheben. Da HTML, CSS und JavaScript im Browser ausgeführt und angezeigt werden, braucht man auch Tools, um sie genau da - während sie ausgeführt werden - zu debuggen. Der Browser Firefox bietet hierfür einige gute Tools an. Ein guter Debugger ist z.B. <a href="http://www.mozilla.org/projects/venkman/">Venkman</a>. Und mit dem <a href="http://www.mozilla.org/projects/inspector/">DOM Inspector</a> kann man sich bequem den DOM Tree der Seiten anschauen.<br />Doch in Zeiten von web 2.0 und Ajax braucht man noch bessere und spezialisiertere Tools. Und eins dieser "Übertools" ist <a href="http://www.joehewitt.com/software/firebug/">FireBug</a>, welches jetzt in der <a href="http://www.joehewitt.com/blog/firebug_04_come.php">Version 0.4</a> erschienen ist.<br style="clear: both;" /><br />Hier ein kurzer Überblick über die neuenFeatures:<br /><b><br />JavaScript Debugger</b></p>
<p>FireBug ermöglicht es, Breakpoints im JavaScript Code zu setzen, Schritt für Schritt durch die Codezeilen zu springen und lokale Variablen sowie den Stack zu betrachten.</p>
<p><b>Stack Traces bei JavaScript Fehlern</b></p>
<p>Jeder JavaScript Fehler wird mit einem Stack Trace angezeigt. So kann man genau sehen, an welcher Stelle im Code und durch welchen Aufruf ein Fehler genau aufgetreten ist.</p>
<p><b>JavaScript Fehler debuggen</b></p>
<p>Wenn ein Fehler auftritt, reicht es meistens nicht, nur den Stack Trace zu sehen. Meistens möchte man auch sehen, welche Werte bestimmte Variablen gerade hatten, als der Fehler auftrat. Mit FireBug kann man durch die Einstellung "Break On Error" den Debugger automatisch anhalten lassen, wenn ein Fehler auftritt. Man wird dann sofort zur richtigen Stelle im Code gebracht.<br /><b><br />Logging Funktionalitäten</b></p>
<p>Über das <i>console </i>Objekt kann man verschiedene Nachrichten auf der Konsole ausgeben lassen, während der JavaScript Code ausgeführt wird. Dabei kann man verschiedene Stufen wählen, wie z.B. <i>console.debug()</i>, <i>console.info()</i>, <i>console.warn()</i> oder <i>console.error()</i>. Diese Meldungen werden dann auch noch in unterschiedlicher Farbdarstellung in der Konsole kenntlich gemacht.</p>
<p>Außerdem besitzt FireBug noch viele weitere wichtige und nützliche Funktionen. So kann man sich detailiert den Request anschauen, der bei Ajax gesendet wird. FireBug liefert auch eine sinnvolle JavaScript command line, um schnell kleine JavaScript Schnipsel ausführen zu können. Und über die verschiedensten Inspektoren können alle möglichen Aspekte von HTML, DOM, CSS und JavaScript genau betrachtet werden.</p>
<p>Ich finde das FireBug ein "Must Have" Tool für Webentwickler ist. Es läßt sich leicht als Erweiterung in den aktuellen <a href="http://www.mozilla.com/firefox/">Firefox 1.5 Browser</a> integrieren.</p>
Similar Posts:<ul><li><a href="http://webmatze.de/google-chrome-der-neue-browser/" rel="bookmark" title="3. 09. 2008">Google Chrome &#8211; Der neue Browser</a></li>

<li><a href="http://webmatze.de/hierarchische-menus-mit-css-erstellen/" rel="bookmark" title="4. 09. 2008">Hierarchische Menüs mit CSS erstellen</a></li>

<li><a href="http://webmatze.de/ist-display-none-jetzt-irrelevant/" rel="bookmark" title="12. 08. 2008">Ist display=&#8221;none&#8221; jetzt irrelevant?</a></li>

<li><a href="http://webmatze.de/wie-erstelle-ich-eine-webseite/" rel="bookmark" title="11. 08. 2009">Wie erstelle ich eine Webseite?</a></li>

<li><a href="http://webmatze.de/openlaszlo-opensource-flex-alternative/" rel="bookmark" title="27. 10. 2004">OpenLaszlo &#8211; OpenSource Flex Alternative</a></li>
</ul><!-- Similar Posts took 4.525 ms -->]]></content:encoded>
			<wfw:commentRss>http://webmatze.de/firebug-04-der-ultimative-web-debugger/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Runde Tabellen mit Mozilla</title>
		<link>http://webmatze.de/runde-tabellen-mit-mozilla/</link>
		<comments>http://webmatze.de/runde-tabellen-mit-mozilla/#comments</comments>
		<pubDate>Fri, 18 Mar 2005 17:27:37 +0000</pubDate>
		<dc:creator>webmatze</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://version3.webmatze.de/2005/03/18/runde-tabellen-mit-mozilla/</guid>
		<description><![CDATA[In einem meiner ersten Artikel beschrieb ich, wie man seine Tabellen mit einfachen, runden Ecken versehen kann. Alles was man damals dazu ben&#246;tigte waren vier Grafiken. F&#252;r jede runde Ecke eine.

Doch inzwischen sind einige Winter durchs Land gezogen und ich habe mich gefragt, ob es nicht doch eine andere, leichtere M&#246;glichkeit geben k&#246;nnte. Und siehe da, eine kurze Suche im Netz brachte mich auf den richtigen Weg! CSS3 ist die Antwort!]]></description>
			<content:encoded><![CDATA[<p>In einem meiner ersten Artikel beschrieb ich, wie man seine Tabellen mit einfachen, runden Ecken versehen kann. Alles was man damals dazu ben&ouml;tigte waren vier Grafiken. F&uuml;r jede runde Ecke eine.</p>
<p>Doch inzwischen sind einige Winter durchs Land gezogen und ich habe mich gefragt, ob es nicht doch eine andere, leichtere M&ouml;glichkeit geben k&ouml;nnte. Und siehe da, eine kurze Suche im Netz brachte mich auf den richtigen Weg!</p>
<h3>CSS3 ist die Antwort!</h3>
<p>In <b>CSS3</b> sind einige Erweiterungen zum aktuellen Standard CSS2 vorgesehen, unter anderm auch die M&ouml;glichkeit runde Ecken darstellen zu k&ouml;nnen. Das <b>CSS3 Modul: Border</b> existiert momentan jedoch nur als <a href="http://www.w3.org/TR/css3-border/#the-border-radius">Arbeitspapier (Working Draft)</a> des W3C. Jedoch hat sich Mozilla einiger dieser Erweiterungen angenommen und schon als <b>vorl&auml;ufige Erweiterung</b> (Proprietary Extensions) umgesetzt. Diese werden durch ein vorangestelltest <b>-moz-</b> gekennzeichnet. Bei einer dieser Erweiterungen handelt es sich um <b>-moz-border-radius</b>. Und eben diese ben&ouml;tigen f&uuml;r unsere runden Ecken!<br />
<span id="more-19"></span></p>
<h3>-moz-border-radius - Mach mich rund</h3>
<p>Fangen wir doch gleich an und bauen uns ein Beispiel zusammen. Zuerst die Style Definition:</p>
<pre class="css">&nbsp;
<span style="color: #6666ff;">.rundeEcken</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">text-align</span>: <span style="color: #993333;">center</span>;
  border<span style="color: #3333ff;">:<span style="color: #933;">2px</span></span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#<span style="color: #933;">000000</span></span>;
  -moz-border-radius: <span style="color: #933;">15px</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<p>Das Ganze weisen wir nun einer Tabelle zu:</p>
<pre class="html4strict">&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;table</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;rundeEcken&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
  ...
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/table&gt;</span></span>
&nbsp;</pre>
<p>Und als Ergebnis erhalten wir folgende Tabelle:</p>
<table width="200" border="0" bgcolor="#FFFFFF" style="-moz-border-radius: 15px;border:2px solid #000000;text-align: center;">
<tr>
<td>
<p>Diese Tabelle hat runde Ecken, und das ganz ohne Grafiken. (Mozilla/NS6)</p>
</td>
</tr>
</table>
<p></p>
<p>Allerdings nur mit <b>Mozilla/NS6</b>. In allen anderen Browsern erscheint die Tabelle ganz normal mit Ecken.</p>
<h3>Ein paar Schritte weiter...</h3>
<p><b>-moz-border-radius</b> ist eine Abk&uuml;rzung um jede der vier Ecken zu kontrollieren. Dazu kann man <b>-moz-border-radius</b> vier Werte &uuml;bergeben die den Radius jeder einzelnen Ecke einstellen und zwar in folgender Reihenfolge: oben-links [top-left], oben-rechts [top-right], unten-rechts [bottom-right], unten-links [bottom-left].</p>
<pre class="css">&nbsp;
<span style="color: #6666ff;">.rundeEcken</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">text-align</span>: <span style="color: #993333;">center</span>;
  border<span style="color: #3333ff;">:<span style="color: #933;">2px</span></span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#<span style="color: #933;">000000</span></span>;
  -moz-border-radius: <span style="color: #933;">5px</span> <span style="color: #933;">10px</span> <span style="color: #933;">15px</span> <span style="color: #933;">20px</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<table width="200" border="0" bgcolor="#FFFFFF" style="-moz-border-radius: 5px 10px 15px 20px; border:2px solid #000000; text-align: center;">
<tr>
<td>
<p>Diese Tabelle hat runde Ecken, und das ganz ohne Grafiken. (Mozilla/NS6)</p>
</td>
</tr>
</table>
<p></p>
<p>Wodurch sich ein interessanter Effekt erzielen l&auml;&szlig;t. Genauso gut ist es aber auch m&ouml;glich nur zwei Werte zu &uuml;bergeben, wodurch jeweils die linke obere und die rechte untere bzw. die rechte obere und die linke untere Ecke kontrolliert werden k&ouml;nnen. Das sieht dann folgenderma&szlig;en aus</p>
<pre class="css">&nbsp;
<span style="color: #6666ff;">.rundeEcken</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">text-align</span>: <span style="color: #993333;">center</span>;
  border<span style="color: #3333ff;">:<span style="color: #933;">2px</span></span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#<span style="color: #933;">000000</span></span>;
  -moz-border-radius: <span style="color: #933;">30px</span> <span style="color: #933;">5px</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<table width="200" border="0" bgcolor="#FFFFFF" style="-moz-border-radius: 30px 5px; border:2px solid #000000; text-align: center;">
<tr>
<td>
<p>Diese Tabelle hat runde Ecken, und das ganz ohne Grafiken. (Mozilla/NS6)</p>
</td>
</tr>
</table>
<p></p>
<h3>Jede Ecke einzeln</h3>
<p>M&ouml;chte man jede Ecke einzeln kontrollieren kann man sich auch folgender Erweiterungen bedienen:</p>
<pre class="css">&nbsp;
<span style="color: #6666ff;">.rundeEcken</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">text-align</span>: <span style="color: #993333;">center</span>;
  border<span style="color: #3333ff;">:<span style="color: #933;">2px</span></span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#<span style="color: #933;">000000</span></span>;
  -moz-border-radius-topleft: <span style="color: #933;">20px</span>;
  -moz-border-radius-topright: <span style="color: #933;">15px</span>;
  -moz-border-radius-bottomleft: <span style="color: #933;">10px</span>;
  -moz-border-radius-bottomright: <span style="color: #933;">5px</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<p>Als Wert kann man jeweils eine Bereich zwischen 0-30px, bzw. Prozentangaben verwenden.</p>
<h3>Ein paar abschlie&szlig;ende Worte</h3>
<p>Jeder der sich nun begeistert daranmachen will und dies in sein n&auml;chstes HTML Design &uuml;bernimmt, sollte jedoch immer im Hinterkopf behalten, das dies kein Standard ist (zumindest solange nicht, bis CSS3 zum Standard geworden ist) und somit auch nicht in allen Browsern zu sehen ist.</p>
<p>Auch sind diese runden Ecken nicht mit allen Mozilla Versionen zu sehen. Erst ab Version Mozilla 0.92 d&uuml;rften sie funktionieren. Und es ist auch nicht ausgeschlossen, das sie in sp&auml;teren Versionen irgendwann nicht mehr funktionieren.</p>
<p>Also viel Spa&szlig; beim Ausprobieren und Experimentieren.</p>
Similar Posts:<ul><li><a href="http://webmatze.de/css-formular-design-textfelder/" rel="bookmark" title="11. 08. 2001">CSS Formular Design &#8211; Textfelder</a></li>

<li><a href="http://webmatze.de/mozilla-corporation-neues-design-neuer-browser/" rel="bookmark" title="30. 11. 2005">Mozilla Corporation &#8211; Neues Design &#8211; Neuer Browser</a></li>

<li><a href="http://webmatze.de/css-button-tricks/" rel="bookmark" title="23. 01. 2003">CSS Button Tricks</a></li>

<li><a href="http://webmatze.de/sortiertbare-listen-mit-javascript-per-drag-and-drop/" rel="bookmark" title="12. 01. 2005">Sortiertbare Listen mit Javascript per Drag and Drop</a></li>

<li><a href="http://webmatze.de/wirklich-einfache-javascript-tooltips/" rel="bookmark" title="12. 01. 2006">Wirklich einfache JavaScript Tooltips</a></li>
</ul><!-- Similar Posts took 5.474 ms -->]]></content:encoded>
			<wfw:commentRss>http://webmatze.de/runde-tabellen-mit-mozilla/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CSS Button Tricks</title>
		<link>http://webmatze.de/css-button-tricks/</link>
		<comments>http://webmatze.de/css-button-tricks/#comments</comments>
		<pubDate>Thu, 23 Jan 2003 11:00:41 +0000</pubDate>
		<dc:creator>webmatze</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML / XHTML]]></category>

		<guid isPermaLink="false">http://version3.webmatze.de/2003/01/23/css-button-tricks/</guid>
		<description><![CDATA[Jeder der schon Formulare in HTML erstellt hat, wird sich bestimmt schon einmal die Frage gestellt haben, ob es nicht eine M&#246;glichkeit gibt, um den Buttons ein anderes Aussehen zu geben.]]></description>
			<content:encoded><![CDATA[<p>Jeder der schon Formulare in HTML erstellt hat, wird sich bestimmt schon einmal die Frage gestellt haben, ob es nicht eine M&ouml;glichkeit gibt, um den Buttons ein anderes Aussehen zu geben.</p>
<h3>Standard Button</h3>
<p>Standardm&auml;&szlig;ig haben die Buttons ein graues langweiliges &Auml;u&szlig;eres. Je nach Betriebssystem und Browser können diese zwar etwas unterschiedlich aussehen, aber sie könnten dennoch viel individueller aussehen, wenn man nur weiß wie.</p>
<input type="submit" name="Abschicken" value="Text" style="background: #CCCCCC; width: 100px">
<br />
HTML Code:</p>
<pre class="html4strict">&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;input</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;Button1&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;Text&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span>
&nbsp;</pre>
<h3>Farbiger Button </h3>
<p>Doch wie man leicht erkennen kann, will so ein Button nicht wirklich in das Design der Seite passen. Er sticht f&ouml;rmlich heraus und sieht wie ein Fremdk&ouml;rper aus. Warum passen wir nicht einfach die Farbe an? Okay!<br />
<span id="more-25"></span></p>
<input type="submit" name="Abschicken2" value="Text" style="width: 100px;background-color: #9BCCCA" />
<br />
HTML Code:</p>
<pre class="html4strict">&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;input</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;Button1&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;Text&quot;</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;farbig&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span>
&nbsp;</pre>
<p>CSS Code:</p>
<pre class="css">&nbsp;
input<span style="color: #6666ff;">.farbig</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">background-color</span>: <span style="color: #cc00cc;">#9BCCCA</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<h3>Button mit einem Ikon </h3>
<p>Jetzt passt der Button zwar farblich zur Seite, doch irgendwie ist er immer noch etwas langweilig. Wie w&auml;re es, wenn er ein eigenes Ikon h&auml;tte, an dem jeder gleich erkennen kann, wof&uuml;r der Button zust&auml;ndig ist! Also schnell ein Ikon zeichnen und los gehts.</p>
<input type="submit" name="Abschicken22" value="Text" style="width: 100px;background-image: url(http://webmatze.de/wp-content/uploads/2008/03/ikon.gif);background-color: #9BCCCA;background-repeat: no-repeat;background-position: left center;" />
</p>
<p>HTML Code:</p>
<pre>&nbsp;
&lt;input type=&quot;submit&quot; name=&quot;Button1&quot; value=&quot;Text&quot; class=&quot;ikon&quot; /&gt;
&nbsp;</pre>
<p>CSS Code:</p>
<pre class="css">&nbsp;
input<span style="color: #6666ff;">.ikon</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">background-image</span>: <span style="color: #993333;">url</span><span style="color: #66cc66;">&#40;</span><span style="color: #933;">ikon<span style="color: #6666ff;">.gif</span></span><span style="color: #66cc66;">&#41;</span>;
  <span style="color: #000000; font-weight: bold;">background-color</span>: <span style="color: #cc00cc;">#9BCCCA</span>;
  <span style="color: #000000; font-weight: bold;">background-repeat</span>: <span style="color: #993333;">no-repeat</span>;
  <span style="color: #000000; font-weight: bold;">background-position</span>: <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #993333;">center</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<h3>Weitere Button Kombinationen </h3>
<p>Okay, das Ikon mag vielleicht ein Schnellschu&szlig; sein, aber Ihr m&uuml;&szlig;t zugeben, so einen Button sieht man nicht alle Tage! Und das alles, ohne gro&szlig;e Grafiken f&uuml;r die Button laden zu m&uuml;ssen (abgesehen von dem kleinen Ikon). Alles l&auml;&szlig;t sich problemlos mit CSS l&ouml;sen.</p>
<p>Wem das noch nicht genug ist, der Button l&auml;&szlig;t sich nat&uuml;rlich noch ein ganzes St&uuml;ck weiter ver&auml;ndern!</p>
<input type="submit" name="Abschicken222" value="Text" style="width: 100px;border: thin #333333 solid;background-color: #9BCCCA;background-image: url(http://webmatze.de/wp-content/uploads/2008/03/ikon.gif);background-repeat: no-repeat;background-position: left center;" />
<input type="submit" name="Abschicken2222" value="Text" style="width: 100px;border: thin #333333 dashed;background-color: #9BCCCA;background-image: url(http://webmatze.de/wp-content/uploads/2008/03/ikon.gif);background-repeat: no-repeat;background-position: left center;" />
<input type="submit" name="Abschicken22222" value="Text" style="width: 100px;border: double;background-color: #9BCCCA;background-image: url(http://webmatze.de/wp-content/uploads/2008/03/ikon.gif);background-repeat: no-repeat;background-position: left center ;border-color: #CCCCCC #333333 #333333 #CCCCCC;border-width: thin medium medium thin;" />
<input type="submit" name="Abschicken222222" value="Text" style="width: 100px;border: medium groove;background-color: #9BCCCA;background-image: url(http://webmatze.de/wp-content/uploads/2008/03/ikon.gif);background-repeat: no-repeat;background-position: left center ;border-color: #CCCCCC #333333 #333333 #CCCCCC;" />
<input type="submit" name="Abschicken2222222" value="Text" style="width: 100px;border: medium outset;background-color: #9BCCCA;background-image: url(http://webmatze.de/wp-content/uploads/2008/03/ikon.gif);background-repeat: no-repeat;background-position: left center ;border-color: #CCCCCC #333333 #333333 #CCCCCC;" />
</p>
<p>HTML Code:</p>
<pre class="html4strict">&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;input</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;Button1&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;Text&quot;</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;rahmenX&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span>
&nbsp;</pre>
<p>CSS Code:</p>
<pre class="css">&nbsp;
input<span style="color: #6666ff;">.rahmen</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">border</span>: <span style="color: #993333;">thin</span> <span style="color: #cc00cc;">#<span style="color: #933;">333333</span></span> <span style="color: #993333;">solid</span>;
  <span style="color: #000000; font-weight: bold;">background-color</span>: <span style="color: #cc00cc;">#9BCCCA</span>;
  <span style="color: #000000; font-weight: bold;">background-image</span>: <span style="color: #993333;">url</span><span style="color: #66cc66;">&#40;</span><span style="color: #933;">media/ikon<span style="color: #6666ff;">.gif</span></span><span style="color: #66cc66;">&#41;</span>;
  <span style="color: #000000; font-weight: bold;">background-repeat</span>: <span style="color: #993333;">no-repeat</span>;
  <span style="color: #000000; font-weight: bold;">background-position</span>: <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #993333;">center</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
input<span style="color: #6666ff;">.rahmen2</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">border</span>: <span style="color: #993333;">thin</span> <span style="color: #cc00cc;">#<span style="color: #933;">333333</span></span> <span style="color: #993333;">dashed</span>;
  <span style="color: #000000; font-weight: bold;">background-color</span>: <span style="color: #cc00cc;">#9BCCCA</span>;
  <span style="color: #000000; font-weight: bold;">background-image</span>: <span style="color: #993333;">url</span><span style="color: #66cc66;">&#40;</span><span style="color: #933;">media/ikon<span style="color: #6666ff;">.gif</span></span><span style="color: #66cc66;">&#41;</span>;
  <span style="color: #000000; font-weight: bold;">background-repeat</span>: <span style="color: #993333;">no-repeat</span>;
  <span style="color: #000000; font-weight: bold;">background-position</span>: <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #993333;">center</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
input<span style="color: #6666ff;">.rahmen3</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">border</span>: <span style="color: #993333;">double</span>;
  <span style="color: #000000; font-weight: bold;">background-color</span>: <span style="color: #cc00cc;">#9BCCCA</span>;
  <span style="color: #000000; font-weight: bold;">background-image</span>: <span style="color: #993333;">url</span><span style="color: #66cc66;">&#40;</span><span style="color: #933;">media/ikon<span style="color: #6666ff;">.gif</span></span><span style="color: #66cc66;">&#41;</span>;
  <span style="color: #000000; font-weight: bold;">background-repeat</span>: <span style="color: #993333;">no-repeat</span>;
  <span style="color: #000000; font-weight: bold;">background-position</span>: <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #993333;">center</span> ;
  <span style="color: #000000; font-weight: bold;">border-color</span>: <span style="color: #cc00cc;">#CCCCCC</span> <span style="color: #cc00cc;">#<span style="color: #933;">333333</span></span> <span style="color: #cc00cc;">#<span style="color: #933;">333333</span></span> <span style="color: #cc00cc;">#CCCCCC</span>;
  <span style="color: #000000; font-weight: bold;">border-width</span>: <span style="color: #993333;">thin</span> <span style="color: #993333;">medium</span> <span style="color: #993333;">medium</span> <span style="color: #993333;">thin</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
input<span style="color: #6666ff;">.rahmen4</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">border</span>: <span style="color: #993333;">medium</span> <span style="color: #993333;">groove</span>;
  <span style="color: #000000; font-weight: bold;">background-color</span>: <span style="color: #cc00cc;">#9BCCCA</span>;
  <span style="color: #000000; font-weight: bold;">background-image</span>: <span style="color: #993333;">url</span><span style="color: #66cc66;">&#40;</span><span style="color: #933;">media/ikon<span style="color: #6666ff;">.gif</span></span><span style="color: #66cc66;">&#41;</span>;
  <span style="color: #000000; font-weight: bold;">background-repeat</span>: <span style="color: #993333;">no-repeat</span>;
  <span style="color: #000000; font-weight: bold;">background-position</span>: <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #993333;">center</span> ;
  <span style="color: #000000; font-weight: bold;">border-color</span>: <span style="color: #cc00cc;">#CCCCCC</span> <span style="color: #cc00cc;">#<span style="color: #933;">333333</span></span> <span style="color: #cc00cc;">#<span style="color: #933;">333333</span></span> <span style="color: #cc00cc;">#CCCCCC</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
input<span style="color: #6666ff;">.rahmen5</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">border</span>: <span style="color: #993333;">medium</span> <span style="color: #993333;">outset</span>;
  <span style="color: #000000; font-weight: bold;">background-color</span>: <span style="color: #cc00cc;">#9BCCCA</span>;
  <span style="color: #000000; font-weight: bold;">background-image</span>: <span style="color: #993333;">url</span><span style="color: #66cc66;">&#40;</span><span style="color: #933;">media/ikon<span style="color: #6666ff;">.gif</span></span><span style="color: #66cc66;">&#41;</span>;
  <span style="color: #000000; font-weight: bold;">background-repeat</span>: <span style="color: #993333;">no-repeat</span>;
  <span style="color: #000000; font-weight: bold;">background-position</span>: <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #993333;">center</span> ;
  <span style="color: #000000; font-weight: bold;">border-color</span>: <span style="color: #cc00cc;">#CCCCCC</span> <span style="color: #cc00cc;">#<span style="color: #933;">333333</span></span> <span style="color: #cc00cc;">#<span style="color: #933;">333333</span></span> <span style="color: #cc00cc;">#CCCCCC</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<p>So, viel Spa&szlig; beim Ausprobieren. Es lassen sich noch eine Vielzahl anderer Kombinationen erstellen. Einfach ein wenig rumspielen.</p>
Similar Posts:<ul><li><a href="http://webmatze.de/hierarchische-menus-mit-css-erstellen/" rel="bookmark" title="4. 09. 2008">Hierarchische Menüs mit CSS erstellen</a></li>

<li><a href="http://webmatze.de/wie-man-wirklich-ansprechende-formulare-erstellt/" rel="bookmark" title="5. 08. 2008">Wie man wirklich ansprechende Formulare erstellt</a></li>

<li><a href="http://webmatze.de/css-formular-design-textfelder/" rel="bookmark" title="11. 08. 2001">CSS Formular Design &#8211; Textfelder</a></li>

<li><a href="http://webmatze.de/css-3-rotating-image-gallery/" rel="bookmark" title="19. 08. 2008">CSS 3: Rotating Image Gallery</a></li>

<li><a href="http://webmatze.de/update_javascript_button_tricks/" rel="bookmark" title="3. 12. 2003">Update: JavaScript Button Tricks</a></li>
</ul><!-- Similar Posts took 4.526 ms -->]]></content:encoded>
			<wfw:commentRss>http://webmatze.de/css-button-tricks/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Der kleine Pfeil mal anders</title>
		<link>http://webmatze.de/der-kleine-pfeil-mal-anders/</link>
		<comments>http://webmatze.de/der-kleine-pfeil-mal-anders/#comments</comments>
		<pubDate>Fri, 23 Aug 2002 10:27:23 +0000</pubDate>
		<dc:creator>webmatze</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML / XHTML]]></category>

		<guid isPermaLink="false">http://version3.webmatze.de/2002/08/23/der-kleine-pfeil-mal-anders/</guid>
		<description><![CDATA[Ihr habt Euch vielleicht schon einmal gefragt, warum auf manchen anderen Seiten euer Cursor anders aussieht, als er standardm&#228;&#223;ig eingestellt ist? Dieser Effekt wird durch CSS (Cascading Style Sheets) erm&#246;glicht und in diesem Artikel erkl&#228;re ich, wie Ihr diesen Effekt auf euren Seiten einbinden k&#246;nnt.]]></description>
			<content:encoded><![CDATA[<p>Ihr habt Euch vielleicht schon einmal gefragt, warum auf manchen anderen Seiten euer Cursor anders aussieht, als er standardm&auml;&szlig;ig eingestellt ist? Dieser Effekt wird durch <b>CSS (Cascading Style Sheets)</b> erm&ouml;glicht und in diesem Artikel erkl&auml;re ich, wie Ihr diesen Effekt auf euren Seiten einbinden k&ouml;nnt.</p>
<p>Im Voraus ist zu sagen, dass derzeit nur wenige Browser diesen CSS-Effekt unterst&uuml;tzen. Allen voran der neue <b>Opera 5.02</b> und <b>Netscape 4.75</b>. Wie der <b>MSIE&nbsp;5.5</b> unterst&uuml;tzt auch der neue <b>Netscape 6</b> Browser diesen Effekt, jedoch nicht mit dem Funktionsumfang wie der MSIE.</p>
<h3>Den Cursor auf der ganzen Seite &auml;ndern </h3>
<p>Daf&uuml;r gibt es zwei M&ouml;glichkeiten:</p>
<p>1. Man legt die Cursor-Art im <b><BODY></b> Tag fest.</p>
<pre class="html4strict">&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;body</span> <span style="color: #000066;">style</span>=<span style="color: #ff0000;">&quot;cursor: cusorart&quot;</span>...<span style="color: #000000; font-weight: bold;">&gt;</span></span>
&nbsp;</pre>
<p>2. Der Befehl wird zwischen den <b><HEAD></b> Tags eingef&uuml;gt.</p>
<pre class="html4strict">&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;style</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/css&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
  body {
    cursor: cursorart;
  }
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/style&gt;</span></span>
&nbsp;</pre>
<p><span id="more-24"></span><br />
<b>cursorart</b> mu&szlig; hierbei mit dem gew&uuml;nschten Code f&uuml;r den Cursor ausgetauscht werden. Eine <a href="#cursorart" class="smalllink">Liste der Cursor-Arten</a> ist weiter unten zu finden. </p>
<p>Hat man einen der beiden Codes erfolgreich in die Seite eingebunden, wird diese jetzt fast komplett mit dem gew&uuml;nschten Cursor angezeigt. Die einzige Ausnahme sind Hyperlinks.</p>
<h3>Elemente mit eigenem Cursor </h3>
<p>Auf die Weise kann man jedem beliebigen Element einer Webseite einen eigenen Cursor zuweisen, z.B. <b>&lt;p&gt;</b>, <b>&lt;h1&gt;</b>-<b>&lt;h6&gt;</b>, <b>&lt;u&gt;</b>, <b>&lt;b&gt;</b> usw. Ob dies f&uuml;r alle Tags sinnvoll ist, ist wiederum eine andere Sache.<br> Auch hierf&uuml;r hat man zwei verschiedene M&ouml;glichkeiten zur Auswahl:</p>
<p><b>1. In das Element einbetten.</b></p>
<pre class="html4strict">&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;b</span> <span style="color: #000066;">style</span>=<span style="color: #ff0000;">&quot;cursor:cursorart;&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>HALLO<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/b&gt;</span></span>
&nbsp;</pre>
<p>z.B. <b>&lt;b style="cursor:help;"&gt;Scully?&lt;/b&gt;</b> ergibt: <b style="cursor:help;">Scully?</b></p>
<p>Diese Art von Formatierung hat den Vorteil, dass sich ausschlie&szlig;lich bei diesem Tag/Wort der Cursor ver&auml;ndert. In den anderen Bereichen der Seite wird immer noch der Standard-Cursor verwendet.</p>
<p><b>2. Zwischen die <HEAD> Tags</b></p>
<pre class="html4strict">&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;style</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/css&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
  b {
    cursor: wait;
  }
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/style&gt;</span></span>
&nbsp;</pre>
<p>z.B. <b>&lt;b&gt;Ja Mulder!&lt;/b&gt;</b> ergibt: <b style="cursor:wait;">Ja Mulder!</b></p>
<p>Bei dieser Art der Formatierung &auml;ndert sich der Cursor bei jedem <b>&lt;b&gt;</b> Tag auf der gesamten Seite. Spielt man hier und da mit dem Code, kann man diesen Effekt auch auf andere HTML-Tags &uuml;bertragen.</p>
<p>(!) Es ist aber <b>Vorsicht</b> geboten, wenn der Cursor z.B. einen Wartezustand signalisieren soll. Dieser könnte dazu führen, dass der Nutzer denkt die Seite würde noch laden. Das wäre sicher nicht der gewünschte Effekt(!)</p>
<h3><a name="cursorart"></a>Liste der verschieden Cursor-Arten </h3>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th width="50%">Cursorart</th>
<th width="50%">Aussehen</th>
</tr>
<tr>
<td width="50%">&nbsp;</td>
<td width="50%">&nbsp;</td>
</tr>
<tr>
<td width="50%">auto</td>
<td width="50%">
<div align="left" style="cursor:auto">Normaleinstellung</div>
</td>
</tr>
<tr>
<td width="50%">default</td>
<td width="50%">
<div align="left" style="cursor:default">Standard-Cursor</div>
</td>
</tr>
<tr>
<td width="50%">crosshair</td>
<td width="50%">
<div align="left" style="cursor:crosshair">Kreuz</div>
</td>
</tr>
<tr>
<td width="50%">pointer (hand)</td>
<td width="50%">
<div align="left" style="cursor:pointer">Hand</div>
</td>
</tr>
<tr>
<td width="50%">move</td>
<td width="50%">
<div align="left" style="cursor:move">Verschiebe-Kreuz</div>
</td>
</tr>
<tr>
<td width="50%">n-resize</td>
<td width="50%">
<div align="left" style="cursor:n-resize">Pfeil zeigt nach<br />
		  oben</div>
</td>
</tr>
<tr>
<td width="50%">ne-resize</td>
<td width="50%">
<div align="left" style="cursor:ne-resize">rechts oben</div>
</td>
</tr>
<tr>
<td width="50%">e-resize</td>
<td width="50%">
<div align="left" style="cursor:e-resize">rechts</div>
</td>
</tr>
<tr>
<td width="50%">se-resize</td>
<td width="50%">
<div align="left" style="cursor:se-resize">rechts unten</div>
</td>
</tr>
<tr>
<td width="50%">s-resize</td>
<td width="50%">
<div align="left" style="cursor:s-resize">unten</div>
</td>
</tr>
<tr>
<td width="50%">sw-resize</td>
<td width="50%">
<div align="left" style="cursor:sw-resize">links unten</div>
</td>
</tr>
<tr>
<td width="50%">w-resize</td>
<td width="50%">
<div align="left" style="cursor:w-resize">links</div>
</td>
</tr>
<tr>
<td width="50%">nw-resize</td>
<td width="50%">
<div align="left" style="cursor:nw-resize">links oben</div>
</td>
</tr>
<tr>
<td width="50%">text</td>
<td width="50%">
<div align="left" style="cursor:text">Text-Cursor (wie in<br />
		  Word)</div>
</td>
</tr>
<tr>
<td width="50%">wait</td>
<td width="50%">
<div align="left" style="cursor:wait">Wartezustand (meist<br />
		  Sanduhr)</div>
</td>
</tr>
<tr>
<td width="50%">help</td>
<td width="50%">
<div align="left" style="cursor:help">Hilfe (meist Fragezeichen)</div>
</td>
</tr>
</table>
<p>&nbsp;<br />
Es gibt noch eine andere Cursor-Art, bei der man selbst eine <b>Grafik als Cursor</b> bestimmen kann. Da dies nach einem Test in vier verschieden Browsern nicht funktionierte, habe ich diesen Befehl weggelassen.</p>
Similar Posts:<ul><li><a href="http://webmatze.de/kleine-style-tricks-grosse-wirkung/" rel="bookmark" title="16. 08. 2002">Kleine Style Tricks &#8211; gro&szlig;e Wirkung</a></li>

<li><a href="http://webmatze.de/wirklich-einfache-javascript-tooltips/" rel="bookmark" title="12. 01. 2006">Wirklich einfache JavaScript Tooltips</a></li>

<li><a href="http://webmatze.de/runde-tabellen-mit-mozilla/" rel="bookmark" title="18. 03. 2005">Runde Tabellen mit Mozilla</a></li>

<li><a href="http://webmatze.de/das-problem-mit-scripaculous-effectscroll/" rel="bookmark" title="10. 08. 2006">Das Problem mit scrip.aculo.us Effect.scroll()</a></li>

<li><a href="http://webmatze.de/einfuhrung-in-php/" rel="bookmark" title="19. 01. 2006">Einf&uuml;hrung in PHP</a></li>
</ul><!-- Similar Posts took 5.515 ms -->]]></content:encoded>
			<wfw:commentRss>http://webmatze.de/der-kleine-pfeil-mal-anders/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
