Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add two cells to this line of code

Status
Not open for further replies.

LebronJames

Programmer
Apr 5, 2003
93

This displays the image under my text...
Ex:
News Flash
Img

I want to put this img to appear after my text. Text will appear in cell1 and right next to into a split cell will display the img..
Ex:
News Flash Img

how can I modify this line to do this:

document.write("<IMG SRC='"+pics[thenum]+"' border='0' width='"+pic_width+"' height='"+pic_height+"' name='img1'>\n");
 
The only way to achieve predictable placement in an HTML page is to use tables. So put the news flash in a cell in a table and put the image in the next cell.
 
Place <IMG align="right" ...> before news flash.

If that isn't enough you'll have to use some CSS properties or even probably tables.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top