WordPress.org

Ready to get started?Download WordPress

Forums

Cannot center images, only is I use Live Writer (2 posts)

  1. passegua
    Member
    Posted 4 years ago #

    Cannot center images, only is I use Live Writer
    Since now I use MAC OS I cannot center images without text around them, I'd like the text under the image.
    I tried using both center within image properties and using center tab in the text editor.
    The image ha always text around.
    How come ?
    thanks

    http://lnx.sinapsi.org/wordpress/

  2. Shane G.
    Member
    Posted 4 years ago #

    Hi,

    The solution is simple just need to copy the this code and paste it in style.css of the theme.

    img.centered
    {
    display: block;
    margin-left: auto;
    margin-right: auto;
    }
    
    img.alignright
    {
    padding: 4px;
    margin: 0 0 2px 7px;
    display: inline;
    }
    
    img.alignleft
    {
    padding: 4px;
    margin: 0 7px 2px 0;
    display: inline;
    }
    
    .alignright
    {
    float: right;
    }
    
    .alignleft
    {
    float: left;
    }

    Add this code in style.css file.of your theme and it should be resolve the problem. If it does not solve the problem then replace the .img{} tags with the above code in style.css.

    Thanks,

    Shane G.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.