WordPress.org

Ready to get started?Download WordPress

Forums

padding for images doesn't work (3 posts)

  1. cburell
    Member
    Posted 6 years ago #

    I'm using Cutline 3-column, and the image padding worked until I installed (then uninstalled and deleted) some plugins.

    My code lists align="right" height="202" hspace="9" vspace="9" width="269", for example, but the hspace and vspace padding don't exist (when viewed on Firefox 2.0).

    Any suggestions would be greatly appreciated. I've already tried editing Cutline's stylesheet, but that didn't help with the image formatting in posts.

    Thanks to any Good Sam out there.

  2. csleh
    Member
    Posted 6 years ago #

    hspace and vspace aren't used anymore. try replacing those with padding="9px"

    But it looks like this is inline code on a php page? Personally, I'd take it out of the php and add this to the stylesheet instead:

    img {border:none;
    margin:0;
    padding:9px;
    }

    this would take the border off all your images
    take off any default margins
    and add 9pixels of padding to images.

  3. cburell
    Member
    Posted 6 years ago #

    Actually, it's the code left by the image formatting button of the RTE plugin I'm using in WP.

    You've given me a lead, so let me see if I can figure it out from here.

    (I tried adding the code to my template's stylesheet, but don't know enough CSS yet to know where to put it, etc, so that will have to wait :)

Topic Closed

This topic has been closed to new replies.

About this Topic