Ask your own question, for FREE!
Computer Science 15 Online
OpenStudy (coconutjj):

HTML/CSS: In CSS I put the [:hover] attribute on some text so when I hover over it, it will turn into another font-color. However I later realized that if my cursor in on the row that the text is, it will still change color. How do I fix this so it will only change when my cursor is on the text.

OpenStudy (harsha19111999):

Then you must have assigned it to the whole row. So, you can enclose it in a <div> element. If you can post the code here, I can help

OpenStudy (rsmith6559):

<div> is a block element. <span> is an inline element.

OpenStudy (anonymous):

You should wrap the text in a span element and apply the css to that span.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!