Tagged: ,

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #5307

    Hi,

    does anyone else have problems with image alignment?

    My alignment works for left and right if I use captions. If I don’t, the alignment does not work. Centered images don’t center even if I use captions.

    Here’s an example: http://www.du.si/image-alignment/

    #49636

    Hey,

    add following to css/custom.css to fix the problem:

    .alignleft, .alignright, .aligncenter, img.alignleft, img.alignright, img.aligncenter,a img.alignleft,a img.alignright,a img.aligncenter{
    display: block !important;
    }

    I’ll report it as a bug to Kriesi for the next update :)

    #49637

    Hey,

    I added the code, but it doesn’t get any better. :(

    #49638

    Hey,

    I adjusted code code above – please try it again.

    #49639

    Sorry, still no good :(

    #49640

    Ok – then we’ll need to hack the theme files (which I tried to avoid first). Open up js/avia.js and change following line:

    if(!a.css('position') || a.css('position') == 'static') { a.css({position:'relative', display:'inline-block'}); }

    to:

    if(!a.css('position') || a.css('position') == 'static') { a.css({position:'relative'}); }

    #49641

    It works for allmost all images just not for the centered one if it has a caption. See at link above.

    #49642

    Ok – I’ll report it to Kriesi. He needs to find a way to differentiate between the different styles then :)

    #49643

    Hey,

    thanks! :)

    #49644

    Was there ever a solution for this problem? If so can someone please post it. I’m having trouble getting my images to center in my blog as well using the Flashlight theme.

Viewing 10 posts - 1 through 10 (of 10 total)

The topic ‘Image alignment in posts and pages’ is closed to new replies.