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.

Help with CSS

Discussion in 'Programming' started by mathieu67, Jun 13, 2013.

  1. #1
    I'm trying to add 2 120x600 banners on the right and left side corner of my site and using the following codes. The code works except that the ads are all the way up pass the navigation bar and the banner instead of starting where the "Feature Games" bar starts.

    My site is arcade9.com

    here's the code I'm using:

    <style type="text/css">
    .upper_right{
    position:fixed;
    top:0;
    right:0;
    </style>

    <style type="text/css">
    .upper_left{
    position:fixed;
    top:0;
    left:0;
    </style>

    <div class="upper_left" >
    Ad Code
    </div>

    <div class="upper_right" >
    Ad Code
    </div>
     
    Solved! View solution.
    mathieu67, Jun 13, 2013 IP
  2. HuggyStudios

    HuggyStudios Well-Known Member

    Messages:
    724
    Likes Received:
    20
    Best Answers:
    26
    Trophy Points:
    165
    #2
    I looked on your site and couldn't see the ads there, you need to push them down with the following code. Adjust the top value to suit your needs.

    
    <style type="text/css">
    .upper_right{
    position:fixed;
    top:100px;
    right:0;
    </style>
    
    <style type="text/css">
    .upper_left{
    position:fixed;
    top:100px;
    left:0;
    </style>
    
    <div class="upper_left" >
    Ad Code
    </div>
    
    <div class="upper_right" >
    Ad Code
    </div>
    
    Code (markup):
     
    HuggyStudios, Jun 14, 2013 IP
  3. #3
    You are good to go, just add width & height into CSS parameter e.g.:
    
    <style type="text/css">
    .upper_right{
    width:120px;
    height:600px;
    position:fixed;
    top:0;
    right:0;
    border:dotted;
    }
    .upper_left{
    width:120px;
    height:600px;
    position:fixed;
    top:0;
    left:0;
    border:dotted;
    }
    </style>
     
    <div class="upper_left" >
    Ad Code
    </div>
     
    <div class="upper_right" >
    Ad Code
    </div>
    
    Code (markup):
    You can remove border after placing images into html.
     
    webdeveloperindia, Jun 15, 2013 IP
  4. mathieu67

    mathieu67 Active Member

    Messages:
    109
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    93
    #4
    thanks very much. Works perfectly. You can view it http://www.arcade9.com
     
    mathieu67, Jun 15, 2013 IP
  5. webdeveloperindia

    webdeveloperindia Active Member

    Messages:
    90
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    73
    #5
    Your welcome mathieu67 !
     
    webdeveloperindia, Jun 19, 2013 IP
  6. d3v1l

    d3v1l Member

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    Digital Goods:
    1
    #6
    you can even try adding

    http://www.htmldog.com/guides/css/beginner/margins/
    HTML:
     
    d3v1l, Jun 21, 2013 IP