CSS Question for Sidebar.php (2 posts)

  1. mjulson
    Posted 8 years ago #

    I have a sidebar that is 180px wide and inside it I have a google adsense box. My problem is that it is hugging the left boundary. I've tried putting center tags and a few other things around the javascript, but I can't seem to get it to center.

    What's the proper way to get javascript to center within a couple div tags?

  2. sasch9r
    Posted 8 years ago #

    Put the adsene box into a div element and set float to right / center / left.

Topic Closed

This topic has been closed to new replies.

About this Topic