CSS3 connected with your imagination can result in an ocean of stunning and different effects. Creative experimentation with web typography is one of the ideals of web developers to make their websites visually impressive. By going on typography, you can now create stunning results using only CSS.
Before starting writing code, we need to create a basic structure of an HTML document. Writing basic Structure is very important because the browser can easily understand document type and may start some process. The basic HTML structure looks as below
<!DOCTYPE html>
<html>
<head>
<title>text shadow</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="text">
Web Design
</div>
</body>
</html>
After Writing the basic structure of the HTML document, you can write your required tags and content also, after that run this code on your browser and see the output. As we know that HTML only shows content in a basic format, it does not beautify that content. To beautify our content we need for CSS, which is inserted in an HTML document and it creates an attractive user interface.Now, it's time to beautify our HTML content, so we need to add to CSS in our HTML file. CSS can be added to the HTML document in three ways, here we are using the internal CSS method. Write CSS which is shown below and see the output on your browser.
*{
margin: 0;
padding: 0
}
.text{
background:#87212e;
position: relative;
margin: -8px;
font-size: 225px;
text-align: center;
height: 55vh;
line-height: 90vh;
color: #000000;
font-weight: 700;
text-shadow:5px 5px 0 #8bb83a,
10px 10px 0 #fd8311,
15px 15px 0 #ff6ae5,
20px 20px 0 #84254a,
25px 25px 0 #4a6855,
30px 30px 0 #0094fb;
}
No comments: