PSD-Tutorials.de
Forum für Design, Fotografie & Bildbearbeitung
Tutkit
Agentur
Hilfe
Kontakt
Start
Forum
Aktuelles
Besonderer Inhalt
Foren durchsuchen
Tutorials
News
Anmelden
Kostenlos registrieren
Aktuelles
Suche
Suche
Nur Titel durchsuchen
Von:
Menü
Anmelden
Kostenlos registrieren
App installieren
Installieren
JavaScript ist deaktiviert. Für eine bessere Darstellung aktiviere bitte JavaScript in deinem Browser, bevor du fortfährst.
Du verwendest einen veralteten Browser. Es ist möglich, dass diese oder andere Websites nicht korrekt angezeigt werden.
Du solltest ein Upgrade durchführen oder einen
alternativen Browser
verwenden.
Antworten auf deine Fragen:
Neues Thema erstellen
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
Webdesign: HTML/CSS, Responsive Design, Sass...
Div Border?
Beitrag
<blockquote data-quote="saint44" data-source="post: 1040454" data-attributes="member: 190382"><p>hey</p><p>ich habe mir mal ein css design runtergeladen um im quellcode css und divs zu lernen...alles läuft super.. endlich habe ich mal das prinzip von divs verstanden aber eine frage:</p><p></p><p>man sieht ja, dass um jeden div so ein weißer rand is. wie bekomme ich das hin? ich ahbs schon mit border und den ganzen atrributen probiert aber passiert nicht soviel bzw. das richtige</p><p>hier der html code:</p><p>[html]</p><p><div id="container"></p><p></p><p><div id="banner"></p><p><div id="bannerLeft"></div></p><p><div id="bannerRight"></p><p><h1>Mandarin :.</h1></p><p><h2>The Free CSS Template with an Orange Background.</h2></p><p></div></p><p></div></p><p></p><p><div id="content"></p><p></p><p><div id="leftColumn"></p><p><ul id="nav"></p><p><li><a href="index.html">&raquo; Home</a></li></p><p></p><p></ul></p><p><div id="leftColumnBottom"></p><p><p>FYI the image above the navigation bar should be sized 100h x 150w.</p></p><p><p>Feel free to do whatever you want with this template. Just be sure to leave my link/credit at the bottom. Thanks!</p></p><p></p><p></div></p><p></div></p><p></p><p><div id="rightColumn"></p><p><h3>This is a Header <span class="date">12.28.06 // Comments (3)</span></h3></p><p><p>Lorem....</p></p><p></p><p><h3>This is a Header <span class="date">12.24.06 // Comments (0)</span></h3></p><p><p>Lorem..</p></p><p></p><p><h3>This is a Header <span class="date">12.06.06 // Comments (1)</span></h3></p><p><p>Loorem...</p></p><p></div></p><p></p><p><div id="clear"></p><p></div></p><p></p><p></div></p><p></p><p></div>[/html]css:</p><p>[code]/* CSS Template by gorotron */</p><p></p><p>body {</p><p> background-image:url(bg1b.gif);</p><p> background-repeat:repeat-x;</p><p> background-color:#FC3;</p><p> margin:20px;</p><p> padding:0;</p><p> text-align:center;</p><p>}</p><p></p><p>h1 {</p><p> font-size:24px;</p><p> color:#FFF;</p><p> font-weight:700;</p><p> margin:0;</p><p>}</p><p></p><p>h2 {</p><p> font-size:10px;</p><p> color:#F90;</p><p> margin:0;</p><p> font-weight:700;</p><p>}</p><p></p><p>h3 {</p><p> font-size:16px;</p><p> color:#369;</p><p> font-weight:700;</p><p> margin:0;</p><p> padding-bottom:5px;</p><p> [COLOR=Red]border-bottom:1px dotted #CCC;[/COLOR] [COLOR=Red]<--- ???</p><p>}[/COLOR]</p><p></p><p>p {</p><p> margin-top:5px;</p><p> padding-bottom:5px;</p><p> font-size:11px;</p><p> line-height:1.5em;</p><p>}</p><p></p><p>#container {</p><p> font-family:Arial,Helvetica,sans-serif;</p><p> font-size:11px;</p><p> margin:0 auto;</p><p> width:700px;</p><p> padding:10px;</p><p> height:auto;</p><p> background-color:#FFF;</p><p> text-align:left;</p><p>}</p><p></p><p>#banner {</p><p> width:700px;</p><p> height:100px;</p><p> margin-bottom:10px;</p><p>}</p><p></p><p>#bannerLeft {</p><p> width:150px;</p><p> height:100px;</p><p> margin-right:10px;</p><p> background-image:url(leaf.gif);</p><p> float:left;</p><p>}</p><p></p><p>#bannerRight {</p><p> width:529px;</p><p> height:49px;</p><p> background:url(bg1c.gif) repeat-x;</p><p> float:left;</p><p> border:1px solid #CCC;</p><p> border-width:1px 0 0 1px;</p><p> padding:50px 0 0 10px;</p><p>}</p><p></p><p>#content {</p><p> background:url(bg1.gif) repeat-y;</p><p> height:1%;</p><p> }</p><p></p><p>#leftColumn {</p><p> float:left;</p><p>}</p><p></p><p>#nav {</p><p> margin:0;</p><p> padding:0;</p><p> list-style:none;</p><p>}</p><p></p><p>#nav a {</p><p> display:block;</p><p> font-size:11px;</p><p> color:#F90;</p><p> text-decoration:none;</p><p> padding:10px;</p><p> width:130px;</p><p> height:10px;</p><p> border-bottom:1px dotted #333;</p><p> </p><p>}</p><p></p><p>#nav a:hover {</p><p> background-color:#333;</p><p>}</p><p></p><p>#leftColumnBottom {</p><p> width:130px;</p><p> background:url(bg1c.gif) repeat-x;</p><p> padding:110px 10px 10px;</p><p> color:#EAEAEA;</p><p>}</p><p></p><p>#rightColumn {</p><p> float:left;</p><p> width:530px;</p><p> padding-left:20px;</p><p> color:#666;</p><p>}</p><p></p><p>#clear {</p><p> clear:both;</p><p>}</p><p></p><p>.date {</p><p> font-size:10px;</p><p> color:#999;</p><p> font-weight:normal;</p><p>}</p><p></p><p>#copyright {</p><p> padding-top:10px;</p><p> font:10px Arial,Helvetica,sans-serif;</p><p> color:#369;</p><p>}</p><p></p><p>#copyright a {</p><p> text-decoration:none;</p><p> color:#369;</p><p>}</p><p></p><p>#copyright a:hover {</p><p> color:#F39;</p><p>}</p><p></p><p></p><p></p><p></p><p></p><p></p><p>[/code]das würde ich gerne wissen dann lass ich euch inruhe <img src="/styles/default/xenforo/smilies/biggrin.gif" class="smilie" loading="lazy" alt=":D" title="Big Grin :D" data-shortname=":D" /></p><p></p><p>danke schonmal <img src="/styles/default/xenforo/smilies/biggrin.gif" class="smilie" loading="lazy" alt=":D" title="Big Grin :D" data-shortname=":D" /></p></blockquote><p></p>
[QUOTE="saint44, post: 1040454, member: 190382"] hey ich habe mir mal ein css design runtergeladen um im quellcode css und divs zu lernen...alles läuft super.. endlich habe ich mal das prinzip von divs verstanden aber eine frage: man sieht ja, dass um jeden div so ein weißer rand is. wie bekomme ich das hin? ich ahbs schon mit border und den ganzen atrributen probiert aber passiert nicht soviel bzw. das richtige hier der html code: [html] <div id="container"> <div id="banner"> <div id="bannerLeft"></div> <div id="bannerRight"> <h1>Mandarin :.</h1> <h2>The Free CSS Template with an Orange Background.</h2> </div> </div> <div id="content"> <div id="leftColumn"> <ul id="nav"> <li><a href="index.html">» Home</a></li> </ul> <div id="leftColumnBottom"> <p>FYI the image above the navigation bar should be sized 100h x 150w.</p> <p>Feel free to do whatever you want with this template. Just be sure to leave my link/credit at the bottom. Thanks!</p> </div> </div> <div id="rightColumn"> <h3>This is a Header <span class="date">12.28.06 // Comments (3)</span></h3> <p>Lorem....</p> <h3>This is a Header <span class="date">12.24.06 // Comments (0)</span></h3> <p>Lorem..</p> <h3>This is a Header <span class="date">12.06.06 // Comments (1)</span></h3> <p>Loorem...</p> </div> <div id="clear"> </div> </div> </div>[/html]css: [code]/* CSS Template by gorotron */ body { background-image:url(bg1b.gif); background-repeat:repeat-x; background-color:#FC3; margin:20px; padding:0; text-align:center; } h1 { font-size:24px; color:#FFF; font-weight:700; margin:0; } h2 { font-size:10px; color:#F90; margin:0; font-weight:700; } h3 { font-size:16px; color:#369; font-weight:700; margin:0; padding-bottom:5px; [COLOR=Red]border-bottom:1px dotted #CCC;[/COLOR] [COLOR=Red]<--- ??? }[/COLOR] p { margin-top:5px; padding-bottom:5px; font-size:11px; line-height:1.5em; } #container { font-family:Arial,Helvetica,sans-serif; font-size:11px; margin:0 auto; width:700px; padding:10px; height:auto; background-color:#FFF; text-align:left; } #banner { width:700px; height:100px; margin-bottom:10px; } #bannerLeft { width:150px; height:100px; margin-right:10px; background-image:url(leaf.gif); float:left; } #bannerRight { width:529px; height:49px; background:url(bg1c.gif) repeat-x; float:left; border:1px solid #CCC; border-width:1px 0 0 1px; padding:50px 0 0 10px; } #content { background:url(bg1.gif) repeat-y; height:1%; } #leftColumn { float:left; } #nav { margin:0; padding:0; list-style:none; } #nav a { display:block; font-size:11px; color:#F90; text-decoration:none; padding:10px; width:130px; height:10px; border-bottom:1px dotted #333; } #nav a:hover { background-color:#333; } #leftColumnBottom { width:130px; background:url(bg1c.gif) repeat-x; padding:110px 10px 10px; color:#EAEAEA; } #rightColumn { float:left; width:530px; padding-left:20px; color:#666; } #clear { clear:both; } .date { font-size:10px; color:#999; font-weight:normal; } #copyright { padding-top:10px; font:10px Arial,Helvetica,sans-serif; color:#369; } #copyright a { text-decoration:none; color:#369; } #copyright a:hover { color:#F39; } [/code]das würde ich gerne wissen dann lass ich euch inruhe :D danke schonmal :D [/QUOTE]
Bilder bitte
hier hochladen
und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Zitate einfügen…
Authentifizierung
Wenn ★ = 12, ◇ = 4 und die Hälfte von ★ zu ◇ addiert wird, was ist das Ergebnis?
Antworten
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
Webdesign: HTML/CSS, Responsive Design, Sass...
Div Border?
Oben