ThemeShaper Forums » Thematic

[closed]

Image attachments gets +10px inline css?

(3 posts)
  • Started 9 years ago by Oskar Rough
  • Latest reply from em hr
  • This topic is not resolved
  1. Oskar Rough
    Member

    I've set my "medium media size" to 540px. When I attach an image it gets enclosed in a div like this:

    <div id="attachment_5" class="wp-caption aligncenter" style="width: 550px;">

    Since my image is set to 540px it gets centered in this div. How come, why the inline style?

    Cheers,
    Oskar

    Posted 9 years ago #
  2. Hi Oskar,

    I have the same problem and can't find any clue in the CSS files. Did you find an answer/solution?

    Cheers,
    Arne

    Posted 9 years ago #
  3. Hi guys-

    The inline styles are produced by WordPress not Thematic. The image gets wrapped in a div with inline style *if* you give it a "caption." If you delete the caption, WordPress won't wrap the img tag in a div.

    -Gene

    Posted 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.