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  anitac 12 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

    anitac
    Participant
    Post count: 6403

    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:

    <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>

    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

    #36873

    bcswift
    Participant
    Post count: 1

    Thanks so much!

    #36874

    anitac
    Participant
    Post count: 6403

    You’re welcome!


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

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

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