combining html link anchor with css hover

In order to further my CSS knowledge I've been attempting this, but I'm not even sure it's possible.I have a list of 50 links, 1 per line going down the page. There is very little vertical padding/margin between each link. Each link has been assigned an individual HTML \[code\]id\[/code\], e.g.\[code\]<a id="test" href="http://stackoverflow.com/questions/15680439/temp.html">blaghblagh</a>\[/code\]so that visiting http://example.com/temp.html#test will change the page focus to the specific link \[code\]id\[/code\].What I'm wanting is when a temp.html#test url is visited, the \[code\]#test\[/code\] id link anchor will cause the link to "stand out" by placing padding/margin around the link.I've been trying to combine it with \[code\]a:hover\[/code\] and all kinds of stuff but to no avail. Any advice would be greatly appreciated.
 
Back
Top