Trying to centre widget

Community Forums Forums Design Tips and Tricks Trying to centre widget

This topic is: resolved

This topic contains 3 replies, has 2 voices, and was last updated by  AC 1 year, 5 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #36866

    bcswift
    Participant
    Post count: 1

    Hi,

    I’m new to web design and have a basic question. I’m using the Magazine child theme and have embedded a widget (http://www.screenaustralia.gov.au/widgets/research/) into my site (http://picha.com.au/) by placing the code in a text widget in the primary sidebar.  However, the widget is 230px wide and the sidebar requires 250px, leaving a gap on the  right hand side. How do I centre the widget rather than have it align hard left as it is currently?

    Thanks.

    http://picha.com.au
    #36872

    AC
    Blocked
    Post count: 7712

    You need to change the 250px in both places back to 230px then center the entire code. An example, which you should be able to copy and paste is below:

    [html]<center><iframe width="230" scrolling="No" height="410" frameborder="0" seamless="seamless" allowtransparency="true" style="border:none; overflow:hidden; width:230px; height:410px;" id="sawresearch1" marginheight="0" marginwidth="0" name="sawresearch1" src="http://www.screenaustralia.gov.au/widgets/research/sa-research-widget-external.aspx"></iframe></center>/html

    #36873

    bcswift
    Participant
    Post count: 1

    Thanks so much!

    #36874

    AC
    Blocked
    Post count: 7712

    You’re welcome!

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Trying to centre widget’ is closed to new replies.