• Resolved ajaytct

    (@ajaytct)


    Hey guys,

    my sidebar is 300px wide and I want to put in a 160×600 skyscraper and a 120×600 skyscraper side by side. I have the javascript for both of them, but I don’t know how to position it so they show up next to each other.

    Any help?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Float the first one left using CSS.

    Thread Starter ajaytct

    (@ajaytct)

    <div class="segment-bot"><div class="segment-top"><div class="segment"><div class="box">
    		<script type="text/javascript"><!--
    		google_ad_client = "xxxx";
    		/* 160x600, created 10/8/09 */
    		google_ad_slot = "5486739577";
    		google_ad_width = 160;
    		google_ad_height = 600;
    		//-->
    		</script>
    		<script type="text/javascript"
    		src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    		</script>
    		<script type="text/javascript"><!--
    google_ad_client = "xxxx";
    /* 120x600, created 10/8/09 */
    google_ad_slot = "8345049549";
    google_ad_width = 120;
    google_ad_height = 600;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    		<div class="clear"></div>
    	<!-- /segment --></div></div></div></div>

    Pardon my ignorance, but where i put in the css float element?

    In your theme’s stylesheet. Something like:

    .segment-bot {float:left;}

    might work.

    Thread Starter ajaytct

    (@ajaytct)

    Both the 160×600 and the 120×600 scripts are under the same div class. So if I set it to float left, then wouldn’t that move the entire section to float left, including both scripts?

    Thread Starter ajaytct

    (@ajaytct)

    Thanks esmi, I got it 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to place two skyscrapers next to each other?’ is closed to new replies.