WordPress.org

Ready to get started?Download WordPress

Forums

Image margins "Twenty Eleven" theme (6 posts)

  1. jennifer2010
    Member
    Posted 2 years ago #

    I'd like to remove margins between images I upload. Particularly, the margin in featured images.

    Here's an example page:
    http://www.madchenarsch.de/teasarasase/

    I realize I can edit the margin/padding via the editor on each image/post however I cannot do this for featured images, which is why it needs to be done via CSS.

    Any help would be greatly appreciated!

    Thank you
    -Jennifer

  2. jennifer2010
    Member
    Posted 2 years ago #

    Edit:
    For whatever reason, whenever I center the featured image, it creates the margin on the bottom and top. Any way to have a centered image without the margin?

  3. WPyogi
    Volunteer Moderator
    Posted 2 years ago #

    There are no images on the page linked to???

  4. jennifer2010
    Member
    Posted 2 years ago #

    Sorry, ended up deleting the post and couldn't edit my original question.

    I figured out how to remove the image margins both on regular inserted images and the featured image I've been having issues with. The latter of which I believed was solved with this:

    .aligncenter, img.aligncenter { clear: both; display: block; margin-left: 0; margin-right: 0; margin-bottom: 0em; }

  5. WPyogi
    Volunteer Moderator
    Posted 2 years ago #

    Good for you -- BTW, you only need one line for margins like this:

    margin: 0 0 0 0;  (it goes top, right, bottom, left; and if you have margins you must use a size - i.e. px or em or %)
  6. jennifer2010
    Member
    Posted 2 years ago #

    Wonderful advice, went ahead and changed it. Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.