NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page html... wrapping text round a DIV

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 10-15-2006, 08:58 AM THREAD STARTER               #1 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
Join Date: Jan 2005
Location: UK
Posts: 2,408
PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice
 



html... wrapping text round a DIV


I have this code at the moment:
Code:
<td class="row1" align="left" valign="middle" height="28" style="background: url(../images/nyt_man.gif);background-repeat: no-repeat;background-position: bottom right;"><div style="width: 100px;height: 150;float: right;">&nbsp;</div><span class="genmed">RoadBusters is now a part of the Name Your Topic Community. This means that by being a member of RoadBusters, you can access all of the other sites on the Name Your Topic Network, and vice versa, by being a member on one of NYT's partner sites makes you a member of RoadBusters automatically too.</span></td>
but unfortunately, that dosen't do what I want it to do... I want all the text to wrap around the little red man in the "name your topic" box on the right hand side of www.roadbusters.com. If you go there you will see what I mean, and what has happened. BAsically, I want the div to go to the bottom of the cell and make a box around the image of the man, so the text can wrap round it!
????: NamePros.com http://www.namepros.com/programming/247484-html-wrapping-text-round-a-div.html

Thanks for your help!

Tom
Last edited by PoorDoggie; 10-15-2006 at 09:33 AM.
PoorDoggie is offline  
Old 10-17-2006, 10:16 PM   #2 (permalink)
Formerly Array
 
-NB-'s Avatar
Join Date: Feb 2006
Location: San Diego, CA
Posts: 228
-NB- is a name known to all-NB- is a name known to all-NB- is a name known to all-NB- is a name known to all-NB- is a name known to all-NB- is a name known to all
 



Try using float: left;

Put a div with the icon in it, and add this to the div tag:

style="float: left;"


Nick
-NB- is offline  
Old 10-17-2006, 10:48 PM   #3 (permalink)
NamePros Expert
 
labrocca's Avatar
Join Date: Aug 2004
Location: Las Vegas
Posts: 6,277
labrocca Has achieved greatnesslabrocca Has achieved greatnesslabrocca Has achieved greatnesslabrocca Has achieved greatnesslabrocca Has achieved greatnesslabrocca Has achieved greatnesslabrocca Has achieved greatnesslabrocca Has achieved greatnesslabrocca Has achieved greatnesslabrocca Has achieved greatnesslabrocca Has achieved greatness
 



Child Abuse Child Abuse
If you simply took align="left" the img tag it should wrap.
__________________
:$: Support Forum <-- My latest endeavor.:loveyou:
Debate Forums Free Online Sudoku My vBum Blog
labrocca is offline  
Old 10-18-2006, 01:51 PM   #4 (permalink)
Account Suspended
 
LeetPCUser's Avatar
Join Date: May 2005
Location: Whitewater, WI
Posts: 3,710
LeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to behold
 


AIDS/HIV
Firstly you should not use tables unless it is tabulated data. Secondly do not incorporate the CSS inside of the html file, relocate it to a .css file and then call it. If you want some help on how to do this properly, send me a PM.
LeetPCUser is offline  
Old 10-18-2006, 06:46 PM   #5 (permalink)
NamePros Regular
 
Jim_'s Avatar
Join Date: Aug 2005
Location: NY, USA
Posts: 610
Jim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to behold
 


Save The Children
Originally Posted by Array
Try using float: left;
????: NamePros.com http://www.namepros.com/showthread.php?t=247484

Put a div with the icon in it, and add this to the div tag:

style="float: left;"


Nick
Rather than that, just float the image.

<img src="/images/whatever.jpg" alt="" style="float:left;" />
__________________
ask me about the internet
Jim_ is offline  
Old 10-19-2006, 01:44 PM THREAD STARTER               #6 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
Join Date: Jan 2005
Location: UK
Posts: 2,408
PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice
 



Originally Posted by LeetPCUser
Firstly you should not use tables unless it is tabulated data. Secondly do not incorporate the CSS inside of the html file, relocate it to a .css file and then call it. If you want some help on how to do this properly, send me a PM.
*ack*... come on brian... you of all people should know what I feel about tables. I love them, can't get enough of them etc... I swear by them for layout... so there na na na na... lol - and I will incorporate CSS wherever I like *sticks out tongue*. Its only on that page that it needs to be used, and if its in only one place, I will put it there, so I don't have to open one file, and find the css reference in the css file... lol - im lazy.
Originally Posted by Jim_
Originally Posted by Array
Try using float: left;
????: NamePros.com http://www.namepros.com/showthread.php?t=247484

Put a div with the icon in it, and add this to the div tag:

style="float: left;"


Nick
Rather than that, just float the image.

<img src="/images/whatever.jpg" alt="" style="float:left;" />
Thats all well and good, but if it is put at the start of the block of text, it aligns to the left at the top, and thats no good, it needs to sit at the bottom of the cell, even if it is taller than the image. If it is at the end of the text, it seems to make a new line and float it there!

Thanks for your help guys. For now, I am sure it will be alright. I changed it slightly, so it dosen't need to wrap anymore!
PoorDoggie is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 06:04 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger