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 Coding something like this..

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 09-10-2005, 08:10 PM THREAD STARTER               #1 (permalink)
Senior Member
 
Ringr's Avatar
Join Date: Jul 2004
Posts: 1,383
Ringr is a splendid one to beholdRingr is a splendid one to beholdRingr is a splendid one to beholdRingr is a splendid one to beholdRingr is a splendid one to beholdRingr is a splendid one to beholdRingr is a splendid one to beholdRingr is a splendid one to behold
 



Coding something like this..


Hey guys,

I was wondering, for dynamic content, how would you make the text fit around the ad like this:


I hope the question I am asking makes sense.
????: NamePros.com http://www.namepros.com/programming/122647-coding-something-like-this.html

Isn't the table layout for that basically just 3 cells, one on the left with the ad in it, one on the right with the starting content, and one underneath with the rest of the content?

I don't get how you could put an ad (or an image) like that with content surrounding it, and at the same time, not yet have the ad wind up on top of everything and yet be side-by-site with it so perfectly. I know how to do it with non-dynamic content, but how do you do it with dynamic content that varies in length?

Or is the text in there justified and it's one cell or what?

Sorry I'm so confused.
Ringr is offline  
Old 09-10-2005, 09:28 PM   #2 (permalink)
Senior Member
 
nasaboy007's Avatar
Join Date: Jul 2005
Location: NJ
Posts: 1,219
nasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud of
 



lol thats google's adsense, its one of the cool reasons to use adsense. the ads google puts on your site only are about what your site is about, so itll be of interest to ur readers. its prolly some really complex keyword algorithm. its like asking, how does google manage to search some 8 billion pages in less than a tenth of a second?

oh lol i misunderstood ur question... uh as for wrapping, u might wanna take a look at the source for that website.
nasaboy007 is offline  
Old 09-11-2005, 02:56 AM   #3 (permalink)
Munky Designs
Join Date: May 2005
Posts: 996
Albino is a jewel in the roughAlbino is a jewel in the roughAlbino is a jewel in the rough
 



well, that can be done with css, using the float command:
http://www.w3schools.com/css/pr_class_float.asp

if you post a link to the site, im sure someone can view the source and have a check
Albino is offline  
Old 09-11-2005, 10:32 AM   #4 (permalink)
NamePros Member
Join Date: Sep 2005
Posts: 71
lemmin is an unknown quantity at this point
 



Or having an empty table cell that the code is placed into.
lemmin is offline  
Old 09-11-2005, 09:22 PM THREAD STARTER               #5 (permalink)
Senior Member
 
Ringr's Avatar
Join Date: Jul 2004
Posts: 1,383
Ringr is a splendid one to beholdRingr is a splendid one to beholdRingr is a splendid one to beholdRingr is a splendid one to beholdRingr is a splendid one to beholdRingr is a splendid one to beholdRingr is a splendid one to beholdRingr is a splendid one to behold
 



I asked a friend of mine good with CSS, he said it was the float thing like Albino suggested.

It's not working for me though, my CSS has this:
Code:
 #adbox {
float: right;
}
And here's my content code:
Code:
<div id="adbox"><p>Lorem ipsum dolor 
										sit amet, consectetuer adipiscing elit. 
										Donec dolor ligula, lacinia quis, mattis 
										sit amet, accumsan ac, nunc. Nam tellus 
										nulla, convallis a, dignissim vitae, 
										vestibulum eget, mauris. Pellentesque 
										est. Vestibulum ante ipsum primis in 
										faucibus orci luctus et ultrices posuere 
										cubilia Curae; Phasellus nulla. Proin 
										velit sapien, feugiat sit amet, laoreet 
										ut, elementum ut, ante. Praesent ut 
										massa. In hac habitasse platea dictumst.<script type="text/javascript"><!--
google_ad_client = "pub-***";
google_ad_width = 180;
google_ad_height = 150;
google_ad_format = "180x150_as";
google_ad_type = "text_image";
google_ad_channel ="***";
google_page_url = document.location;
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_url = "FF3300";
google_color_text = "666666";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
										Donec fringilla urna eget pede. Aliquam 
										pulvinar fringilla elit. Praesent 
										pretium pede ac lectus. Quisque nec 
										lorem non massa auctor dapibus. Nunc 
										tincidunt risus in pede. Donec laoreet, 
										dolor quis egestas elementum, turpis 
										eros tempor mi, id rutrum eros purus eu 
										nunc. Nam dignissim ultrices pede. Sed 
										eget velit id eros pretium interdum. 
										Aenean dolor. Etiam arcu. Duis mattis, 
										urna a dictum tempus, tellus sem 
										interdum nulla, a volutpat purus quam eu 
										justo.</p></div>
