Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I achieve the mouseover effect like on wikipedia?
    primarykey
    data
    text
    <p>I want to achieve the css effect like wikipedia. If I mouseover on any reference number like [1], the bottom reference content will be signled out with a css border effect. How can I achieve that? By mouseovering on one link but other element respond... Just could not figure out how to do that.</p> <p>I hope I have made my point clear.</p> <p>Example: <a href="http://en.wikipedia.org/wiki/2013_Harbin_smog#cite_note-14" rel="nofollow">http://en.wikipedia.org/wiki/2013_Harbin_smog#cite_note-14</a></p> <p>My testing code:</p> <pre><code>&lt;!-- declare that this document is written in HTML 5 --&gt; &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;style&gt; p:target {background:lightblue;} &lt;/style&gt; &lt;/head&gt; &lt;!-- Beginning of the &lt;body&gt; tag --&gt; &lt;body&gt; &lt;p&gt;&lt;a id='faq1link' href="#faq1content"&gt;Jump to FAQ FAQ 1&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a id='faq2link' href="#faq2content"&gt;Jump to FAQ FAQ 2&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a id='faq3link' href="#faq3content"&gt;Jump to FAQ FAQ 2&lt;/a&gt;&lt;/p&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;p id="faq1content"&gt;&lt;b&gt;FAQ content 1...&lt;/b&gt;&lt;/p&gt; &lt;p id="faq2content"&gt;&lt;b&gt;FAQ content 2...&lt;/b&gt;&lt;/p&gt; &lt;p id="faq3content"&gt;&lt;b&gt;FAQ content 3...&lt;/b&gt;&lt;/p&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    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