Reply to topic
Aligning images generated dynamically by javascript
Allen
Forum Regular

Joined: 06 Apr 2004
Posts: 410
Location: Willcox, AZ
Reply with quote
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

Joined: 01 Apr 2004
Posts: 1029
Location: Felton, Delaware
Reply with quote
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

Joined: 06 Apr 2004
Posts: 410
Location: Willcox, AZ
Reply with quote
Well, that didn't work but this did:
<div style="float: right; margin: 3px 3px 3px 3px;">

adsense code goes here

</div>


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
Elvis Fanatic

Joined: 16 Nov 2004
Posts: 746
Location: Montgomery, AL
Reply with quote
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
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic