.caption{ position: absolute; font: normal 13px Arial; } .caption a{ position: block; background: azure; /*bg color of caption*/ padding: 3px; border:1px solid blue; text-decoration: none; font-family:cursive; font-size:13px; } .caption a:hover{ background: azure; /*bg color of caption when mouse rolls over it*/ font-family:cursive; font-size:13px; border:1px solid red; color: red; } .enlargebox{ position: absolute; display:none; } .enlargebox .title{ background:azure; color:white; padding: 3px 2px; text-align: right; font:bold 14px Arial; } .enlargebox .title img{ cursor:pointer; cursor:hand; }