I have a div with many elements inside. When the user hovers over the div, I want to increase the font size within that specific div. Here is the HTML code structure:
<div class="col-sm-5 home-grid-2x">
<div class="home-grid-2" style="right: 0%; top: 0%;">
<div class="overlay" style="top: 99.9898%; left: -99.9224%;"></div>
<a class="tile" href="/#/apply">
<span class="tile-text">
Membership Application
</span>
</a>
</div>
</div>
The element hierarchy is as follows:
-> home-grid-2x ----> home-grid-2 ----> overlay ----> tile -------> tile-text
Essentially, I aim to enlarge the text size of tile-text
when the user hovers over home-grid-2x
. I attempted the following CSS:
.home-grids:hover .tile {
font-size: 150%;
}
.home-grids:hover .tile.tile-text {
font-size: 150%;
}
.home-grids:hover tile-text {
font-size: 150%;
}
However, none of these solutions worked. Is this even possible?