Pages: [1]   Go Down
Send this topic | Print
Author Topic: wrap content around an ad  (Read 401 times)
tougebattle
Member
*
Offline Offline

Posts: 7



WWW
« on: September 16, 2008, 07:18:17 AM »

Hi everyone! I was wondering what the html script was to wrap your website content around an ad. I assume its like a table script but could be wrong, I'm horrible with editing.  Anyway here is a pic of what I am talking about.



Thanks!
Logged
bind
just a man
Authority Member
****
Online Online

Posts: 899



« Reply #1 on: September 16, 2008, 08:15:19 AM »

did you loook at the source code to see how they did it ?

mixed media content is usually achieved with some creative use of css in html tags.

for instance the following code will wrap text around a span of content ...

Code:
<p><span style="float:left"><!-- ad code here --></span>a poopload of text here</p>

will produce a left justified ad with text wrapping around.

change float to right for a right-justified ad.

works the same for images too and other blocks of content embeded.

ps- get away from anything table related unless you are displaying tabular data.
Logged

Learn the basics, create your code, then post source code to troublshoot if you have any problems

Here is all you need to learn the basics

HTML
Javascript
CSS
PHP
MySQL



.
tougebattle
Member
*
Offline Offline

Posts: 7



WWW
« Reply #2 on: September 16, 2008, 10:19:17 AM »

thanks for the reply, they were explaining how to do it in blogger.  here is how they showed to do it:


looks to be just what you have stated other than a few slight changes.

EDIT:
Thanks for your the help, the code worked great!!
« Last Edit: September 16, 2008, 11:28:39 AM by tougebattle » Logged
bind
just a man
Authority Member
****
Online Online

Posts: 899



« Reply #3 on: September 16, 2008, 11:31:31 AM »

you can add margins and/or padding too so your text doesnt appear to squeeze too close to the embedded content if needed.
Logged

Learn the basics, create your code, then post source code to troublshoot if you have any problems

Here is all you need to learn the basics

HTML
Javascript
CSS
PHP
MySQL



.
Pages: [1]   Go Up
Send this topic | Print
Jump to: