
Originally Posted by
benosullivan
I have a large background picture which takes up most of the webpage and I want little images that overly that one that I can use as links.
what code do I need - any idea?
You would use CSS to position the links containing the images. For example,
HTML Code:
<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>
Clearly, there are several parts that you need to alter:
- The width, height, background colour, foreground colour, and background image of the "container" div.
- The border around the linked images. Most of the time, borders aren't desired (so the border is removed above), but your requirements might be different.
- The list of links and images; their id, href, alt, and src attributes.
- The position of each link.
Hope that helps,
Mike
Bookmarks