How to Make Floating Banner Ads

Oct 10, 2020 floating banner ads

This code is specific for 300x250 ad size. Use this at your own risk. FYI, I’ve been using this floating trick for adsterra ads for almost 6 month.

Replace <!--replace this with your ads code--> with your banner code.

<div id='fixedban' style='width:100%;margin:auto;text-align:center;float:none;overflow:hidden;display:scroll;position:fixed;bottom:0;z-index:999;-webkit-transform:translateZ(0);'>
	<div style='text-align:center;display:block;max-width:52px;height:auto;overflow:hidden;margin:auto'>
		<a id='close-fixedban' onclick='document.getElementById("fixedban").style.display = "none";' style='cursor:pointer;'><img alt='close' src='https://1.bp.blogspot.com/-_A83iDM6JYc/VhtxROLILrI/AAAAAAAADK4/aM4ikIA6aqI/s1600/btn_close.gif' title='close button' style='vertical-align:middle;'/></a>
	</div>
	<div style='text-align:center;display:block;max-width:300px;height:auto;overflow:hidden;margin:auto'>
		<!--replace this with your ads code-->
	</div>
</div>