The Easiest way to learn about text shadow using CSS

 Sometimes we need just text-shadow, instead of div section shadow. Here are some tricks for text-shadow. I hope it will help you.

Use this code to understand text-shadow.


<!doctype html>


<html lang="en">

<head>

  <meta charset="utf-8">

  <meta name="viewport" content="width=device-width, initial-scale=1">

<title>Login Template</title>

  <meta name="description" content="">

  <meta name="author" content="">

 <meta property="og:title" content="">

  <meta property="og:type" content="">

  <meta property="og:url" content="">

  <meta property="og:description" content="">

  <meta property="og:image" content="">

<link rel="icon" href="/favicon.ico">

  <link rel="stylesheet" href="assets/css/bootstrap.min.css?v=1.0">

  <link rel="stylesheet" href="assets/css/style.css?v=1.0">

  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css

">

</head>

<style>

h1

{

   text-shadow: 2px 2px #ff0000;

   padding-left: 30px;

}

h2

{

    text-shadow: 2px 2px 4px #000000;

    padding-left: 30px;

}

h3

{

    text-shadow: 0 0 3px #FF0000;

    padding-left: 30px;

}

</style>

<body>

  <h1>Text Border</h1>

  <h2>Another Way for Text Shadow</h2>

  <h2>Try this also</h2>

  <script src="assets/js/jquery-3.2.1.slim.min.js"></script>

   <script src="assets/js/bootstrap.min.js"></script>

    <script src="assets/js/bootstrap.bundle.min.js"></script>

</body>

</html>

Comments