<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>Frank Seitz' Developer Logbuch - CSS</title>
    <link>http://fseitz.de/blog/</link>
    <description>Notizen aus der Welt der Web-, Datenbank- und Unix-Programmierung</description>
    <dc:language>de</dc:language>
    <generator>Serendipity 1.5.1 - http://www.s9y.org/</generator>
    <pubDate>Wed, 02 Jun 2010 06:34:16 GMT</pubDate>

    <image>
        <url>http://fseitz.de/blog/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Frank Seitz' Developer Logbuch - CSS - Notizen aus der Welt der Web-, Datenbank- und Unix-Programmierung</title>
        <link>http://fseitz.de/blog/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>CSS: Listen portabel einrücken</title>
    <link>http://fseitz.de/blog/index.php?/archives/41-CSS-Listen-portabel-einruecken.html</link>
            <category>CSS</category>
    
    <comments>http://fseitz.de/blog/index.php?/archives/41-CSS-Listen-portabel-einruecken.html#comments</comments>
    <wfw:comment>http://fseitz.de/blog/wfwcomment.php?cid=41</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://fseitz.de/blog/rss.php?version=2.0&amp;type=comments&amp;cid=41</wfw:commentRss>
    

    <author>nospam@example.com (Frank Seitz)</author>
    <content:encoded>
    &lt;p class=&quot;sdoc-para-p&quot;&gt;
  Die Browser benutzen unterschiedliche Wege, Listen einzurücken.
  Einige rücken per &lt;i class=&quot;sdoc-seg-i&quot;&gt;Padding&lt;/i&gt; ein, andere per &lt;i class=&quot;sdoc-seg-i&quot;&gt;Margin&lt;/i&gt;.
&lt;/p&gt;
&lt;p class=&quot;sdoc-para-p&quot;&gt;
  Soll die Einrückung portabel verändert werden, müssen
  &lt;tt class=&quot;sdoc-seg-c&quot;&gt;margin-left&lt;/tt&gt; uns &lt;tt class=&quot;sdoc-seg-c&quot;&gt;padding-left&lt;/tt&gt; also zusammen gesetzt
  werden, und zwar eine Angabe auf die gewünschte Einrückung
  und die andere auf 0.
&lt;/p&gt;
&lt;table class=&quot;sdoc-code-table&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
&lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 1&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;&lt;span class=&quot;hl kwb&quot;&gt;ul&lt;/span&gt; &lt;span class=&quot;hl sym&quot;&gt;{&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-even&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 2&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;    &lt;span class=&quot;hl kwa&quot;&gt;padding-left&lt;/span&gt;&lt;span class=&quot;hl sym&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl num&quot;&gt;20px&lt;/span&gt;&lt;span class=&quot;hl sym&quot;&gt;;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 3&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;    &lt;span class=&quot;hl kwa&quot;&gt;margin-left&lt;/span&gt;&lt;span class=&quot;hl sym&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl num&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;hl sym&quot;&gt;;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-even&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 4&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;&lt;span class=&quot;hl sym&quot;&gt;}&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p class=&quot;sdoc-para-p&quot;&gt;
  oder
&lt;/p&gt;
&lt;table class=&quot;sdoc-code-table&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
&lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 1&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;&lt;span class=&quot;hl kwb&quot;&gt;ul&lt;/span&gt; &lt;span class=&quot;hl sym&quot;&gt;{&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-even&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 2&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;    &lt;span class=&quot;hl kwa&quot;&gt;padding-left&lt;/span&gt;&lt;span class=&quot;hl sym&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl num&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;hl sym&quot;&gt;;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 3&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;    &lt;span class=&quot;hl kwa&quot;&gt;margin-left&lt;/span&gt;&lt;span class=&quot;hl sym&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;hl num&quot;&gt;20px&lt;/span&gt;&lt;span class=&quot;hl sym&quot;&gt;;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-even&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 4&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;&lt;span class=&quot;hl sym&quot;&gt;}&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; 
    </content:encoded>

    <pubDate>Mon, 31 May 2010 16:41:10 +0200</pubDate>
    <guid isPermaLink="false">http://fseitz.de/blog/index.php?/archives/41-guid.html</guid>
    
</item>
<item>
    <title>HTML-Konstrukte mit CSS gestalten</title>
    <link>http://fseitz.de/blog/index.php?/archives/40-HTML-Konstrukte-mit-CSS-gestalten.html</link>
            <category>CSS</category>
    
    <comments>http://fseitz.de/blog/index.php?/archives/40-HTML-Konstrukte-mit-CSS-gestalten.html#comments</comments>
    <wfw:comment>http://fseitz.de/blog/wfwcomment.php?cid=40</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://fseitz.de/blog/rss.php?version=2.0&amp;type=comments&amp;cid=40</wfw:commentRss>
    

    <author>nospam@example.com (Frank Seitz)</author>
    <content:encoded>
    &lt;h1 class=&quot;sdoc-sec-h1&quot;&gt;Problem&lt;/h1&gt;
&lt;p class=&quot;sdoc-para-p&quot;&gt;
  Ein aus mehreren Elementen bestehendes HTML-Konstrukt soll in seinem
  Aussehen frei gestaltbar sein. Wie lässt sich dies mit CSS erreichen?
&lt;/p&gt;
&lt;h1 class=&quot;sdoc-sec-h1&quot;&gt;Beispiel&lt;/h1&gt;
&lt;p class=&quot;sdoc-para-p&quot;&gt;
  Gegeben sei ein Inhaltsverzeichnis, bestehend aus einer Überschrift
  (h1) und verschachtelten Listen (ul, li) mit Links (a) auf die
  Dokument-Abschnitte.
&lt;/p&gt;
&lt;table class=&quot;sdoc-code-table&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
&lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 1&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;&lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;Title&lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-even&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 2&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;&lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;ul&amp;gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 3&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;  &lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;li&amp;gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-even&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 4&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;    &lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;a&lt;/span&gt; &lt;span class=&quot;hl kwb&quot;&gt;href&lt;/span&gt;=&lt;span class=&quot;hl str&quot;&gt;&amp;quot;#section_1&amp;quot;&lt;/span&gt;&lt;span class=&quot;hl kwa&quot;&gt;&amp;gt;&lt;/span&gt;Section &lt;span class=&quot;hl num&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 5&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;    &lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;ul&amp;gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-even&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 6&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;      &lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;li&amp;gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 7&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;        &lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;a&lt;/span&gt; &lt;span class=&quot;hl kwb&quot;&gt;href&lt;/span&gt;=&lt;span class=&quot;hl str&quot;&gt;&amp;quot;#section_1_1&amp;quot;&lt;/span&gt;&lt;span class=&quot;hl kwa&quot;&gt;&amp;gt;&lt;/span&gt;Section &lt;span class=&quot;hl num&quot;&gt;1.1&lt;/span&gt;&lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-even&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 8&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;        &lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;ul&amp;gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 9&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;          &lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;li&amp;gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-even&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt;10&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;            &lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;a&lt;/span&gt; &lt;span class=&quot;hl kwb&quot;&gt;href&lt;/span&gt;=&lt;span class=&quot;hl str&quot;&gt;&amp;quot;#section_1_1_1&amp;quot;&lt;/span&gt;&lt;span class=&quot;hl kwa&quot;&gt;&amp;gt;&lt;/span&gt;Section &lt;span class=&quot;hl num&quot;&gt;1.1.1&lt;/span&gt;&lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt;11&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;          &lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-even&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt;12&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;          &lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;li&amp;gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt;13&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;            &lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;a&lt;/span&gt; &lt;span class=&quot;hl kwb&quot;&gt;href&lt;/span&gt;=&lt;span class=&quot;hl str&quot;&gt;&amp;quot;#section_1_1_2&amp;quot;&lt;/span&gt;&lt;span class=&quot;hl kwa&quot;&gt;&amp;gt;&lt;/span&gt;Section &lt;span class=&quot;hl num&quot;&gt;1.1.2&lt;/span&gt;&lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-even&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt;14&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;          &lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt;15&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;        &lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;/ul&amp;gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-even&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt;16&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;      &lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt;17&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;      &lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;li&amp;gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-even&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt;18&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;        &lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;a&lt;/span&gt; &lt;span class=&quot;hl kwb&quot;&gt;href&lt;/span&gt;=&lt;span class=&quot;hl str&quot;&gt;&amp;quot;#section_1_2&amp;quot;&lt;/span&gt;&lt;span class=&quot;hl kwa&quot;&gt;&amp;gt;&lt;/span&gt;Section &lt;span class=&quot;hl num&quot;&gt;1.2&lt;/span&gt;&lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt;19&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;      &lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-even&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt;20&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;    &lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;/ul&amp;gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt;21&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;  &lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-even&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt;22&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;  &lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;li&amp;gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt;23&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;    &lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;a&lt;/span&gt; &lt;span class=&quot;hl kwb&quot;&gt;href&lt;/span&gt;=&lt;span class=&quot;hl str&quot;&gt;&amp;quot;#section_2&amp;quot;&lt;/span&gt;&lt;span class=&quot;hl kwa&quot;&gt;&amp;gt;&lt;/span&gt;Section &lt;span class=&quot;hl num&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-even&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt;24&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;  &lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt;25&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;&lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;/ul&amp;gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p class=&quot;sdoc-para-p&quot;&gt;
  Der HTML-Code wird ohne CSS vom Browser (Firefox) ungefähr so dargestellt
  (die Strukturelemente für den Titel (h1) und die Listen (ul) sind zur
  Verdeutlichung grau hinterlegt):
