Forums

[resolved] css code help: centering (7 posts)

  1. Bobbeacham
    Member
    Posted 6 months ago #

    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!

  2. esmi
    Member
    Posted 6 months ago #

    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.

  3. Bobbeacham
    Member
    Posted 6 months ago #

    Hi Esmi

    Thanks for the help but that's made no difference. The site is at http://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

  4. redwallhp
    Member
    Posted 6 months ago #

    Try this:

    /* Styles for one-column display */
    #wp125adwrap_1c { width:100%; text-align:center; }
    #wp125adwrap_1c .wp125ad { margin-bottom:10px; }
  5. Bobbeacham
    Member
    Posted 6 months ago #

    Thanks Redwallhp. That's done it.

  6. jenbaldwin
    Member
    Posted 3 months ago #

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

  7. redwallhp
    Member
    Posted 3 months ago #

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

Reply

You must log in to post.

About this Topic

Tags