"use css to replace icon with text when hover" Code Answer's
You're definitely familiar with the best coding language CSS that developers use to develop their projects and they get all their queries like "use css to replace icon with text when hover" answered properly. Developers are finding an appropriate answer about use css to replace icon with text when hover related to the CSS coding language. By visiting this online portal developers get answers concerning CSS codes question like use css to replace icon with text when hover. Enter your desired code related query in the search bar and get every piece of information about CSS code related question on use css to replace icon with text when hover.
use css to replace icon with text when hover
<div class="nav">
<ul>
<li class="home">
<a href="index.html"><i class="icon fa fa-home fa-2x"></i><b>Home</b></a>
</li>
<li class="about">
<a href="about"><i class="icon fa fa-coffee fa-2x"></i><b>About</b></a>
</li>
<li class="projects">
<a href="#projects"><i class="icon fa fa-code fa-2x"></i><b>Projects</b></a>
</li>
<li class="contact">
<a href="#contact"><i class="icon fa fa-comment fa-2x"></i><b>Contact</b></a>
</li>
</ul>
</div>
Source: stackoverflow.com
use css to replace icon with text when hover
<li class="home">
<a href="index.html"><i class="icon fa fa-home fa-2x"></i><b>Home</b></a>
</li>
Source: stackoverflow.com
use css to replace icon with text when hover
@import url("https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css");
.nav ul {
list-style: none;
margin: 0;
padding: 0;
position: absolute;
top: 0;
right: 0;
}
.nav li {
font-size:12pt;
display:block;
float: left;
height:90px;
width: 145px; /*new*/
text-align: center; /*new*/
transition: all 0.2s ease-in-out;
}
.nav .home {
background: #a3d39c;
}
.nav .about {
background: #7accc8;
}
.nav .projects {
background: #4aaaa5;
}
.nav .contact {
background: #35404f;
}
.nav li a {
font-family: FontAwesome;
color:#eee;
font-size:22pt;
text-decoration: none;
display: block;
padding:15px;
}
.nav li i {
color:#fff;
padding:0 10px;
}
.nav li b {
padding: 15px 0;
display: none;
}
.nav a:hover {
color: #fff;
}
.nav a:hover i {
display: none;
}
.nav a:hover b {
display: block;
}
Source: stackoverflow.com
All those coders who are working on the CSS based application and are stuck on use css to replace icon with text when hover can get a collection of related answers to their query. Programmers need to enter their query on use css to replace icon with text when hover related to CSS code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about use css to replace icon with text when hover for the programmers working on CSS code while coding their module. Coders are also allowed to rectify already present answers of use css to replace icon with text when hover while working on the CSS language code. Developers can add up suggestions if they deem fit any other answer relating to "use css to replace icon with text when hover". Visit this developer's friendly online web community, CodeProZone, and get your queries like use css to replace icon with text when hover resolved professionally and stay updated to the latest CSS updates.