&lt;/p&gt;
&lt;p class=&quot;sdoc-fig-p&quot;&gt;
  &lt;img class=&quot;sdoc-fig-img&quot; style=&quot;display:block&quot; src=&quot;uploads/inhaltsverz.png&quot; width=&quot;300&quot; height=&quot;129&quot; alt=&quot;&quot; /&gt;
&lt;/p&gt;
&lt;h1 class=&quot;sdoc-sec-h1&quot;&gt;Lösung&lt;/h1&gt;
&lt;p class=&quot;sdoc-para-p&quot;&gt;
  Um ein HTML-Konstrukt aus mehreren Elementen per CSS anpassbar zu
  machen, gehen wir folgendermaßen vor:
&lt;/p&gt;
&lt;ul class=&quot;sdoc-list-ul&quot;&gt;
  &lt;li class=&quot;sdoc-list-li-point&quot; style=&quot;list-style-type:disc&quot;&gt;
    &lt;p class=&quot;sdoc-para-p&quot;&gt;
      Wir geben dem Wurzelelement des Konstruktes eine eindeutige Bezeichnung
      und weisen ihm hierzu eine Id oder einen Klassennamen (oder beides) zu.
    &lt;/p&gt;
    &lt;table class=&quot;sdoc-code-table&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
    &lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
      &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 1&lt;/td&gt;
      &lt;td class=&quot;sdoc-code-td-line&quot;&gt;&lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;ELEMENT&lt;/span&gt; &lt;span class=&quot;hl kwb&quot;&gt;id&lt;/span&gt;=&lt;span class=&quot;hl str&quot;&gt;&amp;quot;my-toc-4711&amp;quot;&lt;/span&gt; &lt;span class=&quot;hl kwb&quot;&gt;class&lt;/span&gt;=&lt;span class=&quot;hl str&quot;&gt;&amp;quot;my-toc&amp;quot;&lt;/span&gt;&lt;span class=&quot;hl kwa&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr class=&quot;sdoc-code-tr-even&quot;&gt;
      &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 2&lt;/td&gt;
      &lt;td class=&quot;sdoc-code-td-line&quot;&gt;  ...&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
      &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 3&lt;/td&gt;
      &lt;td class=&quot;sdoc-code-td-line&quot;&gt;&lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;/ELEMENT&amp;gt;&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;/table&gt;
    &lt;p class=&quot;sdoc-para-p&quot;&gt;
      Eine Id verwenden wir, wenn wir ein bestimmte Instanz des Konstrukts
      gestalten wollen. Wollen wir alle Instanzen des Konstruktes
      gestalten, verwenden wir einen Klassennamen.
    &lt;/p&gt;
  &lt;/li&gt;
  &lt;li class=&quot;sdoc-list-li-point&quot; style=&quot;list-style-type:disc&quot;&gt;
    &lt;p class=&quot;sdoc-para-p&quot;&gt;
      Hat das Konstrukt kein Wurzelelement, wie im Beispiel, denn auf
      oberster Ebene stehen hier &lt;i class=&quot;sdoc-seg-i&quot;&gt;zwei&lt;/i&gt; Elemente: h1 und ul, erzeugen wir
      eins, indem wir das Konstrukt in ein &amp;lt;div&amp;gt; einfassen.
    &lt;/p&gt;
    &lt;table class=&quot;sdoc-code-table&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
    &lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
      &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 1&lt;/td&gt;
      &lt;td class=&quot;sdoc-code-td-line&quot;&gt;&lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;div&lt;/span&gt; &lt;span class=&quot;hl kwb&quot;&gt;class&lt;/span&gt;=&lt;span class=&quot;hl str&quot;&gt;&amp;quot;my-toc&amp;quot;&lt;/span&gt;&lt;span class=&quot;hl kwa&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr class=&quot;sdoc-code-tr-even&quot;&gt;
      &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 2&lt;/td&gt;
      &lt;td class=&quot;sdoc-code-td-line&quot;&gt;  HTML&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
      &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 3&lt;/td&gt;
      &lt;td class=&quot;sdoc-code-td-line&quot;&gt;&lt;span class=&quot;hl kwa&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;/table&gt;
    &lt;p class=&quot;sdoc-para-p&quot;&gt;
      Ein Wurzelelement zu haben, ist in vielerlei Hinsicht praktisch,
      denn es kann Definitionen aufnehmen, die das Konstrukt als Ganzes
      (Hintergrund, Abstände, etc.) oder alle seine Subelemente
      betreffen (Texteigenschaften etc.).
    &lt;/p&gt;
  &lt;/li&gt;
  &lt;li class=&quot;sdoc-list-li-point&quot; style=&quot;list-style-type:disc&quot;&gt;
    &lt;p class=&quot;sdoc-para-p&quot;&gt;
      Im Stylesheet adressieren wir die Elemente ausgehend vom Wurzelelement
      mit entsprechenden Selektoren. Bei obiger Inhaltsverzeichnis-Struktur
      könnte dies so aussehen:
    &lt;/p&gt;
    &lt;table class=&quot;sdoc-code-table&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
    &lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
      &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 1&lt;/td&gt;
      &lt;td class=&quot;sdoc-code-td-line&quot;&gt;&lt;span class=&quot;hl kwc&quot;&gt;.my-toc&lt;/span&gt; &lt;span class=&quot;hl sym&quot;&gt;{&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr class=&quot;sdoc-code-tr-even&quot;&gt;
      &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 2&lt;/td&gt;
      &lt;td class=&quot;sdoc-code-td-line&quot;&gt;    &lt;span class=&quot;hl com&quot;&gt;/* das gesamte Konstrukt */&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
      &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 3&lt;/td&gt;
      &lt;td class=&quot;sdoc-code-td-line&quot;&gt;&lt;span class=&quot;hl sym&quot;&gt;}&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr class=&quot;sdoc-code-tr-even&quot;&gt;
      &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 4&lt;/td&gt;
      &lt;td class=&quot;sdoc-code-td-line&quot;&gt;&lt;span class=&quot;hl kwc&quot;&gt;.my-toc h1&lt;/span&gt; &lt;span class=&quot;hl sym&quot;&gt;{&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
      &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 5&lt;/td&gt;
      &lt;td class=&quot;sdoc-code-td-line&quot;&gt;    &lt;span class=&quot;hl com&quot;&gt;/* die Überschrift */&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr class=&quot;sdoc-code-tr-even&quot;&gt;
      &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 6&lt;/td&gt;
      &lt;td class=&quot;sdoc-code-td-line&quot;&gt;&lt;span class=&quot;hl sym&quot;&gt;}&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
      &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 7&lt;/td&gt;
      &lt;td class=&quot;sdoc-code-td-line&quot;&gt;&lt;span class=&quot;hl kwc&quot;&gt;.my-toc ul&lt;/span&gt; &lt;span class=&quot;hl sym&quot;&gt;{&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr class=&quot;sdoc-code-tr-even&quot;&gt;
      &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 8&lt;/td&gt;
      &lt;td class=&quot;sdoc-code-td-line&quot;&gt;    &lt;span class=&quot;hl com&quot;&gt;/* die Liste der Ebene 1 */&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
      &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 9&lt;/td&gt;
      &lt;td class=&quot;sdoc-code-td-line&quot;&gt;&lt;span class=&quot;hl sym&quot;&gt;}&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr class=&quot;sdoc-code-tr-even&quot;&gt;
      &lt;td class=&quot;sdoc-code-td-ln&quot;&gt;10&lt;/td&gt;
      &lt;td class=&quot;sdoc-code-td-line&quot;&gt;&lt;span class=&quot;hl kwc&quot;&gt;.my-toc ul ul&lt;/span&gt; &lt;span class=&quot;hl sym&quot;&gt;{&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
      &lt;td class=&quot;sdoc-code-td-ln&quot;&gt;11&lt;/td&gt;
      &lt;td class=&quot;sdoc-code-td-line&quot;&gt;    &lt;span class=&quot;hl com&quot;&gt;/* die Listen der Ebene 2 */&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr class=&quot;sdoc-code-tr-even&quot;&gt;
      &lt;td class=&quot;sdoc-code-td-ln&quot;&gt;12&lt;/td&gt;
      &lt;td class=&quot;sdoc-code-td-line&quot;&gt;&lt;span class=&quot;hl sym&quot;&gt;}&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
      &lt;td class=&quot;sdoc-code-td-ln&quot;&gt;13&lt;/td&gt;
      &lt;td class=&quot;sdoc-code-td-line&quot;&gt;&lt;span class=&quot;hl kwc&quot;&gt;.my-toc ul ul ul&lt;/span&gt; &lt;span class=&quot;hl sym&quot;&gt;{&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr class=&quot;sdoc-code-tr-even&quot;&gt;
      &lt;td class=&quot;sdoc-code-td-ln&quot;&gt;14&lt;/td&gt;
      &lt;td class=&quot;sdoc-code-td-line&quot;&gt;    &lt;span class=&quot;hl com&quot;&gt;/* die Listen der Ebene 3 und tiefer */&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
      &lt;td class=&quot;sdoc-code-td-ln&quot;&gt;15&lt;/td&gt;
      &lt;td class=&quot;sdoc-code-td-line&quot;&gt;&lt;span class=&quot;hl sym&quot;&gt;}&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr class=&quot;sdoc-code-tr-even&quot;&gt;
      &lt;td class=&quot;sdoc-code-td-ln&quot;&gt;16&lt;/td&gt;
      &lt;td class=&quot;sdoc-code-td-line&quot;&gt;&lt;span class=&quot;hl kwc&quot;&gt;.my-toc a&lt;/span&gt; &lt;span class=&quot;hl sym&quot;&gt;{&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
      &lt;td class=&quot;sdoc-code-td-ln&quot;&gt;17&lt;/td&gt;
      &lt;td class=&quot;sdoc-code-td-line&quot;&gt;    &lt;span class=&quot;hl com&quot;&gt;/* alle Links */&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr class=&quot;sdoc-code-tr-even&quot;&gt;
      &lt;td class=&quot;sdoc-code-td-ln&quot;&gt;18&lt;/td&gt;
      &lt;td class=&quot;sdoc-code-td-line&quot;&gt;&lt;span class=&quot;hl sym&quot;&gt;}&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;/table&gt;
  &lt;/li&gt;
  &lt;li class=&quot;sdoc-list-li-point&quot; style=&quot;list-style-type:disc&quot;&gt;
    &lt;p class=&quot;sdoc-para-p&quot;&gt;
      Weitere Klassennamen oder Ids werden innerhalb des Konstruktes nicht
      benötigt, es sei denn, es liegt der eher seltene Fall vor, dass CSS-Selektoren
      die erforderliche Elementauswahl nicht treffen können. Beispiel: gerade
      oder ungerade Zeilen einer Tabelle.
    &lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt; 
    </content:encoded>

    <pubDate>Sun, 30 May 2010 13:35:05 +0200</pubDate>
    <guid isPermaLink="false">http://fseitz.de/blog/index.php?/archives/40-guid.html</guid>
    
