Tip: The :hover selector can be used on all elements, not only on links. You can do this by either finding the text you want in the HTML editor, or by typing it yourself. See the /*THUMBNAIL HOVERPOPUPS*/ section The style in the stylesheet has a standard offset for width and height which results in each popup offset by the same amount that the original icon is offset from its neighbour. A Very Simple Popup Box – HTML, CSS, JavaScript. When the user mouse over this

, it will show the tooltip text.

The first popup of the first row needs no adjustment; it takes the standard stylesheet position. While using this site, you agree to have read and accepted our Google Chrome is based on the same WebKit engine as Safari.Some of the examples are provided just to show problems, others show solutions that work in most major browsers. The examples above are in a containing div with width: 730px; and margin: auto; so that they centralise at large screen resolutions.A lot of codes have been put in html tags in my examples rather than in a stylesheet or in a style in the head.

and mouseover events:If you want to report an error, or if you want to make a suggestion, do not hesitate to send us an e-mail: The onmouseover event occurs when the mouse pointer is moved onto an element, or onto one of its children. The code is nearly all in the stylesheet and operated from the combination of a div id="popup" with the style for a:hover span which means it works when the span tag follows a hover on the a href link in a div id="popup" but not on a hover used elsewhere. The :hover selector is used to select elements when you mouse over them.. What you'll want to do is enclose whatever text you'd like to have a mouseover in span tags. When coding your own page you should try to put as much as possible in a stylesheet and link with id or class to the html tag.Remember that when a Doctype is included above the head before the html tag (as it should be) then the overall width of a div is its defined width plus borders, margins and padding widths.If there are differences between Firefox and IE6 that cannot be overcome with one code, code first to get a satisfactory solution in Firefox then create an IF style which will only apply to IE6:-When looking at a page source for this site you may see code like <p>Little Egret</p> instead of

Little Egret

. The second and subsequent images in the same row will have only a left value adjustment but if there are icons in two or more rows, the first popup in the second row will have only a top value and the second and subsequent popups in the second row will have a top and left adjustment.The code for the adjustment of the second popup is:-Note the addition of style="left: 240px" in the for the popup because the icon plus its padding is 60px further right than the first one so the popup, in order to stay in the same place as the first popup, needs to be 60px less than the standard offset, ie 300-60=240px.Each popup will require a different value achieved by trial and error though you should be able to get close with the first attempt by estimating the width of the icon and its padding from its neighbour.