[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 09-10-2005, 07:10 PM   #1 (permalink)
Senior Member
 
Ringr's Avatar
 
Join Date: Jul 2004
Posts: 1,391
1,090.86 NP$ (Donate)

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 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.

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, 08:28 PM   #2 (permalink)
Senior Member
 
nasaboy007's Avatar
 
Join Date: Jul 2005
Location: NJ
Posts: 1,112
1,454.30 NP$ (Donate)

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 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, 01:56 AM   #3 (permalink)
Munky Designs
 
Join Date: May 2005
Posts: 997
417.00 NP$ (Donate)

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, 09:32 AM   #4 (permalink)
NamePros Member
 
Join Date: Sep 2005
Posts: 71
136.00 NP$ (Donate)

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, 08:22 PM   #5 (permalink)
Senior Member
 
Ringr's Avatar
 
Join Date: Jul 2004
Posts: 1,391
1,090.86 NP$ (Donate)

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 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.
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, 09:11 PM   #6 (permalink)
Senior Member
 
Join Date: Sep 2003
Location: Charlottesville Virginia
Posts: 2,277
845.89 NP$ (Donate)

Brian is a name known to allBrian is a name known to allBrian is a name known to allBrian is a name known to allBrian is a name known to allBrian is a name known to all


Well it depends on where you placed that div on your site what it will do.
__________________
Zaux Arcade
Brian is offline  
Old 09-11-2005, 09:14 PM   #7 (permalink)
tgo
NamePros Regular
 
Join Date: Aug 2005
Posts: 317
103.75 NP$ (Donate)

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
Code:
div.adbox {
float: right;
}
tgo is offline  
Old 09-11-2005, 10:12 PM   #8 (permalink)
Senior Member
 
Join Date: Sep 2003
Location: Charlottesville Virginia
Posts: 2,277
845.89 NP$ (Donate)

Brian is a name known to allBrian is a name known to allBrian is a name known to allBrian is a name known to allBrian is a name known to allBrian is a name known to all


There has to be alot more text as well, if you want to see if it will work.
__________________
Zaux Arcade
Brian 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


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

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 04:18 AM.


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