need help with this,

Discussion in 'CSS' started by mytvtalk, Jul 17, 2008.

  1. #1
    hi everyone if some one could help me i would apreciate it alot. i have my website http://www.mytvtalk.com and where it says the latest articles i have a google adsense block, i was wondering how can i get writing to the right of this block? i have tried <p class="name here"> and then tired to align it in the css as .name here {float:right} but i cant get it to work.

    please help. thanks.
     
    mytvtalk, Jul 17, 2008 IP
  2. yankzilla

    yankzilla Peon

    Messages:
    159
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hey you can do this:
    <div class="adsense_movie_left"><script type="text/javascript"><!--
    google_ad_client = "pub-7120093336454623";
    /* 336x280, created 17/07/08 */
    google_ad_slot = "7852795631";
    google_ad_width = 336;
    google_ad_height = 280;
    //-->
    </script>
    <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script><iframe name="google_ads_frame" src="http://pagead2.googlesyndication.com/pagead/ads?client=ca-pub-7120093336454623&amp;dt=1216328660706&amp;lmt=1216325596&amp;prev_slotnames=0766409293&amp;output=html&amp;slotname=7852795631&amp;correlator=1216328639540&amp;url=http%3A%2F%2Fwww.mytvtalk.com%2F&amp;ref=http%3A%2F%2Fforums.digitalpoint.com%2Fshowthread.php%3Ft%3D937915&amp;frm=0&amp;cc=100&amp;ga_vid=3296064287755472400.1216328640&amp;ga_sid=1216328640&amp;ga_hid=2069644172&amp;flash=9.0.124&amp;u_h=1050&amp;u_w=1680&amp;u_ah=1020&amp;u_aw=1530&amp;u_cd=32&amp;u_tz=-420&amp;u_his=1&amp;u_java=true&amp;u_nplug=19&amp;u_nmime=88" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" frameborder="0" height="280" scrolling="no" width="336"></iframe>
    </div>
    
    <div class="right_of_adsense">Something goes here</div>
    
    <br class="clearfloats" />
    
    
    PHP:
    And then add this to the stylesheet:
    .adsense_movie_left {
    	float: left; position: relative; width: 336px;
    }
    
    .right_of_adsense {
    	float: left; position: relative; width: 364px; margin-left: 10px;
    }
    
    .clearfloats {
    	clear: both;
    }
    
    
    PHP:
    Don't forget to clear your floats. This is what the Clearfloats BR does.
     
    yankzilla, Jul 17, 2008 IP
  3. mytvtalk

    mytvtalk Active Member

    Messages:
    933
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #3
    thank you rep given :D
     
    mytvtalk, Jul 17, 2008 IP