WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] CG-Amazon and Centering (6 posts)

  1. Amulet
    Member
    Posted 8 years ago #

    How can I center the content of the CG-Amazon block (especially the image)? I'm pretty sure I did it before, but that was months ago, and I can't figure out how I did it. I'd appreciate any help. Thanks!

  2. davidchait
    Member
    Posted 8 years ago #

    depending on your call, you want to override either .amazon-item-wrap or .amazon-block (in your css or in cg-amazon.css) and add a text-align: center; rule. I think. ;)

    -d

  3. Amulet
    Member
    Posted 8 years ago #

    Ok, I'll try that next chance I get to work on my site (hopefully tomorrow). I've had a few things get in the way the past few days, but I do appreciate the reply. However, I'm not sure that will center the image. I'll see what happens, though. :)

  4. davidchait
    Member
    Posted 8 years ago #

    If it doesn't work, let me know. You can also apply it to just the ".amazon-item-wrap img", but then your text wouldn't be centered. (Or, you could try both if needed...).

    I'd have to see the site and the css and really pick through stuff to see what rules were being applied -- if that doesn't work. ;)

    -d

  5. Amulet
    Member
    Posted 8 years ago #

    Sorry I didn't get back to you sooner. Setting the text-align: center; for .amazon-item-wrap worked perfectly! Thanks again!

  6. davidchait
    Member
    Posted 8 years ago #

    Not a problem. CG-Amazon spits out a LOT of CSS tags so that you can style it in lots of wacky ways... ;)

    -d

Topic Closed

This topic has been closed to new replies.

About this Topic