• Resolved bobbeacham

    (@bobbeacham)


    Can someone help me with a bit of code please?

    The WP125 ad plug-in is great, but it defaults to ads which range to the left when in a single widget column. I’d like to put them in the center. I presume I have to modify this part of the css:

    /* Styles for one-column display */
    #wp125adwrap_1c { width:100%; }
    #wp125adwrap_1c .wp125ad { margin-bottom:10px; }

    But I’m a user, not a coder! Can any of you clever people help me out here?

    Ta!

Viewing 8 replies - 1 through 8 (of 8 total)
  • A link to your site would be helpful but, off the top if my head, you could try:

    /* Styles for one-column display */
    #wp125adwrap_1c { width:100%; }
    #wp125adwrap_1c .wp125ad { width:125px;margin:0 auto 10px; }

    The above assumes that your ads are exactly 125px wide.

    Thread Starter bobbeacham

    (@bobbeacham)

    Hi Esmi

    Thanks for the help but that’s made no difference. The site is at https://beadandwireflowers.com

    It’s the “Sponsor” ad.

    Within the WP125 plug-in settings I’ve tried with and without the “include default ad stylesheet?”

    Thanks
    Bob

    Try this:

    /* Styles for one-column display */
    #wp125adwrap_1c { width:100%; text-align:center; }
    #wp125adwrap_1c .wp125ad { margin-bottom:10px; }
    Thread Starter bobbeacham

    (@bobbeacham)

    Thanks Redwallhp. That’s done it.

    Bob, how did you change the title to “Sponsors” in your sidebar? I want to do that as well. Thanks!

    @jenbaldwin Go to the Ads->Settings menu. There should be a “Widget Title” field.

    How to center this ?

    /* Styles for two-column display */
    #wp125adwrap_2c { width:100%;}
    #wp125adwrap_2c .wp125ad { width:125px; float:left; padding:10px; }

    ?? :S

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘css code help: centering’ is closed to new replies.