ورود

View Full Version : آموزش: طراحی شکل با Css3



erfanx.ir
دوشنبه 05 خرداد 1393, 01:34 صبح
کد html :





<div id="نام مورد نظر"></div>





1-Square (مربع) :
119500

height: ; background: red;



#square {
width:100px;
height:100px;
background-color:red;
}


2-Rectangle (مستطیل) :
119501





#rectangle {
width: 200px;
height: 100px;
background: red;
}




3-Circle (دایره) :
119502


#circle {
width: 100px;
height: 100px;
background: red;
-moz-border-radius: 50px;
-webkit-border-radius: 50px;
border-radius: 50px;
}




4-Oval (بیضی) :
119503


#oval {
width: 200px;
height: 100px;
background: red;
-moz-border-radius: 100px / 50px;
-webkit-border-radius: 100px / 50px;
border-radius: 100px / 50px;
}




5-Triangle Up (مثلث بالا) :
119504


#triangle-up {
width: 0;
height: 0;
border-left: 50px solid transparent;
border-right: 50px solid transparent;
border-bottom: 100px solid red;
}




ادامه دارد...

erfanx.ir
دوشنبه 05 خرداد 1393, 01:44 صبح
6 -Triangle Down (مثلث پایین) :
119505




#triangle-down {
width: 0;
height: 0;
border-left: 50px solid transparent;
border-right: 50px solid transparent;
border-top: 100px solid red;
}



7-Infinity (علامت بی نهایت) :
119506






#infinity {
position: relative;
width: 212px;
height: 100px;
}


#infinity:before,
#infinity:after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 60px;
height: 60px;
border: 20px solid red;
-moz-border-radius: 50px 50px 0 50px;
border-radius: 50px 50px 0 50px;
-webkit-transform: rotate(-45deg);
-moz-transform: rotate(-45deg);
-ms-transform: rotate(-45deg);
-o-transform: rotate(-45deg);
transform: rotate(-45deg);
}


#infinity:after {
left: auto;
right: 0;
-moz-border-radius: 50px 50px 50px 0;
border-radius: 50px 50px 50px 0;
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-ms-transform: rotate(45deg);
-o-transform: rotate(45deg);
transform: rotate(45deg);
}




ادامه دارد ...