I'm wanting to put 4 linked images the size of the small squares in that image, and in that formation.
You could do something like this.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
*{margin:0;padding:0}
ul.test{
list-style:none;
float:right;
width:40px;
height:40px;
}
.test li,
.test li a{
width:17px;
height:17px;
float:left;
overflow:hidden;
text-decoration:none;
color:#fff;
display:inline;
}
.test li {margin:0 3px 3px 0;}
.test li.a a{background:red;}
.test li.b a{background:blue;}
.test li.c a{background:green;}
.test li.d a{background:yellow;}
.test li.a a:hover{background:teal;}
.test li.b a:hover{background:orange;}
.test li.c a:hover{background:wheat;}
.test li.d a:hover{background:black;}
</style>
</head>
<body>
<ul class="test">
<li class="a"><a href="#">a</a></li>
<li class="b"><a href="#">b</a></li>
<li class="c"><a href="#">c</a></li>
<li class="d"><a href="#">d</a></li>
</ul>
</body>
</html>
If the image shapes are more complicated than add position:relative to the ul and than absolutely position each anchor (instead of floating) inside the ul at the exact position you need.
Bookmarks