WordPress.org

Ready to get started?Download WordPress

Forums

Enhanced Text Widget
How to change alignment of SWF in widget? (2 posts)

  1. mikeneuro
    Member
    Posted 1 year ago #

    Hi, I have a SWF object, and I need to change the alignment. Here's my code:

    [topswf swf='http://neuromechanical.com/neurotest/wp-content/uploads/2013/04/neuroLogoSmall.swf' width='350' height='200']

    This is using another plugin within your widget. I wasn't able to get the SWF to appear with any other code. If you know of any, great.

    Currently, it aligns right, and I want to resize it and center it. When I resize it, it falls off the page. Thanks.

    http://wordpress.org/extend/plugins/enhanced-text-widget/

  2. bostondv
    Member
    Plugin Author

    Posted 1 year ago #

    To resize the SWF you'll have to edit the topswf width and height parameters.

    For alignment see if topswf provides any alignment parameters, if not you could wrap the shortcode in some html code such as one of these:

    <div style="text-align:center;">
    [topswf swf='http://neuromechanical.com/neurotest/wp-content/uploads/2013/04/neuroLogoSmall.swf' width='350' height='200']
    </div>

    or

    <div style="width:350px; margin:0 auto;">
    [topswf swf='http://neuromechanical.com/neurotest/wp-content/uploads/2013/04/neuroLogoSmall.swf' width='350' height='200']
    </div>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic