Simple question really. Instead of having a button trigger a modal window, I need to use an image. I can't figure out the code to do it. Any tips?
Asked
Active
Viewed 8,907 times
3
-
trigger and wrap it in the image – João Rafael Mar 15 '13 at 04:52
1 Answers
8
Yes you just wrap the tag around an image.
<a href="#myModal" role="button" data-toggle="modal">
<img src="http://placehold.it/150x150"></a>
Here is a live example:

anataliocs
- 10,427
- 6
- 56
- 72