And it isn't showing up like it should using the 'float' thing.
????: NamePros.com http://www.namepros.com/showthread.php?t=122647
Can anyone help me out?

If my URL is needed, which I don't see why it would be since I just posted the coding that isn't working; I would like to share it privately and not publically in the thread.
Ringr is offline  
Old 09-11-2005, 10:11 PM   #6 (permalink)
Senior Member
 
Brian's Avatar
Join Date: Sep 2003
Location: Charlottesville Virginia
Posts: 2,317
Brian is a splendid one to beholdBrian is a splendid one to beholdBrian is a splendid one to beholdBrian is a splendid one to beholdBrian is a splendid one to beholdBrian is a splendid one to beholdBrian is a splendid one to beholdBrian is a splendid one to behold
 




Well it depends on where you placed that div on your site what it will do.
Brian is offline  
Old 09-11-2005, 10:14 PM   #7 (permalink)
tgo
NamePros Regular
Join Date: Aug 2005
Posts: 315
tgo is on a distinguished road
 



Didnt test this bit perhaps

Code:
<p>Lorem ipsum dolor 
										sit amet, consectetuer adipiscing elit. 
										Donec dolor ligula, lacinia quis, mattis 
										sit amet, accumsan ac, nunc. Nam tellus 
										nulla, convallis a, dignissim vitae, 
										vestibulum eget, mauris. Pellentesque 
										est. Vestibulum ante ipsum primis in 
										faucibus orci luctus et ultrices posuere 
										cubilia Curae; Phasellus nulla. Proin 
										velit sapien, feugiat sit amet, laoreet 
										ut, elementum ut, ante. Praesent ut 
										massa. In hac habitasse platea dictumst.
<div class="adbox">
<script type="text/javascript"><!--
google_ad_client = "pub-***";
google_ad_width = 180;
google_ad_height = 150;
google_ad_format = "180x150_as";
google_ad_type = "text_image";
google_ad_channel ="***";
google_page_url = document.location;
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_url = "FF3300";
google_color_text = "666666";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
										Donec fringilla urna eget pede. Aliquam 
										pulvinar fringilla elit. Praesent 
										pretium pede ac lectus. Quisque nec 
										lorem non massa auctor dapibus. Nunc 
										tincidunt risus in pede. Donec laoreet, 
										dolor quis egestas elementum, turpis 
										eros tempor mi, id rutrum eros purus eu 
										nunc. Nam dignissim ultrices pede. Sed 
										eget velit id eros pretium interdum. 
										Aenean dolor. Etiam arcu. Duis mattis, 
										urna a dictum tempus, tellus sem 
										interdum nulla, a volutpat purus quam eu 
										justo.</p>
CSS
????: NamePros.com http://www.namepros.com/showthread.php?t=122647
Code:
div.adbox {
float: right;
}
tgo is offline  
Old 09-11-2005, 11:12 PM   #8 (permalink)
Senior Member
 
Brian's Avatar
Join Date: Sep 2003
Location: Charlottesville Virginia
Posts: 2,317
Brian is a splendid one to beholdBrian is a splendid one to beholdBrian is a splendid one to beholdBrian is a splendid one to beholdBrian is a splendid one to beholdBrian is a splendid one to beholdBrian is a splendid one to beholdBrian is a splendid one to behold
 




There has to be alot more text as well, if you want to see if it will work.
Brian is offline  
Closed Thread


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
ForumProfiles.Com AND Layout AND Coding GeneCosta Domains For Sale - Auctions 7 08-29-2005 07:33 AM
Small Coding Jobs Fewski Web Development Wanted 4 05-04-2005 06:23 PM
Need Coding Done... resolva Web Development Wanted 3 04-03-2005 11:02 AM
MP3 Player Coding Help Needed dumai Programming 0 05-22-2004 02:41 PM
Help with coding a Links Page in PHP/MySQL matt001 Programming 3 04-13-2004 01:57 PM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 11:41 PM.

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