With the CSS border-radius
property, you can give any element "rounded corners".
CSS
ﻪﺘﮑﻧ: ﺪﯿﻨﮐ ﻪﻓﺎﺿﺍ ﻥﺁ ﻪﺑ ﺍﺭ ﺩﺮﮔ ﯼﺎﻫ ﻪﺷﻮﮔ ﺪﻫﺩ ﯽﻣ ﻥﺎﮑﻣﺍ ﺎﻤﺷ ﻪﺑ ﯽﮔ
:ﺖﺳﺍ ﻩﺪﺷ ﻩﺩﺭﻭﺁ ﻪﻧﻮﻤﻧ ﻪﺳ ﺎﺠﻨﯾﺍ ﺭﺩ
:ﺺﺨﺸﻣ ﻪﻨﯿﻣﺯ ﺲﭘ ﮓﻧﺭ ﺎﺑ ﺮﺼﻨﻋ ﮏﯾ ﯼﺍﺮﺑ ﺩﺮﮔ ﯼﺎﻫ ﻪﺷﻮﮔ .1
Rounded corners!
:ﻪﯿﺷﺎﺣ ﺎﺑ ﺮﺼﻨﻋ ﮏﯾ ﯼﺍﺮﺑ ﺩﺮﮔ ﯼﺎﻫ ﻪﺷﻮﮔ .2
Rounded corners!
:ﻪﻨﯿﻣﺯ ﺲﭘ ﺮﯾﻮﺼﺗ ﺎﺑ ﺮﺼﻨﻋ ﮏﯾ ﯼﺍﺮﺑ ﺩﺮﮔ ﯼﺎﻫ ﻪﺷﻮﮔ .3
Rounded corners!
:ﺪﮐ ﻢﻫ ﻦﯾﺍ
#rcorners1 {
border-radius: 25px;
background: #73AD21;
padding: 20px;
width: 200px;
height: 150px;
}
#rcorners2 {
border-radius: 25px;
border: 2px solid #73AD21;
padding: 20px;
width: 200px;
height: 150px;
}
#rcorners3 {
border-radius: 25px;
background: url(paper.gif);
background-position: left top;
background-repeat:
repeat;
padding: 20px;
width:
200px;
height: 150px;
}
→ ﺪﯿﻨﮐ ﻥﺎﺤﺘﻣﺍ ﺍﺭ ﻥﺁ ﻥﺎﺗﺩﻮﺧ
<!DOCTYPE html>
<html>
<head>
<style>
#rcorners1 {
border-radius: 25px;
background: #73AD21;
padding: 20px;
width: 200px;
height: 150px;
}
#rcorners2 {
border-radius: 25px;
border: 2px solid #73AD21;
padding: 20px;
width: 200px;
height: 150px;
}
#rcorners3 {
border-radius: 25px;
background: url(paper.gif);
background-position: left top;
background-repeat: repeat;
padding: 20px;
width: 200px;
height: 150px;
}
</style>
</head>
<body>
<h1>The border-radius Property</h1>
<p>Rounded corners for an element with a specified background color:</p>
<p id="rcorners1">Rounded corners!</p>
<p>Rounded corners for an element with a border:</p>
<p id="rcorners2">Rounded corners!</p>
<p>Rounded corners for an element with a background image:</p>
<p id="rcorners3">Rounded corners!</p>
</body>
</html>
ﻪﺘﮑﻧ: ﯽﮔﮋﯾﻭ border-radius
ﯼﺍﺮﺑ ﺮﺼﺘﺨﻣ ﯽ
ﮏﯾ ﺯﺍ ﺪﻧﺍﻮﺗ ﯽﻣ border-radius
ﯽﮔﮋﯾﻭ
؛ﻞﺴﮑﯿﭘ 5 ﻞﺴﮑﯿﭘ 30 ﻞﺴﮑﯿﭘ 50 ﻞﺴﮑﯿﭘ 15 :ﻪﯿﺷﺎﺣ ﻉﺎﻌﺷ - ﺭﺍﺪﻘﻣ ﺭﺎﻬﭼ
؛ﻞﺴﮑﯿﭘ 30 ﻞﺴﮑﯿﭘ 50 ﻞﺴﮑﯿﭘ 15 :ﻪﯿﺷﺎﺣ ﻉﺎﻌﺷ - ﺭﺍﺪﻘﻣ ﻪﺳ (ﯽﻣ ﻝﺎﻤﻋﺍ
ﺭﺍﺪﻘﻣ ﻭﺩ - border-radius: 15px 50px؛ (ﻪﺷﻮﮔ ﯼﺍﺮﺑ ﻝﻭﺍ ﺭﺍﺪﻘﻣ
ﺭﺍﺪﻘﻣ ﮏﯾ - border-radius: 15px؛ (ﯽﻣ ﻝﺎﻤﻋﺍ ﻪﺷﻮﮔ ﺭﺎﻬﭼ ﺮﻫ ﯼﺍﺮﺑ ﺭ
:ﺪﮐ ﻢﻫ ﻦﯾﺍ
#rcorners1 {
border-radius: 15px 50px 30px 5px;
background: #73AD21;
padding: 20px;
width: 200px;
height: 150px;
}
#rcorners2 {
border-radius: 15px 50px 30px;
background: #73AD21;
padding: 20px;
width: 200px;
height: 150px;
}
#rcorners3 {
border-radius: 15px 50px;
background: #73AD21;
padding: 20px;
width: 200px;
height: 150px;
}
#rcorners4 {
border-radius: 15px;
background: #73AD21;
padding: 20px;
width: 200px;
height: 150px;
}
→ ﺪﯿﻨﮐ ﻥﺎﺤﺘﻣﺍ ﺍﺭ ﻥﺁ ﻥﺎﺗﺩﻮﺧ
<!DOCTYPE html>
<html>
<head>
<style>
#rcorners1 {
border-radius: 15px 50px 30px 5px;
background: #73AD21;
padding: 20px;
width: 200px;
height: 150px;
}
#rcorners2 {
border-radius: 15px 50px 30px;
background: #73AD21;
padding: 20px;
width: 200px;
height: 150px;
}
#rcorners3 {
border-radius: 15px 50px;
background: #73AD21;
padding: 20px;
width: 200px;
height: 150px;
}
#rcorners4 {
border-radius: 15px;
background: #73AD21;
padding: 20px;
width: 200px;
height: 150px;
}
</style>
</head>
<body>
<h1>The border-radius Property</h1>
<p>Four values - border-radius: 15px 50px 30px 5px:</p>
<p id="rcorners1"></p>
<p>Three values - border-radius: 15px 50px 30px:</p>
<p id="rcorners2"></p>
<p>Two values - border-radius: 15px 50px:</p>
<p id="rcorners3"></p>
<p>One value - border-radius: 15px:</p>
<p id="rcorners4"></p>
</body>
</html>
:ﺪﯿﻨﮐ ﺩﺎﺠﯾﺍ ﯼﻮﻀﯿﺑ ﯼﺎﻫ ﻪﺷﻮﮔ ﺪﯿﻧﺍﻮﺗ ﯽﻣ ﻦﯿﻨﭽﻤﻫ
#rcorners1 {
border-radius: 50px / 15px;
background: #73AD21;
padding: 20px;
width: 200px;
height: 150px;
}
#rcorners2 {
border-radius: 15px / 50px;
background: #73AD21;
padding: 20px;
width: 200px;
height: 150px;
}
#rcorners3 {
border-radius: 50%;
background: #73AD21;
padding: 20px;
width: 200px;
height: 150px;
}
→ ﺪﯿﻨﮐ ﻥﺎﺤﺘﻣﺍ ﺍﺭ ﻥﺁ ﻥﺎﺗﺩﻮﺧ
<!DOCTYPE html>
<html>
<head>
<style>
#rcorners1 {
border-radius: 50px / 15px;
background: #73AD21;
padding: 20px;
width: 200px;
height: 150px;
}
#rcorners2 {
border-radius: 15px / 50px;
background: #73AD21;
padding: 20px;
width: 200px;
height: 150px;
}
#rcorners3 {
border-radius: 50%;
background: #73AD21;
padding: 20px;
width: 200px;
height: 150px;
}
</style>
</head>
<body>
<h1>The border-radius Property</h1>
<p>Elliptical border - border-radius: 50px / 15px:</p>
<p id="rcorners1"></p>
<p>Elliptical border - border-radius: 15px / 50px:</p>
<p id="rcorners2"></p>
<p>Ellipse border - border-radius: 50%:</p>
<p id="rcorners3"></p>
</body>
</html>
border-*-*-radius ﯽﮔﮋﯾﻭ ﺭﺎﻬﭼ ﺮﻫ ﻢﯿﻈﻨﺗ ﯼﺍﺮﺑ ﺮﺼﺘﺨﻣ ﯽﮔﮋﯾﻭ ﮏﯾ
ﺪﻨﮐ ﯽﻣ ﺺﺨﺸﻣ ﺍﺭ ﭗﭼ ﺖﻤﺳ ﻻﺎﺑ ﻪﺷﻮﮔ ﻪﯿﺷﺎﺣ ﻞﮑﺷ
ﺪﻨﮐ ﯽﻣ ﺺﺨﺸﻣ ﺍﺭ ﺖﺳﺍﺭ ﺖﻤﺳ ﻻﺎﺑ ﻪﺷﻮﮔ ﻪﯿﺷﺎﺣ ﻞﮑﺷ
ﺪﻨﮐ ﯽﻣ ﺺﺨﺸﻣ ﺍﺭ ﺖﺳﺍﺭ ﺖﻤﺳ ﻦﯿﯾﺎﭘ ﻪﺷﻮﮔ ﻪﯿﺷﺎﺣ ﻞﮑﺷ
ﺪﻨﮐ ﯽﻣ ﺺﺨﺸﻣ ﺍﺭ ﭗﭼ ﺖﻤﺳ ﻦﯿﯾﺎﭘ ﻪﺷﻮﮔ ﻪﯿﺷﺎﺣ ﻞﮑﺷ