Responsive Text: Create a Responsive Google text logo with HTML & CSS
At times; using a text logo for your simple HTML website is pretty easier than going through a lot to creating an image to be used as the logo. Also, images turn to lose quality when being compressed to a certain point. Another reason you may want to use text as the log of your website is to reduce load time.
In today's short tutorial, we will be telling you how to create responsive text. And we are going to apply the idea of responsive text to create a simple stylish Google logo using just HTML and CSS.
What is a text logo?
Creating our stylish responsive Google text logo
The HTML code
<div class='logo-txt'><span class='logo-txt g'>G</span><span class='logo-txt o'>o</span><span class='logo-txt oo'>o</span><span class='logo-txt g'>g</span><span class='logo-txt l'>l</span><span class='logo-txt e'>e</span>
</div>
CSS code
.logo-txt{
font-size:30vw;
font-weight:bold;
text-align:center;
margin:2px 0px 2px 0px;
}
.logo-txt .g{
color: #4287f5;
}
.logo-txt .o, .logo-txt .e{
color: #d62e18;
}
.logo-txt .oo{
color: #f2750f;
}
.logo-txt .l{
color: #0b962b;
}
Application
<div class='logo-txt'><span class='logo-txt g'>G</span><span class='logo-txt o'>o</span><span class='logo-txt oo'>o</span><span class='logo-txt g'>g</span><span class='logo-txt l'>l</span><span class='logo-txt e'>e</span></div>
<
<div class="header">
<h1>My Website</h1>
</div>
<div class="header">
<h1><div class='logo-txt'><span class='logo-txt g'>G</span><span class='logo-txt o'>o</span><span class='logo-txt oo'>o</span><span class='logo-txt g'>g</span><span class='logo-txt l'>l</span><span class='logo-txt e'>e</span</div>></h1>
</div>


Comments
Post a Comment