</item>
<item>
    <title>Cellspacing per CSS unterdrücken</title>
    <link>http://fseitz.de/blog/index.php?/archives/8-Cellspacing-per-CSS-unterdruecken.html</link>
            <category>CSS</category>
    
    <comments>http://fseitz.de/blog/index.php?/archives/8-Cellspacing-per-CSS-unterdruecken.html#comments</comments>
    <wfw:comment>http://fseitz.de/blog/wfwcomment.php?cid=8</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://fseitz.de/blog/rss.php?version=2.0&amp;type=comments&amp;cid=8</wfw:commentRss>
    

    <author>nospam@example.com (Frank Seitz)</author>
    <content:encoded>
    &lt;p&gt;In HTML:&lt;/p&gt;

&lt;pre class=&quot;s-pre-box&quot;&gt;
&amp;lt;table cellspacing=&quot;0&quot;&amp;gt;
&lt;/pre&gt;

&lt;p&gt;Per CSS (&lt;code&gt;#t&lt;/code&gt; sei die Tabelle):&lt;/p&gt;

&lt;pre class=&quot;s-pre-box&quot;&gt;
#t {
  border-collapse: collapse;
}

#t &gt; td {
  padding: 0;
}
&lt;/pre&gt; 
    </content:encoded>

    <pubDate>Sat, 09 Jan 2010 16:03:10 +0100</pubDate>
    <guid isPermaLink="false">http://fseitz.de/blog/index.php?/archives/8-guid.html</guid>
    
