I’ve been puzzling over this for a while. I’d like to have row of 4 images which are links to other pages. The images next to each other form a block of colour and therefore I don’t want and space between them.
I have been able to get the images to work perfectly by using a class in CSS to remove the border, padding and margin or just with html on each image.
As soon as I add the href to create the link, a white border appears around the image and obscurs the adjacent images. I can’t remove the border in either html or CSS whenever the href is added. Where am I going wrong?
EDIT
Thanks for suggestions - but still no luck. I have the following:
HTML
<a href="LINK"><img class="testpage" src="IMAGE.jpeg" /></a><a href="LINK"><img class="testpage" src="IMAGE.jpeg" /></a><a href="LINK"><img class="testpage" src="IMAGE.jpeg" /></a>
CSS
.testpage {
margin: 0;
padding: 0;
border: 0;
}
img, a {
margin: 0;
padding: 0;
border: 0;
}