CSS ﻪﯾﺎﺳ ﯼﺎﻫ ﻩﻮﻠﺟ


فهرست مطالب

    نمایش فهرست مطالب


Norway

Shadows

With CSS you can create shadow effects!

Hover over me!

CSS ﻪﯾﺎﺳ ﯼﺎﻫ ﻩﻮﻠﺟ

.ﺪﯿﻨﮐ ﻪﻓﺎﺿﺍ ﺮﺻﺎﻨﻋ ﻭ ﻦﺘﻣ ﻪﺑ ﻪﯾﺎﺳ ﺪﯿﻧﺍﻮﺗ ﯽﻣ CSS ﺎﺑ

:ﺪﯾﻮﺷ ﯽﻣ ﺎﻨﺷﺁ ﺮﯾﺯ ﺹﺍﻮﺧ ﺎﺑ ﻞﺼﻓ ﻦﯾﺍ ﺭﺩ

text-shadow
box-shadow

CSS ﻦﺘﻣ ﻪﯾﺎﺳ

.ﺪﻨﮐ ﯽﻣ ﻝﺎﻤﻋﺍ ﻦﺘﻣ ﻪﺑ ﺍﺭ ﻪﯾﺎﺳ text-shadow

:ﺪﯿﻨﮐ ﯽﻣ ﺺﺨﺸﻣ ﺍﺭ (2px) ﯼﺩﻮﻤﻋ ﻪﯾﺎﺳ ﻭ (2px) ﯽﻘﻓﺍ ﻪﯾﺎﺳ ﻂﻘﻓ ﺎﻤﺷ ،ﻩﺩﺎﻔﺘﺳﺍ ﻦﯾﺮﺗ ﻩﺩﺎﺳ

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>


:ﺪﯿﻨﮐ ﻩﺩﺎﻔﺘﺳﺍ (ﻪﯾﺎﺳ ﻥﻭﺪﺑ) ﺎﻫ ﻦﺘﻣ ﺯﺍ ﯽﺧﺮﺑ ﻑﺍﺮﻃﺍ ﺭﺩ ﻩﺩﺎﺳ ﻪﯿﺷﺎﺣ ﮏﯾ ﺩﺎﺠﯾﺍ ﯼﺍﺮﺑ tex

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>