Results 1 to 4 of 4

Thread: Go Right?

  1. #1
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default Go Right?

    I just got this code from twitter and I can't get it to display properly (I tried changing the code around so it would validate but it failed to load anything when I changed it). I'm trying to put the box on the bottom right. I tried Aligning right (in the object tag) and floating right (as a div and for the style of object) both knocked the code out of the containing div (no white background and 10-15 pixels below).

    The box can be seen here: http://www.travelinchucks.com/

    This is the code twitter gave me:
    Code:
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0" width="290" height="350" id="TwitterWidget" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="allowFullScreen" value="false" />
    <param name="movie" value="http://static.twitter.com/flash/widgets/profile/TwitterWidget.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#000000" />
    <param name="FlashVars" value="userID=18845023&styleURL=http://static.twitter.com/flash/widgets/profile/smooth.xml">
    <embed src="http://static.twitter.com/flash/widgets/profile/TwitterWidget.swf" quality="high" bgcolor="#000000" width="290" height="350" name="TwitterWidget" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" FlashVars="userID=18845023&styleURL=http://static.twitter.com/flash/widgets/profile/smooth.xml"/>
    </object>
    Thanks.

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Take a look at this tutorial, it might be helpful:
    http://css-tricks.com/video-screencasts/19-designing-a-unique-page-for-twitter-updates/

    Good luck!

  3. #3
    Join Date
    Jan 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Just add a div around the object with the css in the style attribute like this:

    Code:
    <div style='float: right; clear: right;'>
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0" width="290" height="350" id="TwitterWidget" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="allowFullScreen" value="false" />
    <param name="movie" value="http://static.twitter.com/flash/widgets/profile/TwitterWidget.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#000000" />
    <param name="FlashVars" value="userID=18845023&styleURL=http://static.twitter.com/flash/widgets/profile/smooth.xml">
    <embed src="http://static.twitter.com/flash/widgets/profile/TwitterWidget.swf" quality="high" bgcolor="#000000" width="290" height="350" name="TwitterWidget" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" FlashVars="userID=18845023&styleURL=http://static.twitter.com/flash/widgets/profile/smooth.xml"/>
    </object>
    </div>
    Is that the effect you wanted?

  4. #4
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    No, floating...and aligning did not work it cleared it from the content DIV.
    I think Snookerman's comment might be correct as usual but I haven't gotten enough free time recently to try...

    Sorry Snooker but thanks for the link I'll look at it soon and see if it is what i think it is. I started it just didnt have time for whole thing when i did.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •