Avatar of Eddie Shipman
Eddie Shipman
Flag for United States of America

asked on 

hover on span inside anchor

<div class="course">
	<h3>
		<a href="site_link">
			Log on to <span class="redspan">My</span>Page
		</a>
	</h3>
	<p>Log on to MyPage to update your information.
	</p>
</div>
[code]
This is the CSS:
.main .col2  .course h3, .main .col2  .course h3 .redspan{
	margin-bottom: 0px;
	margin-top:5px;
	color:#FF0000;
	font-weight:bold;
	font-size:18px;
}
.main .col2  .course h3, .main .col2  .course h3 a{
	margin-bottom: 0px;
	margin-top:5px;
	color:#000000;
	font-weight:bold;
	font-size:18px;
}
.main .col2  .course h3 a:hover{
	color:#F0AE00;
}
.main .col2  .course h3 redspan:hover{
	color:#F0AE00;
}

Open in new window


The hover is not making the span change color. How would I do that? I DO NOT want to use an image.
CSS

Avatar of undefined
Last Comment
LZ1

8/22/2022 - Mon