Why is there a sign - (dash) or _ (underline) between <a> images
Can someone explain why I see two dashes (or underscores) between my images, for example:

How to remove them?
This strange behavior appears in chrome (linux), safari (mac), and also in firefox (mac).
<html> <head> <style type="text/css" media="screen"> ul li { display: inline; } </style> </head> <body style="background: none;"> <ul clas=""> <li> <a href="file:///dir/file.jpg" rel="prettyPhoto" title="This is title"> <img src="file:///thumbnails/t.jpg" width="60" height="60" alt="Hi"> </a> </li> <li> <a href="file:///dir/file.jpg" rel="prettyPhoto" title="This is title"> <img src="file:///thumbnails/t.jpg" width="60" height="60" alt="Hi"> </a> </li> <li> <a href="file:///dir/file.jpg" rel="prettyPhoto" title="This is title"> <img src="file:///thumbnails/t.jpg" width="60" height="60" alt="Hi"> </a> </li> </ul> </body> </html> This is not an underline, this is an underline of a link. Pay attention to your markup:
<a href="file:///dir/file.jpg" rel="prettyPhoto" title="This is title"> <img src="file:///thumbnails/t.jpg" width="60" height="60" alt="Hi"> </a> There are spaces before and after img in a . If elements are styles for underlining, these spaces will be underlined.
You can remove spaces:
<a href="file:///dir/file.jpg" rel="prettyPhoto" title="This is title"><img src="file:///thumbnails/t.jpg" width="60" height="60" alt="Hi"></a> and / or you can change the style:
a { text-decoration: none; } This is because it is wrapped in a link. You will need to remove the underline using CSS.
.myListWithoutUnderlines a{ text-decoration: none; } .myListWithoutUnderlines li { display: inline; } <ul class="myListWithoutUnderlines"> <li> <a href="file:///dir/file.jpg" rel="prettyPhoto" title="This is title"> <img src="file:///thumbnails/t.jpg" width="60" height="60" alt="Hi"> </a> </li> <li> <a href="file:///dir/file.jpg" rel="prettyPhoto" title="This is title"> <img src="file:///thumbnails/t.jpg" width="60" height="60" alt="Hi"> </a> </li> <li> <a href="file:///dir/file.jpg" rel="prettyPhoto" title="This is title"> <img src="file:///thumbnails/t.jpg" width="60" height="60" alt="Hi"> </a> </li> </ul> Underscore characters are triggered by the browser, registering a space after the image, before the closing </a> tag. To counteract this, you need to remove the indent:
<html> <head> <style type="text/css" media="screen"> ul li { display: inline; } </style> </head> <body style="background: none;"> <ul class=""> <li> <a href="file:///dir/file.jpg" rel="prettyPhoto" title="This is title"><img src="file:///thumbnails/t.jpg" width="60" height="60" alt="Hi"></a> </li> <li> <a href="file:///dir/file.jpg" rel="prettyPhoto" title="This is title"><img src="file:///thumbnails/t.jpg" width="60" height="60" alt="Hi"></a> </li> <li> <a href="file:///dir/file.jpg" rel="prettyPhoto" title="This is title"><img src="file:///thumbnails/t.jpg" width="60" height="60" alt="Hi"></a> </li> </ul> </body> </html>