Aligning to the right in HTML

  scan513 18:05 24 Nov 2003


Can anyone tell me how to put two images on the same line in html. I want to put two flags in the top left and top right of my page but when I try div align="right" the second flag jumps down a line.

Is there some way just using html to keep them on the same line?


  phil 19:42 24 Nov 2003

Create a table of two cells.

Put one flag image in the left hand cell and align it to the left. In the other cell put your image in but this time aligned to the right.

To place them at the top of each cell do this:
td valign="top"

At the bottom replace top with bottom and in the middle replace top with center.

While your're setting it up keep your border switched on but once you're happy with it switch it off. ie border="2" change to border="0". Don't leave the '0' out otherwise you'll get a thin border.

For a logo in between the two flags then start with a 3 cell table instead and simply put your logo image in the middle one.

  scan513 19:52 24 Nov 2003

Thank you so much phil, I really appreciate that!

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

Motorola Moto G6 review: Hands-on

The best smart speaker: Apple HomePod vs Google Home vs Amazon Echo

Les meilleurs jeux gratuits pour Mac (2018)