| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Jul 2004
Posts: 1,383
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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. |
| |
| | #2 (permalink) |
| Senior Member Join Date: Jul 2005 Location: NJ
Posts: 1,219
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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.
__________________ Hacksar.com - Your source for random computer tips and tricks! MySiteMemberships.com - Keep track of your site registration information! Like my post? Rep is appreciated! |
| |
| | #3 (permalink) |
| Munky Designs Join Date: May 2005
Posts: 996
![]() ![]() ![]() | 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 |
| |
| | THREAD STARTER #5 (permalink) |
| Senior Member Join Date: Jul 2004
Posts: 1,383
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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;
} 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> ????: 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. |
| |
| | #7 (permalink) |
| NamePros Regular Join Date: Aug 2005
Posts: 315
![]() | 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> ????: NamePros.com http://www.namepros.com/showthread.php?t=122647 Code: div.adbox {
float: right;
}
__________________ |
| |
![]() |
| 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 |