First I'd have a separate CSS file, called specs.css or something clever.
put in it some code like this:
Code:
/*==================== text title (not specs) ===*/
/* this name will appear like a bar below the picture */
/* a nice area to play in first */
DIV#monitor { Z-INDEX: 100;
FONT: 16px Verdana,sans-serif;
WIDTH: 95%; HEIGHT: 500px;
POSITION: absolute; LEFT: 20px; TOP: 20px;}
/* bar with title above (or below) picture */
DIV#monitor A { DISPLAY: block;
BORDER: 0px; PADDING: 5px; MARGIN: 0px ;
WIDTH: 160px; /*width of bar */
COLOR: white; BACKGROUND: black;
FONT: bold 1em sans-serif;TEXT-ALIGN: center;
TEXT-DECORATION: none ;}
DIV#monitor A:hover {COLOR: black; BACKGROUND: #aa99c5;
WIDTH: 160px; }
/*============ MENU TEXT GIF parameters =====*/
/* this will control the appearance of a gif pic with text overtop */
/* no mouseover: invisible (zero height) */
DIV#monitor A IMG {BORDER: 0px; Z-INDEX: 100;
WIDTH: 800px; HEIGHT: 0px;
POSITION: absolute; LEFT: 10px; TOP: 30px; }
/* mouseover: visible (change height to actual size) */
DIV#monitor A:hover IMG { BORDER: 0px; Z-INDEX: 100;
WIDTH: 800px; HEIGHT: 120px ;
POSITION: absolute; LEFT: 10px; TOP: 30px; }
/*============= monitor image (doesn't change)== */
/* if image is placed outside of DIV for mouseover,
you may have to adjust height to align it. */
DIV#monimage { WIDTH: 160px; HEIGHT: 120px ;
POSITION: absolute; LEFT: 10px; TOP: 30px; }
Now in your webpage put this in the HEAD section:
Code:
<!--========================= stylesheet ===-->
<link rel="stylesheet" type="text/css" href="specs.css" >
And add this to the body:
Code:
<img id=monimage src="monimage.jpg" alt="">
<!--============== make text appear on mouseover of label ==-->
<DIV id=monitor>
<a href="">Monitor Name<img src="montext.gif"/></a>
</DIV>
Alter the colors to taste.
You'll have to create a gif file that has an invisible background color
for the text, called montext.gif.
Bookmarks