Re: Ecken abrunden
Verfasst: 09.01.2009 13:41
super vortragpiero hat geschrieben:Semantischer Code

Code: Alles auswählen
<div class="post bg2 online" id="p1068781">
<div class="inner"><span class="corners-top"><span/></span>
Ich bin eine Coole abgerundete Box, ich bin so cool weil ich rund bin :D
<span class="corners-bottom"><span/></span></div>
</div>
Code: Alles auswählen
....loading....
.post span.corners-top, .post span.corners-bottom, .panel span.corners-top, .panel span.corners-bottom, .navbar span.corners-top, .navbar span.corners-bottom {style.ph...2&lang=de (Linie 416)
margin:0 -10px;
}
span.corners-top {style.ph...2&lang=de (Linie 2958)
background-image:url(./styles/phpBBde/theme/images/corners_left.png);
}
span.corners-top {style.ph...2&lang=de (Linie 389)
background-image:none;
background-position:0 0;
margin:0 -5px;
}
span.corners-top, span.corners-bottom, span.corners-top span, span.corners-bottom span {style.ph...2&lang=de (Linie 381)
background-repeat:no-repeat;
display:block;
font-size:1px;
height:5px;
line-height:1px;
}
* {style.ph...2&lang=de (Linie 12)
margin:0;
padding:0;
}
Geerbt vonbody#phpbb.section-viewtopic
html, body {style.ph...2&lang=de (Linie 2829)
color:#393A3D;
}
body {style.ph...2&lang=de (Linie 25)
color:#828282;
font-family:Verdana,Helvetica,Arial,sans-serif;
font-size:10px;
}
Geerbt vonhtml
html, body {style.ph...2&lang=de (Linie 2829)
color:#393A3D;
}
html {style.ph...2&lang=de (Linie 18)
font-size:100%;
}
Code: Alles auswählen
....loading....
6 x 12
span.corners-top span {style.ph...2&lang=de (Linie 2962)
background-image:url(./styles/phpBBde/theme/images/corners_right.png);
}
span.corners-top span {style.ph...2&lang=de (Linie 395)
background-image:none;
background-position:100% 0;
}
span.corners-top, span.corners-bottom, span.corners-top span, span.corners-bottom span {style.ph...2&lang=de (Linie 381)
background-repeat:no-repeat;
display:block;
font-size:1px;
height:5px;
line-height:1px;
}
* {style.ph...2&lang=de (Linie 12)
margin:0;
padding:0;
}
Geerbt vonspan.corners-top
span.corners-top, span.corners-bottom, span.corners-top span, span.corners-bottom span {style.ph...2&lang=de (Linie 381)
font-size:1px;
line-height:1px;
}
Geerbt vonbody#phpbb.section-viewtopic
html, body {style.ph...2&lang=de (Linie 2829)
color:#393A3D;
}
body {style.ph...2&lang=de (Linie 25)
color:#828282;
font-family:Verdana,Helvetica,Arial,sans-serif;
font-size:10px;
}
Geerbt vonhtml
html, body {style.ph...2&lang=de (Linie 2829)
color:#393A3D;
}
html {style.ph...2&lang=de (Linie 18)
font-size:100%;
}
Code: Alles auswählen
....loading....
6 x 12
.post span.corners-top, .post span.corners-bottom, .panel span.corners-top, .panel span.corners-bottom, .navbar span.corners-top, .navbar span.corners-bottom {style.ph...2&lang=de (Linie 416)
margin:0 -10px;
}
span.corners-bottom {style.ph...2&lang=de (Linie 2966)
background-image:url(./styles/phpBBde/theme/images/corners_left.png);
}
span.corners-bottom {style.ph...2&lang=de (Linie 400)
background-image:none;
background-position:0 100%;
clear:both;
margin:0 -5px;
}
span.corners-top, span.corners-bottom, span.corners-top span, span.corners-bottom span {style.ph...2&lang=de (Linie 381)
background-repeat:no-repeat;
display:block;
font-size:1px;
height:5px;
line-height:1px;
}
* {style.ph...2&lang=de (Linie 12)
margin:0;
padding:0;
}
Geerbt vonbody#phpbb.section-viewtopic
html, body {style.ph...2&lang=de (Linie 2829)
color:#393A3D;
}
body {style.ph...2&lang=de (Linie 25)
color:#828282;
font-family:Verdana,Helvetica,Arial,sans-serif;
font-size:10px;
}
Geerbt vonhtml
html, body {style.ph...2&lang=de (Linie 2829)
color:#393A3D;
}
html {style.ph...2&lang=de (Linie 18)
font-size:100%;
}
Code: Alles auswählen
....loading....
6 x 12
span.corners-bottom span {style.ph...2&lang=de (Linie 2970)
background-image:url(./styles/phpBBde/theme/images/corners_right.png);
}
span.corners-bottom span {style.ph...2&lang=de (Linie 407)
background-image:none;
background-position:100% 100%;
}
span.corners-top, span.corners-bottom, span.corners-top span, span.corners-bottom span {style.ph...2&lang=de (Linie 381)
background-repeat:no-repeat;
display:block;
font-size:1px;
height:5px;
line-height:1px;
}
* {style.ph...2&lang=de (Linie 12)
margin:0;
padding:0;
}
Geerbt vonspan.corners-bottom
span.corners-top, span.corners-bottom, span.corners-top span, span.corners-bottom span {style.ph...2&lang=de (Linie 381)
font-size:1px;
line-height:1px;
}
Geerbt vonbody#phpbb.section-viewtopic
html, body {style.ph...2&lang=de (Linie 2829)
color:#393A3D;
}
body {style.ph...2&lang=de (Linie 25)
color:#828282;
font-family:Verdana,Helvetica,Arial,sans-serif;
font-size:10px;
}
Geerbt vonhtml
html, body {style.ph...2&lang=de (Linie 2829)
color:#393A3D;
}
html {style.ph...2&lang=de (Linie 18)
font-size:100%;
}
Code: Alles auswählen
<style type="text/css">
.box {
width: 350px;
background: #9BD1FA;
}
.box h1, .box p {
margin: 0px 10px;
}
.box h1 {
color: #ffffff;
}
.box .top, .box .bottom {
display: block;
background: #FFFFFF;
}
.box .top strong, .box .bottom strong {
display: block;
height: 1px;
overflow: hidden;
background: #9BD1FA;
}
.box .n1 {
margin: 0px 5px;
}
.box .n2 {
margin: 0px 3px;
}
.box .n3 {
margin: 0px 2px;
}
.box .top .n4, .box .bottom .n4 {
margin: 0px 1px;
height: 2px;
}
</style>
<div class="box">
<strong class="top">
<strong class="n1"></strong>
<strong class="n2"></strong>
<strong class="n3"></strong>
<strong class="n4"></strong>
</strong>
<h1>Lorem ipsum dolor</h1>
<p>Lorem ipsum dolor sit amet ...</p>
<strong class="bottom">
<strong class="n4"></strong>
<strong class="n3"></strong>
<strong class="n2"></strong>
<strong class="n1"></strong>
</strong>
</div>