CSS text-shadow adds shadow to H1 title
I often see that the title of some websites has a shadow effect, just like the title of this article actually has a little shadow effect. How is this done? First, you need to understand two things. The first thing is the website title <H1> tag, and the second is CSS3 text-shadow text shadow. Combining these two grammars together, you can create the shadow effect of the article title. The advantage of this effect is that it can make the title more three-dimensional and clearer, and can be easily distinguished from the content of the web page.
HTML H1 title and text
Here is the content of the article...
CSS3 text-shadow syntax
<!--
h1 {
text-shadow:3px 3px 3px #cccccc;
}
-->
</style>
Integrate the above two parts into one webpage
<!--
.h1 {
text-shadow:3px 3px 3px #cccccc;
}
-->
</style>
<h1>This is the sample title</h1>
This is the article content .....................
here is the article content...
Post a Comment
0 Comments