benosullivan
04-19-2005, 03:14 PM
Dear all,
MWINTER gave me the following CSS code to overlay hyperlink images onto a background - can someone see which attributes define the position of the overlayed images?
Thanks
Ben
<head>
<!-- ... -->
<style type="text/css">
#container {
background: url(http://www.example.com/background.jpeg) #000000 no-repeat;
color: #ffffff;
position: relative;
height: <nn>px;
width: <mm>px;
}
#container a {
position: absolute;
}
#container a img {
border-style: none;
}
#blah {
top: <y>px;
left: <x>px;
}
</style>
</head>
<body>
<div id="container">
<a id="blah" href="..."><img alt="text equivalent of image" src="..."></a>
</div>
</body>
MWINTER gave me the following CSS code to overlay hyperlink images onto a background - can someone see which attributes define the position of the overlayed images?
Thanks
Ben
<head>
<!-- ... -->
<style type="text/css">
#container {
background: url(http://www.example.com/background.jpeg) #000000 no-repeat;
color: #ffffff;
position: relative;
height: <nn>px;
width: <mm>px;
}
#container a {
position: absolute;
}
#container a img {
border-style: none;
}
#blah {
top: <y>px;
left: <x>px;
}
</style>
</head>
<body>
<div id="container">
<a id="blah" href="..."><img alt="text equivalent of image" src="..."></a>
</div>
</body>