Aligning to the right in HTML

  scan513 18:05 24 Nov 03


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 03

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 03

Thank you so much phil, I really appreciate that!

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

Nintendo Switch review: Hands-on with the intuitive modular console and its disappointing games…

1995-2015: How technology has changed the world in 20 years

Method Studios' title sequence for BBC series Taboo is truly unsettling

Best Pages for iOS tips | How to use Pages for iPad & iPhone: 7 simple tips to get more out of…