<?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>Web Dev Bros &#187; CSS</title>
	<atom:link href="http://www.webdevbros.net/category/deutsche-artikel/css-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webdevbros.net</link>
	<description>hot talk about web development</description>
	<lastBuildDate>Thu, 20 Jan 2011 19:55:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Worst practices</title>
		<link>http://www.webdevbros.net/2006/03/22/worst-practices/</link>
		<comments>http://www.webdevbros.net/2006/03/22/worst-practices/#comments</comments>
		<pubDate>Wed, 22 Mar 2006 12:22:47 +0000</pubDate>
		<dc:creator>Michal</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Deutsche Artikel]]></category>

		<guid isPermaLink="false">http://www.webdevbros.net/2006/03/22/worst-practices/</guid>
		<description><![CDATA[Jeder kennt "Best practice" Beispiele. Was ist aber mit den "Worst practices"? Heut les ich im Dot.Net Magazin (Ausgabe 4.06) einen Artikel über "Saubere Nicht-Programmierer". Dabei ging es um Verwendung von CSS, besser gesagt um eine Art wie man es nicht tun sollte. Ich fands ganz lustig, da es sich hierbei um eine grössere Website [...]]]></description>
			<content:encoded><![CDATA[<p>Jeder kennt "Best practice" Beispiele. Was ist aber mit den "Worst practices"? Heut les ich im Dot.Net Magazin (Ausgabe 4.06) einen Artikel über "Saubere Nicht-Programmierer". Dabei ging es um Verwendung von CSS, besser gesagt um eine Art wie man es nicht tun sollte.<br />
<span id="more-56"></span><br />
Ich fands ganz lustig, da es sich hierbei um eine grössere Website handelt (TV.com) bei der anscheinend Profis am Werk sind :) Die Typen nutzen CSS nämlich nicht zur Trennung von Inhalt und Layout, sondern um sich anscheinend Tipparbeit zu ersparen. Es werden Klassen erstellt die genau das notieren was der Name beinhaltet (nur abgekürzt) .</p>
<p><strong>Beispiel:</strong></p>
<div class="igBar"><span id="lcss-2"><a href="#" onclick="javascript:showCodeTxt('css-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-2">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.f-<span style="color: #993333;">white</span> </span><span style="color: #66cc66;">&#123;</span> <span style="color: #000000; font-weight: bold;">color</span>:#fff <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.f-<span style="color: #993333;">bold</span> </span><span style="color: #66cc66;">&#123;</span> font-weight<span style="color: #3333ff;">:<span style="color: #993333;">bold</span> </span><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Dies wird dann zb. so verwendet:
<div class="f-white f-bold">. Hab mir schon überlegt welche Vorteile das bringen könnt... Hab keinen Schimmer.</p>
<p>Im Magazin war noch die Quelle angegeben (<a href="http://www.thedailywtf.com/forums/57053/showpost.aspx">http://www.thedailywtf.com/forums/57053/showpost.aspx</a>), wo man noch das ein oder andere Highlight findet. Lustig zu lesen für alle die mit CSS und HTML zu tun haben. Man sieht auch dieser Bereich kann anscheinend unterschätzt werden oder aber TV.com wollte bewusst auf sich aufmerksam machen - und so mehr Hits erreichen - mit einer vielleicht neuen Methode der Besucherbeschaffung. Die Hits sind sicherlich gestiegen nachdem es mal in ein paar Magazinen und Foren erwähnt wurde.</p>
<div><table> <td><iframe src='http://digg.com/api/diggthis.php?w=new&amp;u=http://www.webdevbros.net/2006/03/22/worst-practices/&amp;t=Worst+practices&amp;s=normal' height='80' width='52' frameborder='0' scrolling='no'></iframe></td> <td><iframe src='http://www.reddit.com/button_content?newwindow=1&amp;url=http://www.webdevbros.net/2006/03/22/worst-practices/&amp;title=Worst+practices&amp;t=2 ' height='80' width='52' scrolling='no' frameborder='0' ></iframe></td> <td><iframe src='http://widgets.dzone.com/links/widgets/zoneit.html?url=http://www.webdevbros.net/2006/03/22/worst-practices/&amp;title=Worst+practices&amp;t=1 ' height='80' width='52' scrolling='no' frameborder='0' ></iframe></td> <td><script type="text/javascript"><!--yahooBuzzArticleHeadline=Worst+practices;//--></script><script type="text/javascript" src="http://d.yimg.com/ds/badge2.js" badgetype=square></script></td> <td><script type="text/javascript">tweetmeme_url='http://www.webdevbros.net/2006/03/22/worst-practices/'; tweetmeme_style = 'normal';; </script><script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js" ></script></td></table></div><!-- This is a HTML comment, it will not display in any page. Feel free to remove this comment if it cause any inconvenient to you.
	Thanks for using digg digg, please visit http://www.mkyong.com/blog/digg-digg-wordpress-plugin for any comments and ideas, 
	
    Author : Yong Mook Kim
    Website : http://www.mkyong.com
	-->]]></content:encoded>
			<wfw:commentRss>http://www.webdevbros.net/2006/03/22/worst-practices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wiederverwendung von Stylesheetangaben</title>
		<link>http://www.webdevbros.net/2005/03/02/wiederverwendung-von-stylesheetangaben/</link>
		<comments>http://www.webdevbros.net/2005/03/02/wiederverwendung-von-stylesheetangaben/#comments</comments>
		<pubDate>Wed, 02 Mar 2005 09:58:05 +0000</pubDate>
		<dc:creator>Michal</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Deutsche Artikel]]></category>

		<guid isPermaLink="false">http://www.webdevbros.net/2005/03/02/wiederverwendung-von-stylesheetangaben/</guid>
		<description><![CDATA[Da ich beim Programmieren dem Grundsatz "Alles nur einmal und nur einmal!" folge versuch ich das auch beim Aufbereiten meiner Cascading stylesheet files. Bereits Geschriebenes soll wiederverwendet werden, da es 1. Schreibarbeit erspart und 2. das System flexibler gestaltet. Nun wie verwendet man CSS-Definitionen weiter? Der Clou des Ganzen liegt bei der Angabe des class-attributes [...]]]></description>
			<content:encoded><![CDATA[<p>Da ich beim Programmieren dem Grundsatz "Alles nur einmal und nur einmal!" folge versuch ich das auch beim Aufbereiten meiner Cascading stylesheet files. Bereits Geschriebenes soll wiederverwendet werden, da es 1. Schreibarbeit erspart und 2. das System flexibler gestaltet. Nun wie verwendet man CSS-Definitionen weiter? Der Clou des Ganzen liegt bei der Angabe des class-attributes unserer Elemente. Man übergibt einfach mehr Klassen-definitionen getrennt mit einem Leerzeichen. Bsp: </p>
<div class="igBar"><span id="lhtml-5"><a href="#" onclick="javascript:showCodeTxt('html-5'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-5">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/button.html"><span style="color: #000000; font-weight: bold;">&lt;button</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"firstClass secondClass"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Ein kurzes Beispiel zur Veranschaulichung:</p>
<div class="igBar"><span id="lhtml-6"><a href="#" onclick="javascript:showCodeTxt('html-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-6">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/style.html"><span style="color: #000000; font-weight: bold;">&lt;style&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; .menu { padding:20px; border:1px solid red; }</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; .menuItem { padding:10px; background-color:green; }</div>
</li>
<li style="font-weight: bold;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; .menuItemSpecial { color:black }</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/style&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"menu"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"menuItem"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>Punkt 1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"menuItem"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>Punkt 2<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"menuItem menuItemSpecial"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>Spezieler Punkt 3<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Man sieht hier schön, dass ein Menü erstellt wird. Jeder Menü beinhaltet Menüpunkte. Somit wird die Definition eines allgemeinen Menüpunkts definiert (z.b. Breite, Einrückung, etc), in unserem Fall die Klasse .menuItem. Damit nun auch andere Menüpunkte dieselben "Eigenschaften" wie der Basismenüpunkt haben erstellen wir eine klasse .menuItemSpecial und verwenden diese dann gemeinsam mit der .menuItem. Dies ähnelt irgendwie der Vererbung ; )</p>
<p><strong>Vorteil der Gschicht':</strong> Ändert sich nun die Basisdefinition unserer Menüpunkt so muss mans nicht überall nachziehen sondern ändert die angaben in .menuItem </p>
<div><table> <td><iframe src='http://digg.com/api/diggthis.php?w=new&amp;u=http://www.webdevbros.net/2005/03/02/wiederverwendung-von-stylesheetangaben/&amp;t=Wiederverwendung+von+Stylesheetangaben&amp;s=normal' height='80' width='52' frameborder='0' scrolling='no'></iframe></td> <td><iframe src='http://www.reddit.com/button_content?newwindow=1&amp;url=http://www.webdevbros.net/2005/03/02/wiederverwendung-von-stylesheetangaben/&amp;title=Wiederverwendung+von+Stylesheetangaben&amp;t=2 ' height='80' width='52' scrolling='no' frameborder='0' ></iframe></td> <td><iframe src='http://widgets.dzone.com/links/widgets/zoneit.html?url=http://www.webdevbros.net/2005/03/02/wiederverwendung-von-stylesheetangaben/&amp;title=Wiederverwendung+von+Stylesheetangaben&amp;t=1 ' height='80' width='52' scrolling='no' frameborder='0' ></iframe></td> <td><script type="text/javascript"><!--yahooBuzzArticleHeadline=Wiederverwendung+von+Stylesheetangaben;//--></script><script type="text/javascript" src="http://d.yimg.com/ds/badge2.js" badgetype=square></script></td> <td><script type="text/javascript">tweetmeme_url='http://www.webdevbros.net/2005/03/02/wiederverwendung-von-stylesheetangaben/'; tweetmeme_style = 'normal';; </script><script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js" ></script></td></table></div><!-- This is a HTML comment, it will not display in any page. Feel free to remove this comment if it cause any inconvenient to you.
	Thanks for using digg digg, please visit http://www.mkyong.com/blog/digg-digg-wordpress-plugin for any comments and ideas, 
	
    Author : Yong Mook Kim
    Website : http://www.mkyong.com
	-->]]></content:encoded>
			<wfw:commentRss>http://www.webdevbros.net/2005/03/02/wiederverwendung-von-stylesheetangaben/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

