2Danke
ERLEDIGT
JA
JA
ANTWORTEN
3
3
ZUGRIFFE
771
771
EMPFEHLEN
-
Ich habe mal einen Anhang hochgeladen um es Optisch dar zu stellen. Mit Photoshop ja kein Problem, aber mit CSS3 wäre das schon sehr viel schöner oder eben canves.
Weiß jemand wie man das hin bekommt ?
LG
-
Bitte sehr
Edit: Das ist übrigens CSS 2HTML-Code:<!DOCTYPE html> <html> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Eckige Rundungen :-D</title> <style type="text/css"> #box { background:#000; width:200px; height:200px; position:relative; top:40px; } #box:before, #box:after { content: ""; display:block; position:absolute; background:transparent; width:120px; height:0px; border:40px solid transparent; } #box:before { border-bottom-color:#000; border-top:none; top:-40px; } #box:after { border-top-color:#000; border-bottom:none; bottom:-40px; } </style> <div id="box">woooot</div> </html>
Geändert von CPoly (04.12.11 um 15:20 Uhr)
-
Hi,
wenn du noch ne Lösung sehen willst:
Code :1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<!doctype html> <body> <div style="margin-top: -75px; border-width: 75px; border-style: solid; border-color: white; border-bottom-color: black;"></div> <div style="background-color: black; height: 1000px;"> <div style="position: relative; width: 850px; margin-left: auto; margin-right: auto;"> <div style="border-width: 75px; border-style: solid; border-color: black; border-bottom-color: white;"></div> <div style="background-color: white; height: 500px;"> </div> </div> </div> <div style="margin-bottom: -75px; border-width: 75px; border-style: solid; border-color: white; border-top-color: black;"></div> </body> </html>
Also CSS3 ist beides nicht, aber die - zugegebenermaßen elegantere - Lösung von CPoly ist nicht IE6-kompatibel!Geändert von javaDeveloper2011 (04.12.11 um 15:33 Uhr)
-
Na Mensch, auf die Idee hätte ich ja auch selbst kommen können...eigentlich
Besten Dank !
Ähnliche Themen
-
CSS3 & IE9
Von the_black_hawk im Forum CSSAntworten: 5Letzter Beitrag: 11.08.11, 14:34 -
CSS3 Keyframes - Animation
Von SteveJobs im Forum CSSAntworten: 2Letzter Beitrag: 28.06.11, 10:06 -
CSS3-Animationen - Keyframes
Von lehanky im Forum CSSAntworten: 0Letzter Beitrag: 29.10.09, 17:57 -
CSS3 Rounded Corners
Von Paspirgilis im Forum CSSAntworten: 5Letzter Beitrag: 22.06.09, 10:55 -
Wann kommt CSS3
Von Jan-Frederik Stieler im Forum CSSAntworten: 0Letzter Beitrag: 29.08.04, 19:46





Zitieren

Login





