1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Advertising Islands

Discussion in 'HTML & Website Design' started by sarahk, Aug 4, 2004.

  1. #1
    On a page I display the text from a text file created by the site's writers.

    I want to display an advertising island in the middle of the article but there isn't a clear way to break the article midway (ie serverside). So I thought I'd try a div to do the job.

    It works fine if I just use left and right notation but if I try to position down the page it overlaps the text rather than forcing the text to wrap around the div.
    SEMrush
    <div style='position: absolute; left: 200px; bottom: 80px; 
    background-color: green; width: 150px; padding: 5px; 
    color: navy; border: 10px black double;'>
    <b>Ad Island</b>
    </div>
    Code (markup):
    [​IMG]

    Is this possible with CSS?

    Sarah
     
    sarahk, Aug 4, 2004 IP
    SEMrush
  2. TwisterMc

    TwisterMc Mac Guru

    Messages:
    972
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Don't you have to put in some sort of wrap code? Right now it doesn't seem like your telling the text to do anything. Maybe I'm thinking of float.
     
    TwisterMc, Aug 5, 2004 IP
  3. Foxy

    Foxy Chief Natural Foodie

    Messages:
    1,614
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I have found this problem before and my solution has been to place in a table with a float: css rather than leaving in absolute css positions. Unfortunately.

    It's not clever!
     
    Foxy, Aug 5, 2004 IP
  4. sarahk

    sarahk iTamer Staff

    Messages:
    25,020
    Likes Received:
    3,404
    Best Answers:
    99
    Trophy Points:
    615
    #4
    Thanks guys for your replies.

    I've done a ton of research on this and made a couple of mockups and it seems that I'll have to put in hidden tags and then parse out for the ad of the day.

    I'll still be using float so that the text can wrap but the text doesn't wrap as expected if you position the float vertically.

    Sarah
     
    sarahk, Aug 5, 2004 IP
  5. Foxy

    Foxy Chief Natural Foodie

    Messages:
    1,614
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I'm afraid that is it - but it doesn't look that bad......does it? Once you do the text css.
     
    Foxy, Aug 5, 2004 IP
  6. sarahk

    sarahk iTamer Staff

    Messages:
    25,020
    Likes Received:
    3,404
    Best Answers:
    99
    Trophy Points:
    615
    #6
    It wasn't a matter of look, I was trying to automate a process and take the responsibility away from the authors. Articles are updated several times a day and these people aren't techies :)

    Sarah
     
    sarahk, Aug 5, 2004 IP
  7. Foxy

    Foxy Chief Natural Foodie

    Messages:
    1,614
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #7
    ahhhhhhhh :)
     
    Foxy, Aug 5, 2004 IP