FRIHOSTFORUMSSEARCHFAQTOSBLOGSCOMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Aligning text with an image or text ad





Naif
Ok... this is going to be embarrasing for me to ask. Even though I have four years of experience with HTML, I am unable to figure out on how I should do this.



I am going to place an adsense image/text ad in the advertisment box and I want the text to be wrapped around it. I know how to do this using the <img> tag but I have to wrap the text around a script
Reign
Code:
<div height="200px" width="200px"><script style="float:right"></script> contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... </div>


Like this?

otherwise, maybe this?
Code:
<div height="200px" width="200px"><span style="float:right"><script></script></span> contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... contents.... </div>
KHO
instead of float use align, the tag "float" is no longer used in XHTML, if you ever plan on upgrading, or if you would just like to avoid conflict with some peoples browsers, use align.
Reign
KHO wrote:
instead of float use align, the tag "float" is no longer used in XHTML, if you ever plan on upgrading, or if you would just like to avoid conflict with some peoples browsers, use align.


it's not a tag it's a style property... and float IS valid css and IS used in xHtml

Look here

and if i'm right the align property is also a style property and is better used in css then in the xHtml page... but i'm not sure, it could also validate in the page instead of the css...
Related topics
go for text ads instead of images
Text - Image
How to become a millionaire on the internet?
Google Adsense - *OFFICIAL THREAD*
[var] ¿cuales extensiones de firefox usas?
Google AdSense Question
LOW PRICE >> Advertise on my sig
BID on My Signature Space :: 1Frih$ Starting!
Bid 4 my sig. 1FRIH$ start price -- Month 4 Bid: March 07
Zero $$ Clicks! :(
Buying Sig Space [Please Lock]
How many visits ?
how many adsense units allow?
The adsense Links.
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.