Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Advert next to content issue

Featured Replies

I want the advertisement shown on my website (http://www.animecube.net/) to show next to the news articles posted on my index page. The problem is that it seems to stay below the post information (author and date posted).

 

post-18711-127307980792_thumb.jpg

Try putting the advert right at the top of the content above your "FEWFEWF" post.

 

Add a

float: right;

If there is not one and then it should be good to go :)

  • Author

Try putting the advert right at the top of the content above your "FEWFEWF" post.

 

Add a

float: right;

If there is not one and then it should be good to go :)

 

same effect... (you can check it out)

  • Author

Ok, I will have a better look...

 

Thanks :)

The advert is still showing at the bottom of the page in Source view, did you move the

 

<div id="advert-right">
<script type="text/javascript"><!--
google_ad_client = "pub-6021495330456539";
/* 160x600, gemaakt 15-3-10 */
google_ad_slot = "5022364520";
google_ad_width = 160;
google_ad_height = 600;
//-->

</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>

 

Up above

 

<div class="post-134 post hentry category-news" id="post-134">

  • Author

The advert is still showing at the bottom of the page in Source view, did you move the

 

<div id="advert-right">
<script type="text/javascript"><!--
google_ad_client = "pub-6021495330456539";
/* 160x600, gemaakt 15-3-10 */
google_ad_slot = "5022364520";
google_ad_width = 160;
google_ad_height = 600;
//-->

</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>

 

Up above

 

<div class="post-134 post hentry category-news" id="post-134">

 

This worked, but now my content-bottom image is weird.

You will most likely need to clear the floats at the bottom now.

 

<div style="clear: both;"></div>
<div class="right-col-bottom"></div></div>

(I edited it because I had float on the brain, this should be correct now)

Edited by EpicWebs

  • Author

You will most likely need to clear the floats at the bottom now.

 

<div style="clear: both;"></div>
<div class="right-col-bottom"></div></div>

(I edited it because I had float on the brain, this should be correct now)

 

Doesn't work :/

My fault sorry, I just edited my post.

 

Change

 

<div style="cleat: float;"></div>

 

to

 

<div style="clear: both;"></div>

  • Author

My fault sorry, I just edited my post.

 

Change

 

<div style="cleat: float;"></div>

 

to

 

<div style="clear: both;"></div>

 

that doesn't do the trick either :p

Sorry I am not on top form today lol.

 

Move the clear float up above...

 

</div>
<div class="right-col-bottom"></div></div>

 

 

<div style="clear: both;"></div>

</div>
<div class="right-col-bottom"></div></div>

Remove the float from your footer image div as well.

 

.right-col-bottom {
background-image: url(images/right-col-bottom.png);
background-repeat: no-repeat;
width: 781px;
height: 5px;
margin-bottom: 20px;
float: left;
}

 

To

 

.right-col-bottom {
background-image: url(images/right-col-bottom.png);
background-repeat: no-repeat;
width: 781px;
height: 5px;
margin-bottom: 20px;
}

  • Author

Remove the float from your footer image div as well.

 

.right-col-bottom {
background-image: url(images/right-col-bottom.png);
background-repeat: no-repeat;
width: 781px;
height: 5px;
margin-bottom: 20px;
float: left;
}

 

To

 

.right-col-bottom {
background-image: url(images/right-col-bottom.png);
background-repeat: no-repeat;
width: 781px;
height: 5px;
margin-bottom: 20px;
}

 

Didn't work :/ I appreciate your help, keep em coming! :p


.right-col-middle {
background-color: #FFF;
width: 771px;
padding: 10px 0 10px 10px;
float: left;
}

 

to

 


.right-col-middle {
background-color: #FFF;
width: 771px;
padding: 10px 0 10px 10px;
float: left;
       min-height: 600px;
}

 

I believe the bottom image is floating up into the advert because there is no other content so it floats up to there.

  • Author


.right-col-middle {
background-color: #FFF;
width: 771px;
padding: 10px 0 10px 10px;
float: left;
}

 

to

 


.right-col-middle {
background-color: #FFF;
width: 771px;
padding: 10px 0 10px 10px;
float: left;
       min-height: 600px;
}

 

I believe the bottom image is floating up into the advert because there is no other content so it floats up to there.

 

done, and didn't work :/

  • Author

haha no problem ;)

  • Author

From

 

</div>
<div class="right-col-bottom"></div></div>

 

To

 

</div></div>
<div class="right-col-bottom"></div>

 

Yay! Thanks :D

  • Author

No problem at all, good luck with your site, loving the navigation by the way.

 

Thank you :) It's still a W.I.P.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.