I'm using haml and scss on a rails website and I have a "learn more" anchor tag. I want to be able to hover over the anchor tag and display a div with a class of ".tb-description" using only CSS(SASS) if possible. How can I change the display style on the div.tb-description?
haml code:
.book
%span.tb-message
= number_to_currency(tb_array[0], :precision => 0)
= link_to '#', :class=>"tb-learn-more-link" do
learn more
.tb-description
.tb-description-content
This is text I want to display when the "tb-learn-more-link" anchor tag is hovered over
scss code:
.tb-learn-more-link {
text-decoration: underline;
padding-left: .313em;
}
.tb-description {
display: none;
float: left;
margin: 14px 0 0 10px;
width: 250px;
}