Running this code displays left, right and down arrows touching the box table border but the top one has blanks in between. I searched internet tried things I found but still cannot make up arrow to touch the box table border. The arrow image is the same I just used paint application to rotate it and create all 4 arrows. Please let me know what I do wrong and if you can show me the code which works.

Running this code displays left, right and down arrows touching the box table border

Uhm, no, they don't.

QUOTE

but the top one has blanks in between.

No, it doesn't.

I don't know what you see, but I attach a screen cap of what I see (table borders made red so we can see them.

Do you want a box with text in the middle with images surrounding it? You don't need to put everything in a table for that. And when you change the display property of a table you make it something other than a table. So when you for instance make table.arrow display: inline, table properties like border-collapse and so on no longer apply.

One problem whatever way you do it is that you can't limit the space for text. Unless the text is very short and the box is very big. If you fill that box with text, what happens if someone uses a larger text size than you expect? Something gotta give...

Sorry but I don't know how to paste the image of what I see. Tried to use Insert Image but I ended up with the URL to my laptop. Anyway, I believe the reason why you see it different is that you added 1 pixel border to arrow table, that causes the last (right arrow) to be moved on new line as division width has been exceeded. Please increase the width,

div.main { width: 404px;}

and you'll see what I see. My concern here is the arrow on top. I want it to touch the top border line of box table.

No, I saw the broken image icons in the same spots before I added the border.

To add an image from your computer you do like this.

Look for a field below the one you write your post in. It's labeled File Attachments. There you find a Browse button. Use it to find your image on your HD. Then click the button to the right labeled Add This Attachment.

A new field appears below the Browse button where you see the file name of your image. Click Add into Post to add it to your post.

Don't understand why you don't see it. Your display looks like you exceeded div width and images are pushed on the next line. I'm attaching arrow images download them if you can. I also run this on IE11 and got same problem.

I'll be... With the images it looks as you said. How can that be? Without the images the tables are all over the place.

Anyway, the gap is because image are inline elements, or text-level if you please. They "stand on the line", just as letters. If you instead of the image had a word there, say "sun", there needs to be a space below because you may want to also type letters like g, j, p, q or y that have descenders. If you type an x beside the image you can see that the bottom of the image and the bottom of the x line up. They both stand on the line.

Frankly, the easiest way to fix this is to position the image. Replace the table with the below. I write the CSS inline for simplicity's sake. That doesn't mean you should.

Thanks for the explanation. Now, I understand what the problem is. I modified the code and it is displayed the way I wanted.

I don't have much HTML experience and my real goal is to have two tables with few columns and rows placed one by the other on the same line. I want to connect them by the arrows. Searching HTML I found that I have to use "display: inline; float: left;" table property to do that... This meant to me that I have to put the arrow in another table between the main two tables. That is why I tested arrow display. My approach can be totally wrong so if you think that there is a better solution let me know.

If the two tables you want to have really are data tables, by all means use tables. But you don't need a table just as a container for text or to be able to float things around. Neither to floats need to be display: inline.