Help getting rid of space

M

michaaal

I use code like this:

<table border=0>
<tr>
<td>
<img src="/images/pic1.jpg"><img src="/images/pic2.jpg"><img
src="/images/pic3.jpg"><br>
The above pictures contain the specs you require
</td>
</tr>
</table>

The problem is that right below the pictures and above the "The above
pictures..." there is a little space. Is there a way to get rid of the
space?

If I haven't stated my question clearly I am happy to try to rephrase it.
Thanks!!
 
M

Mark Parnell

I use code like this:

Why? :-D
<table border=0>

The border attribute is deprecated. Use CSS:

table { border: 0; }
<tr>
<td>
<img src="/images/pic1.jpg"><img src="/images/pic2.jpg"><img
src="/images/pic3.jpg"><br>

You're missing the required alt attribute on your images.
The above pictures contain the specs you require
</td>
</tr>
</table>

The problem is that right below the pictures and above the "The above
pictures..." there is a little space. Is there a way to get rid of the
space?

Assuming it _is_ actually tabular data...

<td>
<img src="/images/pic1.jpg" alt="blah">
This has space
</td>

<td><img src="/images/pic1.jpg" alt="blah">This has no space</td>
 
A

Aquila Deus

Mark Parnell said:
Why? :-D


The border attribute is deprecated. Use CSS:

table { border: 0; }


You're missing the required alt attribute on your images.

Does any modern browser give you a "X" if alt is not there??

<snip>
 
M

Mark Parnell

Does any modern browser give you a "X" if alt is not there??

The alt text is a replacement for the image, if the image is not shown
for whatever reason (couldn't be loaded, images turned off,
non-graphical browser, etc). Not sure what you mean by a "X"?
 
I

Isofarro

Aquila said:
Does any modern browser give you a "X" if alt is not there??

A couple of user agents will render:

"slash images slash pick one dot jay pee gee slash images slash pick two dot
jay pee gee slash images slash pick three dot jay pee gee".

Whether that adds or detracts from your intended content is something only
you can judge.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top