How to do insert ads adjoining with content

wordpress

#1

I want to show my ad near of my content in all screen sizes. I dont have enough css knowledge,so someone can help me ? Screenshot

<div id="leftads" style="position: fixed; right: 0px; top: 0px; z-index: 1;">
ADS
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- test -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-0220861037824235"
     data-ad-slot="8085613483"
     data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>

#2

Sorry but there's not enough to go on to help you here and your question isn't entirely clear either.

We'd need to see the page in question (not a screenshot) and a description of what's wrong and what you would like to happen.

I assume you would need to be using the google responsive ads although I believe they only resize on first page load or refresh rather than scaling with the page but I'm not that familiar with ads.


#3

Sorry but moderators are warning me when I attach a link...

The problem occurs on monitors with big screen. In small screens its ok, but as the screen size of the monitors increases, the distance between ad and content increases too, I dont know how can I avoid from that.
http://www.yeknot.com/periscope-yayinlari-bilgisayardan-nasil-izlenir/

in here, you can see what I mean.


#4

Unfortunately there is not a simple answer if you are talking about the fixed positioned advert on the left of the screen. Fixed elements are removed from the flow and won't react with the rest of the layout.

You would need to do the same sort of thing that has been done with the advert in the right column where it becomes fixed once the page has scrolled but that is controlled by JS, That would mean changing the whole structure of the page (html and css) to accommodate the advert on the left in the same manner as has been done on the right.

I don't see an easy fix I'm afraid.:frowning:


#5

I see :frowning: but thanks for your interest


#6

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.