Skip to main content

Glowing text in css

Glowing text in CSS


Hello student in this tutorial we will see that how to make glowing text in css 
so let's  break down this topic here .







1 . we taking a div or any tag, class, id for targeting text so here i am taking a id so first  we will center of this element through position absolute like this 
 
  #text {
            /* position center through position absolute*/
            positionabsolute;
            top40%;
            left50%;
            transformtranslate(-50%-50%);
}


2. Again in this css we coding for text shadow like this through text-shadow carefully see of this code here and try in your code editer.
  
        #text {
            /* position center through position absolute*/
            positionabsolute;
            top40%;
            left50%;
            transformtranslate(-50%-50%);
            /* text glowing like this pay attention here */
            text-shadow0 0 4px white0 0 4px red0 0 4px red,
 0 0 4px red0 0 4px red0 0 4px red0 0 4px red;
            /*you can adjust of this according to you font size */
            font-size40px;
            colorblack;
        }

here one this that you can change text-shadow pixel value according to your font-size  and color you can also change of this value like px value and color .

  text-shadow0 0 4px white0 0 4px red0 0 4px red,
 0 0 4px red0 0 4px red0 0 4px red0 0 4px red;
            /*you can adjust of this according to you font size */
            font-size40px;




you can use of this code-source through copy and paste.

<!DOCTYPE html>
<html lang="en">

<head>
    <title></title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <style>
        body {
            background-colorblack;
        }
        
        #text {
            /* position center through position absolute*/
            positionabsolute;
            top40%;
            left50%;
            transformtranslate(-50%-50%);
            /* text glowing like this pay attention here */
            text-shadow0 0 4px white0 0 4px red0 0 4px red,
 0 0 4px red0 0 4px red0 0 4px red0 0 4px red;
            /*you can adjust of this according to you font size */
            font-size40px;
            colorblack;
        }
    </style>
</head>

<body>



    <div id="text">it is glowing text </div>
</body>

</html>

Comments

Popular posts from this blog

Function in Python programming language

  Function in Python? In Python, a function is a group of related statements that performs a specific task. Functions help break our program into smaller and modular chunks. As our program grows larger and larger, functions make it more organized and manageable. Furthermore, it avoids repetition and makes the code reusable. Syntax of Functio n def function_name ( parameters ): """ docstring """ statement(s) Above shown is a function definition that consists of the following components. Keyword  def  that marks the start of the function header. A function name to uniquely identify the function. Function naming follows the same rules of writing identifiers in Python. Parameters (arguments) through which we pass values to a function. They are optional. A colon (:) to mark the end of the function header. Optional documentation string (docstring) to describe what the function does. One or more valid python statements that make up the function body. Stateme...

OOP OBJECT ORIENTED PROGRAMMING LANGUAGE

OOP OBJECT ORIENTED PROGRAMMING LANGUAGE  Object-oriented programming (OOP) is a programming paradigm based on the concept of "objects", which may contain data, in the form of fields, often known as attributes; and code, in the form of procedures, often known as methods. For example, a person is an object which has certain properties such as height, gender, age, etc. It also has certain methods such as move, talk, and so on. Example : suppose we want to make a application for a car. in this case vehicle is our class for .  in this programming  , object is our  car   now we want o create method that speed up down so we will need orient all method in this application according to our object so that programmer can easily orient all method according  to this object. for this most programming language developed in form of object oriented programming language. Object This is the basic unit of object-oriented programming. That is both data and function that o...