Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7747121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:27:09+00:00 2026-06-01T10:27:09+00:00

I have an AdSense account, and simply copy/pasted a block of Javascript to include

  • 0

I have an AdSense account, and simply copy/pasted a block of Javascript to include ads on my site. However, since I did not put any HTML in place, the Js is generating an iframe and an ins element which the ads are appearing within.

I want to move those ads to the left of my content, where I have made space for them. I’ve tried adding CSS like “ins, iframe { position: absolute; left: 0; top: 0; }” but it seems to be overwritten.

So my question is: how can I force the AdSense ads to appear where I want them to? Preferably with CSS.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T10:27:10+00:00Added an answer on June 1, 2026 at 10:27 am

    You do it the same way you use CSS to control anything else: put it in a div, give it a class (or id), and format the parent object.

    Are you already using CSS? If so, just add a new one something like this in main.css:

    #google{
        position:absolute;
        right:0px;
        width:160px;
        top:120px;
        border-left: 1px solid black;
    }
    

    Then in your page, where appropriate, add the following around Google’s JavaScript:

    <div id="google">
        <--! code here -->
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have google adsense in a block, and I want to hide the block
I have problem with displaying adsense ads in ie7 google adsense adds an iframe
I have a txt file which contains a google adsense code block and I'm
I have adsense for content set up for my site running on my blog.
I have a WordPress site. There is some AdSense code in it which I
I have web site developed with Grails. On the site there is google adsense
I'm trying to have adsense javascript code added to a designated div location using
I have ad tags (i.e. JavaScript) from several popular ad networks (AdSense, AdBrite, etc.)
I would like to place a javascript (adsense) code inside the post (not above
On several of my adsense running sites, I have been getting the following errors:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.