Created
September 27, 2011 08:17
-
-
Save iainurquhart/1244591 to your computer and use it in GitHub Desktop.
Pointee Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style type="text/css"> | |
.image {position: relative;} | |
.image span { | |
position: absolute; | |
background: red; | |
width: 15px; | |
height: 15px; | |
border-radius: 15px; | |
} | |
</style> | |
{exp:channel:entries channel="location" limit="1"} | |
<h3>{title}</h3> | |
{if pointee} | |
<div class="image"> | |
<img src="{pointee:img}" /> | |
<span style="left:{pointee:x offset='-8'}px; top:{pointee:y offset='-8'}px;"></span> | |
</div> | |
{/if} | |
{/exp:channel:entries} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is great. I've bookmarked it for future use, but I have a question: what about for responsive images?