WordPress.org

Ready to get started?Download WordPress

Forums

Image Padding (4 posts)

  1. rickyhsu
    Member
    Posted 8 years ago #

    I have searched the support forum there are several suggestions but none I can get to work the way I like. The text butt against the images like the http://rickyhsu.com/padding.jpg
    I can get it to work either on the left but not both at the same time.

    /* Begin Images */
    p img {
    padding: 4px 4px 4px 4px;
    margin: 0 0 0 0;
    max-width: 100%;
    }

    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
    }
    /* End Images */

  2. rickyhsu
    Member
    Posted 8 years ago #

    I am using Kubricks base theme. So any recommendation please? thanks

  3. rickyhsu
    Member
    Posted 8 years ago #

    Any suggestions please?

    Thanks

  4. moshu
    Member
    Posted 8 years ago #

    Recommendation? Pick another theme:)
    or, try to work with the margins not the padding values.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags