WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Image won't align to center (4 posts)

  1. adunate
    Member
    Posted 3 years ago #

    My image won't align to center. The code is from a donated source. Here's my site:
    http://www.adunate.com/blog/2011/04/22/art-nouveau-for-earth-day/

    Here's the code:

    [caption id="" align="aligncenter" width="300" caption="Abstract Design, Public Domain, New York Public Library"]<img title="[Abstract design based on curv... Digital ID: 1553695. New York Public Library" src="http://images.nypl.org/index.php?id=1553695&t=r" alt="[Abstract design based on curv... Digital ID: 1553695. New York Public Library" width="300" height="262" />[/caption

  2. Tara
    Member
    Posted 3 years ago #

    try:

    align="center"

    Instead of,

    align="aligncenter"

  3. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    your theme does not have a style for .aligncenter

    edit style.css and find:

    img.aligncenter {
    	display: block;
    	margin: 0 auto 0 auto;
    	}

    change to:

    img.aligncenter, .aligncenter {
    	display: block;
    	margin: 10px auto 10px auto;
    	}
  4. adunate
    Member
    Posted 3 years ago #

    Thanks alchymyth, That did it.

Topic Closed

This topic has been closed to new replies.

About this Topic