Yes what you do is just simply wrap it in a table with 4 cells

This will preserve the nicely coded look, but allow you to take out the 
whitespaces to make the code look nice.


here you go
<?xml version="1.0" encoding="UTF-8" ?>
<!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=UTF-8" />
<link rel="stylesheet" type="text/css" href="/four.css" />
<title>Four</title>
</head>
<body>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
    <td><a href="/about.html"><img src="/images/about-us.gif" /></a></td>
    <td><a href="/our_work.html"><img src="/images/our-work.gif" /></a></td>
    <td><a href="/our_clients.html"><img src="/images/our-clients.gif" 
/></a></td>
    <td><a href="/contact.html"><img src="/images/contact-us.gif" 
/></a></td>
</tr>
</table>
</body>
</html>


Kelly Sigethy - Frynge.com
Web Design - Hosting - Advertising
http://www.frynge.com
1-403-251-9486 (Calgary)
1-866-331-9684 (Toll Free - Canada and the USA)
+44 (0)8717 206 505 (United Kingdom)

----- Original Message ----- 
From: "ray" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, October 21, 2008 12:03 AM
Subject: Re: [css-d] the problem of image anchor


> Great! Thank you very much.
> Is there a way to remove these whitespaces and keep the html pretty
> formatted?
>
> On Tue, Oct 21, 2008 at 11:47 AM, Thierry Koblentz <[EMAIL PROTECTED]> 
> wrote:
>
>> > -----Original Message-----
>> > From: [EMAIL PROTECTED] [mailto:
>> [EMAIL PROTECTED]
>> > discuss.org] On Behalf Of ray
>> > Sent: Monday, October 20, 2008 8:31 PM
>> > To: [email protected]
>> > Subject: [css-d] the problem of image anchor
>> >
>> > Hi, all
>> > Please check this page:http://fouragency.co.uk/test.html
>> > Could somebody tell me why there are gaps between the images? I checked
>> the
>> > anchors and img elements, their padding, borders and margins are all
>> zero.
>> > I'm very confused, please help me out. Thanks in advance.
>>
>>
>> This is because of the whitespace in the markup
>>
>>
>>
>> --
>> Regards,
>> Thierry | http://www.TJKDesign.com
>>
>>
>>
>>
>>
> ______________________________________________________________________
> css-discuss [EMAIL PROTECTED]
> http://www.css-discuss.org/mailman/listinfo/css-d
> List wiki/FAQ -- http://css-discuss.incutio.com/
> List policies -- http://css-discuss.org/policies.html
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/ 


______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to