[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 10-15-2006, 07:58 AM   #1 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
 
Join Date: Jan 2005
Location: UK
Posts: 2,390
316.50 NP$ (Donate)

PoorDoggie 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!

Thanks for your help!

Tom

Last edited by PoorDoggie; 10-15-2006 at 08:33 AM.
PoorDoggie is offline  
Old 10-17-2006, 09:16 PM   #2 (permalink)
Formerly Array
 
-NB-'s Avatar
 
Join Date: Feb 2006
Location: San Diego, CA
Posts: 229
159.50 NP$ (Donate)

-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, 09:48 PM   #3 (permalink)
Recovering Jerk

Forum Moderator

 
labrocca's Avatar
 
Join Date: Aug 2004
Location: Las Vegas
Posts: 5,502
1,196.64 NP$ (Donate)

labrocca has a reputation beyond reputelabrocca has a reputation beyond reputelabrocca has a reputation beyond reputelabrocca has a reputation beyond reputelabrocca has a reputation beyond reputelabrocca has a reputation beyond reputelabrocca has a reputation beyond reputelabrocca has a reputation beyond reputelabrocca has a reputation beyond reputelabrocca has a reputation beyond reputelabrocca has a reputation beyond repute

Child Abuse Child Abuse
If you simply took align="left" the img tag it should wrap.
labrocca is online now  
Old 10-18-2006, 12:51 PM   #4 (permalink)
Account Suspended
 
LeetPCUser's Avatar
 
Join Date: May 2005
Location: Whitewater, WI
Posts: 3,714
17.55 NP$ (Donate)

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, 05:46 PM   #5 (permalink)
NamePros Regular
 
Jim_'s Avatar
 
Join Date: Aug 2005
Posts: 585
285.40 NP$ (Donate)

Jim_ is a name known to allJim_ is a name known to allJim_ is a name known to allJim_ is a name known to allJim_ is a name known to allJim_ is a name known to all

Save The Children
Quote:
Originally Posted by Array
Try using float: left;

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 online now  
Old 10-19-2006, 12:44 PM   #6 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
 
Join Date: Jan 2005
Location: UK
Posts: 2,390
316.50 NP$ (Donate)

PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice


Quote:
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.
Quote:
Originally Posted by Jim_
Quote:
Originally Posted by Array
Try using float: left;

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 12:15 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85