• Resolved ehnree

    (@ehnree)


    Hi,

    I am trying to align some images centered in my posts on my website running Manifest 1.01. I insert images via the insert media button and then I choose to align it center once I have uploaded the image. However, the image will not align center, only left and right. I’ve done a couple searched but none seem to help.

    Can anyone help me with the simple but annoying issue?

    Thanks

Viewing 12 replies - 1 through 12 (of 12 total)
  • Someone might be able to help if you post a link to your site where the problem can be seen.

    Thread Starter ehnree

    (@ehnree)

    My site is here:

    http://henryzhou.me/

    In my two most recent posts, the images won’t align in the middle for some reason.

    The W3C HTML Validator shows that you have some unclosed <p> tags. That could be the cause of the problem.

    Also, not every image has ‘aligncenter’ set.

    There’s no aligncenter class in your theme’s style sheet.

    http://codex.wordpress.org/Styling_Images_in_Posts_and_Pages

    Thread Starter ehnree

    (@ehnree)

    I pasted the image alignment code into my site’s style.css, but it didn’t solve the issue.

    Thread Starter ehnree

    (@ehnree)

    Still very much so confused. it seems like the image in my first post aligned correctly. However, images stopped aligning in the middle after that.

    Thread Starter ehnree

    (@ehnree)

    Every image with a caption is coded within a caption bracket. Upon removing the caption brackets and inserting “align=”middle”” into the img src, it still does not align in the center.

    Thread Starter ehnree

    (@ehnree)

    is there a specific place where I am supposed to paste my img.align code in style.css? I pasted it underneath the global styles section.

    In general, if you want to add styles, you add them to the end of the style.css file, not in the middle.

    If your theme provides a way to enter custom CSS, use that. Otherwise, you should create a Child theme or use a CSS plugin such as Simple Custom CSS to make your changes. If you do not, all of your changes will be lost if you update your theme.

    You can test this by adding it to the end of your theme’s style.css, but to make it permanent, you should do as suggested above:

    .aligncenter { margin: 0 auto !important;}
    Thread Starter ehnree

    (@ehnree)

    Adding the .align classes to the end of the CSS file worked. Many thanks vtxyzzy and Dave Naylor.

    Thread Starter ehnree

    (@ehnree)

    Now… to read up on why the captions aren’t aligning in the middle…

    Thread Starter ehnree

    (@ehnree)

    I made another post and it looks like it broke again.

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Cannot align images centered with Manifest theme’ is closed to new replies.