![]() |
| Aligning images generated dynamically by javascript |
|
Allen
Forum Regular
|
How do you align images generated dynamically by javascript? I want to align it to the right of the webpage (no tables) and I've tried putting the script between <p align="right"> and </p> and while the image will align to the right okay, the text won't wrap to the left of it. I want the text to wrap... suggestions anyone?
|
||||||||||||
|
|
|||||||||||||
|
Josh
Forum Regular
|
What you want to do is put adjust your img tag to this...
<img src="foo.png" alt="Some Text" style="float:right;" /> |
||||||||||||
|
|
|||||||||||||
|
Allen
Forum Regular
|
Well, that didn't work but this did:
Thanks anyway Josh... maybe I should have said it was for an Adsense ad. Anyway, now the text wraps. While I probably will change its vertical position, for actual proof that this works (for any doubting Thomas), see http://www.matrixbookstore.biz/farm_facts.htm |
|||||||||||||
|
|
||||||||||||||
|
bobum
Elvis Fanatic
![]()
|
hehe - yea - mentioning that it was not an actual <img> would have helped...what you were aligning was code essentially - it looks good too btw!
|
||||||||||||
|
|
|||||||||||||
| Aligning images generated dynamically by javascript |
|
||
|



