My question is about an icon with a link attached to it.
<%= link_to image_tag("infobutton_circle_blue.png") ,"http://redbullrecords.com/artist/awolnation/", :id => "about" %>
After applying styles, the link may not work properly:
<a id="about" href="http://redbullrecords.com/artist/awolnation/" style="
height: 40px;
"><img src="/images/infobutton_circle_blue.png"></a>
When adding position and sizing styles, such as:
#about
img
float: right
width: 50px
padding-right: 45px
+rhythm(-2.0 , 0, 0, 0)
The image may no longer function as a link, appearing strangely on the page inspector with a 0px x 0px size. Has anyone encountered this issue before?
If you have any solutions or suggestions, please share them with me as I try to figure out what might be causing this problem.
I attempted to target the image id directly without success, which is why I am using #about img
in my code snippet.