I have managed to get a text showing when having the cursor over an image, but now I want to position it so that it appears on the image, preferrably in the center of it. And I would also like to change the font size of it. As I am new to web development I am not sure how to arrange this.
JSFiddle with necessary info: http://jsfiddle.net/gGvb2/
HTML:
<article class="art-1"> <img src="nutrition.jpg"> <span>Nutrition</span></article> CSS:
span { opacity: 0; -webkit-transition: opacity 0.2s ease-in-out; } img { width: 462px; } img:hover ~ span { opacity: 1; } Any help is greatly appreciated!