|
Posted by dorayme on April 14, 2008, 3:01 am
Please log in for more thread options
In article
> Consider an example:
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
> <html>
> <head>
> <style>
> a { background-color:red;}
> </style>
> </head>
> <body>
>
> <a href="#">A</a>
> <a href="#">B</a>
> <a href="#">C</a>
> <a href="#">D</a>
> <a href="#">E</a>
> <a href="#">F</a>
> <a href="#">G</a>
>
> </body>
> </html>
>
>
> There are whitespace within each hyperlink, without touching the
> source, is it possible to remove all the whitespaces?
>
> Thanks.
Fixing up a few things in your mark up, closest is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"> <html>
<head>
<title>A howa question</title>
<style type="text/css" media="all">
a { background-color:red;}
</style>
</head>
<body>
<div>
<a href="#">A</a
><a href="#">B</a
><a href="#">C</a
><a href="#">D</a
><a href="#">E</a
><a href="#">F</a
><a href="#">G</a>
</div>
</body>
</html>
--
dorayme
|