</item>
<item>
    <title>Dreispaltiges Seitenlayout mit CSS</title>
    <link>http://fseitz.de/blog/index.php?/archives/7-Dreispaltiges-Seitenlayout-mit-CSS.html</link>
            <category>CSS</category>
    
    <comments>http://fseitz.de/blog/index.php?/archives/7-Dreispaltiges-Seitenlayout-mit-CSS.html#comments</comments>
    <wfw:comment>http://fseitz.de/blog/wfwcomment.php?cid=7</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://fseitz.de/blog/rss.php?version=2.0&amp;type=comments&amp;cid=7</wfw:commentRss>
    

    <author>nospam@example.com (Frank Seitz)</author>
    <content:encoded>
    &lt;p&gt;Layout mit Kopf, Fuss und drei Spalten:&lt;/p&gt;

&lt;img class=&quot;s-img&quot; src=&quot;uploads/layout3-3.png&quot; alt=&quot;3-spaltiges CSS Layout&quot; /&gt;&lt;br /&gt;

&lt;p&gt;Der HTML- und CSS-Code, der dies realisiert:&lt;/p&gt;

&lt;pre class=&quot;s-pre-box&quot; style=&quot;float:left&quot;&gt;
&amp;lt;div id=&quot;&lt;span style=&quot;background:#ffff5a&quot;&gt;header&lt;/span&gt;&quot;&amp;gt;
Header
&amp;lt;/div&amp;gt;
&amp;lt;div id=&quot;&lt;span style=&quot;background:#ff5a5a&quot;&gt;left&lt;/span&gt;&quot;&amp;gt;
Left
&amp;lt;/div&amp;gt;
&amp;lt;div id=&quot;&lt;span style=&quot;background:#ff5aff&quot;&gt;right&lt;/span&gt;&quot;&amp;gt;
Right
&amp;lt;/div&amp;gt;
&amp;lt;div id=&quot;&lt;span style=&quot;background:#5affff&quot;&gt;middle&lt;/span&gt;&quot;&amp;gt;
Middle
&amp;lt;/div&amp;gt;
&amp;lt;div id=&quot;&lt;span style=&quot;background:#5aff5a&quot;&gt;footer&lt;/span&gt;&quot;&amp;gt;
Footer
&amp;lt;/div&amp;gt;
&lt;/pre&gt;

