wattanabi wrote:
I'm new to css so I'm looking for as many resources as I can find,
hence the crossposting on css-d. Thanks for your help:
http://www.godofmod.com/butt2/index.php
Hmm.. why all the imageswap script stuff?
Compare your code with this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="css/layout.css" rel="stylesheet" type="text/css"
media="screen" />
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
div{width:225px;}
a,img{float:left;}
a#swap:link,a#swap:visited{background-image:url(images/img_10.jpg);}
a#swap:hover{background-image:url(images/img_10_over.jpg);}
</style>
</head>
<body>
<div id="container">
<div id="line_1" class="mainTable">
<img src="images/img_1.jpg" width="37" height="45" /><img
src="images/img_2.jpg" width="39" height="45" /><img
src="images/img_3.jpg" width="44" height="45" /><img
src="images/img_4.jpg" width="36" height="45" /><img
src="images/img_5.jpg" width="34" height="45" /><img
src="images/img_6.jpg" width="35" height="45" /></div>
<div id="line_2" class="mainTable">
<img src="images/img_7.jpg" width="37" height="60" /><img
src="images/img_8.jpg" width="39" height="60" /><img
src="images/img_9.jpg" width="44" height="60" /><a href="#"
id="swap"><img src="images/spacer.gif" width="36" height="60"
border="0" /></a><img src="images/img_11.jpg" width="34" height="60"
/><img src="images/img_12.jpg" width="35" height="60" /></div>
<div id="line_3" class="mainTable"><img src="images/img_13.jpg"
width="37" height="63" /><img src="images/img_14.jpg" width="39"
height="63" /><img src="images/img_15.jpg" width="44" height="63"
/><img src="images/img_16.jpg" width="36" height="63" /><img
src="images/img_17.jpg" width="34" height="63" /><img
src="images/img_18.jpg" width="35" height="63" /></div>
</div>
</body>
</html>
Much less code, the effect is the same, and it works even if
JavaScript is disabled.
--
Els
http://locusmeus.com/
accessible web design:
http://locusoptimus.com/