[Solved] Cannot change anchor text font size when it is inside a div


You forgot to add the unit of measurement to the font-size. Add px, em, or % to the end of 18.

.linkunderthepicture a {
  width: 99%;
  font-size: 48px;
  text-decoration: underline;
  font-weight:bold;
  text-align: center;
}
<div class="linkunderthepicture"><a href="http://google.com">Click</a></div>

solved Cannot change anchor text font size when it is inside a div