&lt;pre class=&quot;s-pre-box&quot;&gt;
#&lt;span style=&quot;background:#ffff5a&quot;&gt;header&lt;/span&gt; {
  clear: both;
}
#&lt;span style=&quot;background:#ff5a5a&quot;&gt;left&lt;/span&gt; {
  float: left;
  width: 80px;
}
#&lt;span style=&quot;background:#ff5aff&quot;&gt;right&lt;/span&gt; {
  float: right;
  width: 80px;
}
#&lt;span style=&quot;background:#5affff&quot;&gt;middle&lt;/span&gt; {
  padding: 0 80px 0 80px;
}
#&lt;span style=&quot;background:#5aff5a&quot;&gt;footer&lt;/span&gt; {
  clear: both;
}
&lt;/pre&gt;

&lt;h3 class=&quot;s-h3&quot;&gt;Anmerkungen&lt;/h3&gt;

&lt;ul class=&quot;s-ul&quot;&gt;
  &lt;li&gt;Die Farben und die Höhe der Elemente sind weggelassen,
    da diese mit der Lösung nichts zu tun haben.
  &lt;/li&gt;

  &lt;li&gt;
    Die Breite von &lt;code&gt;#header&lt;/code&gt;, &lt;code&gt;#middle&lt;/code&gt; und
    &lt;code&gt;#footer&lt;/code&gt; passt sich dem zur Verfügung stehenden Raum dynamisch an.
  &lt;/li&gt;

  &lt;li&gt;Die Reihenfolge der divs in HTML ist signifikant. Das div &lt;code&gt;#middle&lt;/code&gt;
    kommt &lt;i&gt;nach&lt;/i&gt; &lt;code&gt;#left&lt;/code&gt; und &lt;code&gt;#right&lt;/code&gt;.
  &lt;/li&gt;

  &lt;li&gt;&quot;&lt;code&gt;clear: both;&lt;/code&gt;&quot; bei &lt;code&gt;#header&lt;/code&gt; bewirkt,
    dass neben dem Header kein Float platziert wird. D.h. die beiden
    Floats &lt;code&gt;#left&lt;/code&gt; und &lt;code&gt;#right&lt;/code&gt; werden vom Browser darunter
    platziert.
  &lt;/li&gt;

  &lt;li&gt;Durch &quot;&lt;code&gt;float: left;&lt;/code&gt;&quot; wird das Element &lt;code&gt;#left&lt;/code&gt;
    links platziert. Analog wird Element &lt;code&gt;#right&lt;/code&gt; durch
    &quot;&lt;code&gt;float: right;&lt;/code&gt;&quot; rechts platziert. Die Breitenangabe &quot;&lt;code&gt;width: 80px;&lt;/code&gt;&quot;
    weist den Floats ihren (fixen) horizontalen Raum am linken
    und rechten Rand zu.
  &lt;/li&gt;

  &lt;li&gt;Das Element &lt;code&gt;#middle&lt;/code&gt; hat keine clear-Angabe
    und kann daher zwischen die Elemente &lt;code&gt;#left&lt;/code&gt; und &lt;code&gt;#right&lt;/code&gt; treten.
    Damit der Inhalt des div sich nicht mit den Randelementen überschneidet, wird
    mit &quot;&lt;code&gt;padding: 0 80px 0 80px;&lt;/code&gt;&quot; ein Padding eingestellt, das den Raum,
    der von den Randelementen belegt wird, ausspart. Die Reihenfolge der Angaben ist:
    oben, rechts, unten, links.
  &lt;/li&gt;

  &lt;li&gt;&quot;&lt;code&gt;clear: both;&lt;/code&gt;&quot; bei &lt;code&gt;#footer&lt;/code&gt; verhindert,
    dass beim horizontalen Verkleinern des Fensters die oberen Floats
    neben oder unter den Footer springen.
  &lt;/li&gt;

  &lt;li&gt;Die Konstruktion aus den fünf divs kann in den HTML &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt;
    oder eine Tabellenzelle &lt;code&gt;&amp;lt;td&amp;gt;&lt;/code&gt; eigebettet werden.
  &lt;/li&gt;
&lt;/ul&gt;
 
    </content:encoded>

    <pubDate>Sat, 09 Jan 2010 11:27:23 +0100</pubDate>
    <guid isPermaLink="false">http://fseitz.de/blog/index.php?/archives/7-guid.html</guid>
    
</item>

</channel>
</rss>