ThemeShaper Forums » Thematic


Image attachments gets +10px inline css?

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

    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?


    Posted 10 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?


    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.


    Posted 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.