Shadows
With CSS you can create shadow effects!
.ﺪﯿﻨﮐ ﻪﻓﺎﺿﺍ ﺮﺻﺎﻨﻋ ﻭ ﻦﺘﻣ ﻪﺑ ﻪﯾﺎﺳ ﺪﯿﻧﺍﻮﺗ ﯽﻣ CSS ﺎﺑ
:ﺪﯾﻮﺷ ﯽﻣ ﺎﻨﺷﺁ ﺮﯾﺯ ﺹﺍﻮﺧ ﺎﺑ ﻞﺼﻓ ﻦﯾﺍ ﺭﺩ
text-shadow
box-shadow
.ﺪﻨﮐ ﯽﻣ ﻝﺎﻤﻋﺍ ﻦﺘﻣ ﻪﺑ ﺍﺭ ﻪﯾﺎﺳ :ﺪﯿﻨﮐ ﯽﻣ ﺺﺨﺸﻣ ﺍﺭ (2px) ﯼﺩﻮﻤﻋ ﻪﯾﺎﺳ ﻭ (2px) ﯽﻘﻓﺍ ﻪﯾﺎﺳ ﻂﻘﻓ ﺎﻤﺷ ،ﻩﺩﺎﻔﺘﺳﺍ ﻦﯾﺮﺗ ﻩﺩﺎﺳ → ﺪﯿﻨﮐ ﻥﺎﺤﺘﻣﺍ ﺍﺭ ﻥﺁ ﻥﺎﺗﺩﻮﺧ :ﺪﯿﻨﮐ ﻪﻓﺎﺿﺍ ﻪﯾﺎﺳ ﻪﺑ ﮓﻧﺭ ﮏﯾ ﺲﭙﺳ → ﺪﯿﻨﮐ ﻥﺎﺤﺘﻣﺍ ﺍﺭ ﻥﺁ ﻥﺎﺗﺩﻮﺧ :ﺪﯿﻨﮐ ﻪﻓﺎﺿﺍ ﻪﯾﺎﺳ ﻪﺑ ﯼﺭﺎﺗ ﺖﮑﻓﺍ ﮏﯾ ،ﺲﭙﺳ → ﺪﯿﻨﮐ ﻥﺎﺤﺘﻣﺍ ﺍﺭ ﻥﺁ ﻥﺎﺗﺩﻮﺧ :ﺪﻫﺩ ﯽﻣ ﻥﺎﺸﻧ ﺍﺭ ﻩﺎﯿﺳ ﻪﯾﺎﺳ ﺎﺑ ﺪﯿﻔﺳ ﻦﺘﻣ ﮏﯾ ﺮﯾﺯ ﻝﺎﺜﻣ → ﺪﯿﻨﮐ ﻥﺎﺤﺘﻣﺍ ﺍﺭ ﻥﺁ ﻥﺎﺗﺩﻮﺧ :ﺪﻫﺩ ﯽﻣ ﻥﺎﺸﻧ ﺍﺭ ﺰﻣﺮﻗ ﻥﻮﺌﻧ ﻥﺎﺸﺧﺭﺩ ﻪﯾﺎﺳ ﮏﯾ ﺮﯾﺯ ﻝﺎﺜﻣ → ﺪﯿﻨﮐ ﻥﺎﺤﺘﻣﺍ ﺍﺭ ﻥﺁ ﻥﺎﺗﺩﻮﺧ .ﺪﯿﻨﮐ ﻪﻓﺎﺿﺍ ﺪﻧﺍﻩﺪﺷ ﺍﺪﺟ ﺎﻣﺎﮐ ﺎﺑ ﻪﮐ ﺍﺭ ﺎﻫﻪﯾﺎﺳ ﺯﺍ ﯽﺘﺳﺮﻬﻓ ﺪﯿﻧﺍﻮﺗﯽﻣ :ﺪﻫﺩ ﯽﻣ ﻥﺎﺸﻧ ﺍﺭ ﯽﺑﺁ ﻭ ﺰﻣﺮﻗ ﻥﻮﺌﻧ ﻥﺎﺸﺧﺭﺩ ﻪﯾﺎﺳ ﮏﯾ ﺮﯾﺯ ﻝﺎﺜﻣ → ﺪﯿﻨﮐ ﻥﺎﺤﺘﻣﺍ ﺍﺭ ﻥﺁ ﻥﺎﺗﺩﻮﺧ :ﺪﻫﺩ ﯽﻣ ﻥﺎﺸﻧ ﺍﺭ ﻩﺮﯿﺗ ﯽﺑﺁ ﻭ ﯽﺑﺁ ،ﻩﺎﯿﺳ ﻪﯾﺎﺳ ﺎﺑ ﺪﯿﻔﺳ ﻦﺘﻣ ﮏﯾ ﺮﯾﺯ ﻝﺎﺜﻣ → ﺪﯿﻨﮐ ﻥﺎﺤﺘﻣﺍ ﺍﺭ ﻥﺁ ﻥﺎﺗﺩﻮﺧ :ﺪﯿﻨﮐ ﻩﺩﺎﻔﺘﺳﺍ (ﻪﯾﺎﺳ ﻥﻭﺪﺑ) ﺎﻫ ﻦﺘﻣ ﺯﺍ ﯽﺧﺮﺑ ﻑﺍﺮﻃﺍ ﺭﺩ ﻩﺩﺎﺳ ﻪﯿﺷﺎﺣ ﮏﯾ ﺩﺎﺠﯾﺍ ﯼﺍﺮﺑ tex → ﺪﯿﻨﮐ ﻥﺎﺤﺘﻣﺍ ﺍﺭ ﻥﺁ ﻥﺎﺗﺩﻮﺧText shadow effect!
ﻝﺎﺜﻣ
h1
{
text-shadow: 2px 2px;
}
<!DOCTYPE html>
<html>
<head>
<style>
h1 {
text-shadow: 2px 2px;
}
</style>
</head>
<body>
<h1>Text-shadow effect!</h1>
</body>
</html>
Text shadow effect!
ﻝﺎﺜﻣ
h1
{
text-shadow: 2px 2px red;
}
<!DOCTYPE html>
<html>
<head>
<style>
h1 {
text-shadow: 2px 2px red;
}
</style>
</head>
<body>
<h1>Text-shadow effect!</h1>
</body>
</html>
Text shadow effect!
ﻝﺎﺜﻣ
h1
{
text-shadow: 2px 2px 5px red;
}
<!DOCTYPE html>
<html>
<head>
<style>
h1 {
text-shadow: 2px 2px 5px red;
}
</style>
</head>
<body>
<h1>Text-shadow effect!</h1>
</body>
</html>
Text shadow effect!
ﻝﺎﺜﻣ
h1
{
color: white;
text-shadow: 2px 2px 4px #000000;
}
<!DOCTYPE html>
<html>
<head>
<style>
h1 {
color: white;
text-shadow: 2px 2px 4px #000000;
}
</style>
</head>
<body>
<h1>Text-shadow effect!</h1>
</body>
</html>
Text shadow effect!
ﻝﺎﺜﻣ
h1
{
text-shadow: 0 0 3px #FF0000;
}
<!DOCTYPE html>
<html>
<head>
<style>
h1 {
text-shadow: 0 0 3px #FF0000;
}
</style>
</head>
<body>
<h1>Text-shadow with red neon glow!</h1>
</body>
</html>
ﺩﺪﻌﺘﻣ ﯼﺎﻫ ﻪﯾﺎﺳ
Text shadow effect!
ﻝﺎﺜﻣ
h1
{
text-shadow: 0 0 3px #FF0000, 0 0 5px #0000FF;
}
<!DOCTYPE html>
<html>
<head>
<style>
h1 {
text-shadow: 0 0 3px #FF0000, 0 0 5px #0000FF;
}
</style>
</head>
<body>
<h1>Text-shadow with red and blue neon glow!</h1>
</body>
</html>
Text shadow effect!
ﻝﺎﺜﻣ
h1
{
color: white;
text-shadow: 1px 1px 2px black, 0 0 25px blue, 0 0 5px darkblue;
}
<!DOCTYPE html>
<html>
<head>
<style>
h1 {
color: white;
text-shadow: 1px 1px 2px black, 0 0 25px blue, 0 0 5px darkblue;
}
</style>
</head>
<body>
<h1>Text-shadow effect!</h1>
</body>
</html>
Border around text!
ﻝﺎﺜﻣ
h1
{
color: coral;
text-shadow: -1px 0 black, 0 1px
black, 1px 0 black, 0 -1px black;
}
<!DOCTYPE html>
<html>
<head>
<style>
h1 {
color: coral;
text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}
</style>
</head>
<body>
<h1>Border around text!</h1>
</body>
</html>