[Resolved] Post image padding or margin

Home Forums Support [Resolved] Post image padding or margin

Home Forums Support Post image padding or margin

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #377429
    _blank

    Hi

    Would you be able to help me with some CSS. I’d like to add some padding or margin top/bottom of certain post image. I’ve created a class

    img.post {
    padding-bottom:20px;
    padding-top: 20px;

    }

    Tried putting it here, but guessing I’ve done it wrong!

    Thanks
    Scott

    #377499
    Tom
    Lead Developer
    Lead Developer

    Can you link me to the page with the image?

    #377516
    _blank

    Hi Tom

    Here it is, sorry forgot to include it.

    http://be3.mackiedesigncompany.com/wp/work_slug/the-restaurant-group-trg/

    Scott

    #377583
    Leo
    Staff
    Customer Support

    Hmm try changing the class name to post-image-padding, then CSS to this:

    img.post-image-padding {
        padding-bottom:20px;
        padding-top: 20px;
    }
    #377749
    _blank

    Hey Thanks Leo that worked.
    Scott

    #377930
    Leo
    Staff
    Customer Support

    No problem!

    #377974
    _blank

    Cool, have a good weekend hombre.
    Scott

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.