Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You are calling <code>.fancybox()</code> on <code>a#linkTo</code>. When Fancybox finds a link inside of an anchor you point to, it will remove the contents of your anchor (<code>#linkTo</code>) to some other location in the DOM. This is presumably for ease of use. In your case, you want the <code>#workTag</code> to remain in the link. So if you remove your fancybox content (<code>#whichResume</code>) outside of your anchor, Fancybox should automatically find the content with id <code>#whichResume</code>, because your href points to it. You don't need it to be inside of you link.</p> <p>Change this:</p> <pre><code>&lt;a id="linkTo" href="#whichResume"&gt; &lt;div id="workTag"&gt; &lt;div id="whichResume" style="background:white;" class="roundedCorners"&gt; &lt;a href="images/icons/document_pdf.png"&gt; &lt;img src="images/resumeTHUMB/graphicResumeTHUMB.jpg" class="graphic" /&gt; &lt;/a&gt; &lt;a href="images/icons/document_pdf.png"&gt; &lt;img style="margin-left:50px;" src="images/resumeTHUMB/typeResumeTHUMB.jpg" class="type"/&gt; &lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;/a&gt; </code></pre> <p>To this:</p> <pre><code>&lt;a id="linkTo" href="#whichResume"&gt; &lt;div id="workTag"&gt;&lt;/div&gt; &lt;/a&gt; &lt;div id="whichResume" style="background:white;" class="roundedCorners"&gt; &lt;a href="images/icons/document_pdf.png"&gt; &lt;img src="images/resumeTHUMB/graphicResumeTHUMB.jpg" class="graphic" /&gt; &lt;/a&gt; &lt;a href="images/icons/document_pdf.png"&gt; &lt;img style="margin-left:50px;" src="images/resumeTHUMB/typeResumeTHUMB.jpg" class="type"/&gt; &lt;/a&gt; &lt;/div&gt; </code></pre> <p>See example here: <a href="http://jsfiddle.net/jtbowden/BTqxx/" rel="nofollow">http://jsfiddle.net/jtbowden/BTqxx/</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload