Forum:How do you create floating icons at the top of an article?

On Brickipedia, we are attempting to create icons which appear on the right side of the top of an article, in line with the title. The only successful wikis that I have found similar templates on are Template Eras (with Template:Eraicon) on Wookieepedia, and Template:Game (with Template:Gameicon) on the Fallout wiki. Template:Rating/Test2 has been created on Brickipedia along with Template:Rating/Test, and we have copied the appropriate code from the Fallout wiki's Mediawiki:Common.js and Mediawiki:Common.css and slightly modified it (the id changed from "title-games" to "title-rating") (Brickipedia's Mediawiki:Common.js and Mediawiki:Common.css). However, instead of having a nice little icon at the top of the article (like on here), we have two icons- one inline with the text and the other floating vaguely where it should be, although it is situated on the left side (example). We've been trying to sort this out for some time now, but have only had limited success (the top icon does move upwards when the sitenotice is dismissed as it should). Any help would be much appreciated. -- 08:49, January 16, 2010 (UTC)


 * Well, it should work with the Fallout CSS (which is currently commented out) - keep in mind it takes a while for CSS cache to update. The Wookieepedia CSS bit (which is currently not commented out) is actually the wrong one; it only hides the icons when the page is printed ("@media print"). -- Porter21 (talk) 09:16, January 16, 2010 (UTC)
 * Thanks for your reply, we'll wait and keep monitoring this issue until it will (hopefully) update. -- 11:56, January 16, 2010 (UTC)


 * Just make sure the comment signs around Fallout Wiki's CSS in Mediawiki:Common.css are removed; if they aren't, you're in for a long wait :) -- Porter21 (talk) 15:40, January 16, 2010 (UTC)
 * Oops, thanks again. -- 18:20, January 16, 2010 (UTC)
 * Thanks very much for your help Porter21, the icons are now working. Nighthawk leader 05:34, January 18, 2010 (UTC)
 * You're welcome :) -- Porter21 (talk) 10:17, January 18, 2010 (UTC)