{"id":89,"date":"2012-11-12T20:00:51","date_gmt":"2012-11-12T20:00:51","guid":{"rendered":"https:\/\/ai.hasebox.de\/index.php\/2012\/11\/12\/101boxmodell-zeit-fuer-abkuerzugen\/"},"modified":"2023-12-14T16:45:04","modified_gmt":"2023-12-14T16:45:04","slug":"101boxmodell-zeit-fuer-abkuerzugen","status":"publish","type":"post","link":"https:\/\/ai.hasebox.de\/index.php\/2012\/11\/12\/101boxmodell-zeit-fuer-abkuerzugen\/","title":{"rendered":"10.1 Boxmodell, Zeit f\u00fcr Abk\u00fcrzugen"},"content":{"rendered":"<p>Innenabst\u00e4nde in der Box werden \u00fcber padding gesetzt. Es gibt die Abst\u00e4nde oben, rechts, unten und links (achte auf die Reihenfolge!).&nbsp;<\/p>\n<p>Zum Beispiel:<\/p>\n<p>padding-top: 10px;<br \/>padding-right: 30px;<br \/>padding-bottom: 50px;<br \/>padding-left: 70px;<\/p>\n<p>Das ist eine Menge Tipperei und kann ersetzt werdsen durch:<\/p>\n<p>padding: 10px 30px 50px 70px;<\/p>\n<p>Nochwas:<\/p>\n<p>padding: 20px;<\/p>\n<p>setzt \u00fcberall einen Abstand von 20 Pixeln.&nbsp;<\/p>\n<p>Das gleiche gilt auch f\u00fcr die Au\u00dfenabst\u00e4nde, die \u00fcber margin-xxxx gesetzt werden.<\/p>\n<h5>Aufgabe: Erstelle die Dateien ai\/css\/kurzform\/design.css<\/h5>\n<p><span style=\"background-color: #c0c0c0;\">#kastenrot { background-color: red;<\/span><br \/><span style=\"background-color: #c0c0c0;\"> width: 200px;<\/span><br \/><span style=\"background-color: #c0c0c0;\"> padding: 100px;<\/span><br \/><span style=\"background-color: #c0c0c0;\"> }<\/span><\/p>\n<p><span style=\"background-color: #c0c0c0;\">#kastengruen { background-color: green; <\/span><br \/><span style=\"background-color: #c0c0c0;\"> width:400px;<\/span><br \/><span style=\"background-color: #c0c0c0;\"> padding: 20px 50px 100px 150px;<\/span><br \/><span style=\"background-color: #c0c0c0;\"> }<\/span><\/p>\n<h5>Aufgabe: Erstelle die Dateien ai\/css\/kurzform\/boxen.html<\/h5>\n<p><span style=\"background-color: #c0c0c0;\">&lt;html&gt;<br \/>&lt;head&gt;<br \/>&lt;link href=&#8220;design.css&#8220; type=&#8220;text\/css&#8220; rel=&#8220;stylesheet&#8220; \/&gt;<br \/>&lt;\/head&gt;<\/span><\/p>\n<p><span style=\"background-color: #c0c0c0;\">&lt;body&gt;<\/span><br \/><span style=\"background-color: #c0c0c0;\">&lt;h1&gt;jetzt HTML lernen mit CSS&lt;\/h1&gt;<\/span><\/p>\n<p><span style=\"background-color: #c0c0c0;\">&lt;div id=&#8220;kastenrot&#8220;&gt;<\/span><br \/><span style=\"background-color: #c0c0c0;\"> &lt;p&gt; Ich bin Text. Alles was in diesem Div steht gehoert zur Gruppe kastenrot und bekommt<\/span><br \/><span style=\"background-color: #c0c0c0;\"> die Eigenschaften, die in der CSS-Datei angegeben wurden. Hier jetzt auch mit Innenabstand&lt;\/p&gt;<\/span><\/p>\n<p><span style=\"background-color: #c0c0c0;\">&lt;\/div&gt;<\/span><br \/><span style=\"background-color: #c0c0c0;\">&lt;div id=&#8220;kastengruen&#8220;&gt;<\/span><br \/><span style=\"background-color: #c0c0c0;\">&lt;p&gt; Ich bin auch ein Text, geh\u00f6re aber einem anderen Div an, der Gruppe kastengruen. Jetzt habe ich einen Innenabstand.<\/span><\/p>\n<p><span style=\"background-color: #c0c0c0;\"> &lt;\/p&gt;<\/span><br \/><span style=\"background-color: #c0c0c0;\">&lt;\/div&gt;<\/span><\/p>\n<p><span style=\"background-color: #c0c0c0;\">&lt;\/body&gt;<\/span><br \/><span style=\"background-color: #c0c0c0;\">&lt;\/html&gt;<\/span><\/p>\n<h5><span style=\"background-color: #ffffff;\">Aufgabe: Experimentiere mit verschiedenen Werten in deiner css-Datei.<\/span><\/h5>\n<h5><span style=\"background-color: #ffffff;\">Aufgabe: Experimentiere auch mit margin!<\/span><\/h5>\n<h5><span style=\"background-color: #ffffff; color: #ff0000;\">Aufgabe: Experimentiere mit dem folgenden Tag <\/span><\/h5>\n<p><code><span style=\"background-color: #ffffff;\">float: right;<\/span><\/code><\/p>\n<p><span style=\"background-color: #ffffff;\">Setze diesen Tag abwechselnd in die divs&nbsp;#kastenrot, #kastengruen, #kastenblau. Was stellst du fest?<br \/>Dieser Tag ist besonders wichtig, um die Aufgabe in&nbsp;<a href=\"index.php\/informatik\/themen\/klasse-8\/css\/projekt-schulbar\/55-projekt-schulbar-jetzt-aber-richtig-super-geheim\">Projekt Schulbar jetzt aber richtig super geheim<\/a>&nbsp;zu l\u00f6sen.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Innenabst\u00e4nde in der Box werden \u00fcber padding gesetzt. Es gibt die Abst\u00e4nde oben, rechts, unten und links (achte auf die Reihenfolge!).&nbsp; Zum Beispiel: padding-top: 10px;padding-right: 30px;padding-bottom: 50px;padding-left: 70px; Das ist eine Menge Tipperei und kann ersetzt werdsen durch: padding: 10px 30px 50px 70px; Nochwas: padding: 20px; setzt \u00fcberall einen Abstand von 20 Pixeln.&nbsp; Das gleiche [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[50],"tags":[],"class_list":["post-89","post","type-post","status-publish","format-standard","hentry","category-css"],"_links":{"self":[{"href":"https:\/\/ai.hasebox.de\/index.php\/wp-json\/wp\/v2\/posts\/89","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ai.hasebox.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ai.hasebox.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ai.hasebox.de\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/ai.hasebox.de\/index.php\/wp-json\/wp\/v2\/comments?post=89"}],"version-history":[{"count":2,"href":"https:\/\/ai.hasebox.de\/index.php\/wp-json\/wp\/v2\/posts\/89\/revisions"}],"predecessor-version":[{"id":795,"href":"https:\/\/ai.hasebox.de\/index.php\/wp-json\/wp\/v2\/posts\/89\/revisions\/795"}],"wp:attachment":[{"href":"https:\/\/ai.hasebox.de\/index.php\/wp-json\/wp\/v2\/media?parent=89"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ai.hasebox.de\/index.php\/wp-json\/wp\/v2\/categories?post=89"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ai.hasebox.de\/index.php\/wp-json\/wp\/v2\/tags?post=89"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}