Support » Themes and Templates » Image margins "Twenty Eleven" theme

  • jennifer2010

    (@jennifer2010)


    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • jennifer2010

    (@jennifer2010)

    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?

    WPyogi

    (@wpyogi)

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

    jennifer2010

    (@jennifer2010)

    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; }

    WPyogi

    (@wpyogi)

    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 %)
    jennifer2010

    (@jennifer2010)

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Image margins "Twenty Eleven" theme’ is closed to new replies.