Title: Visual &amp; Text Editor ignoring image inline width and height
Last modified: August 21, 2016

---

# Visual & Text Editor ignoring image inline width and height

 *  Resolved [jphogan](https://wordpress.org/support/users/jphogan/)
 * (@jphogan)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/visual-text-editor-ignoring-image-inline-width-and-height/)
 * I am having an issue with WordPress ignoring the width=”xxx” height=”xxx” format,
   but obeying the style=”width:XXXpx;height:XXXpx”
 * A recent site I’m working on is doing just that, with images, iframed content,
   everything. If I used width=”xxx” height=”xxx” , when I look at the source code,
   there is nothing there, but it’s clearly in the html editor. It happens on every
   post and page. I guess the editor isn’t outputting it at all unless it’s in the
   style=”width:XXXpx;height:XXXpx” format

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

 *  [Alex](https://wordpress.org/support/users/alexchincogmailcom/)
 * (@alexchincogmailcom)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/visual-text-editor-ignoring-image-inline-width-and-height/#post-4063594)
 * I am having the same problem. Has anyone found a solution?
 * This is a huge pain. I have scaled lots of images using the `width="xxx" height
   ="yyy"` convention and do not want to have to go through and change all of my
   previous work.
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/visual-text-editor-ignoring-image-inline-width-and-height/#post-4063596)
 * docuentation: [http://codex.wordpress.org/Styling_Images_in_Posts_and_Pages](http://codex.wordpress.org/Styling_Images_in_Posts_and_Pages)
 *  Thread Starter [jphogan](https://wordpress.org/support/users/jphogan/)
 * (@jphogan)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/visual-text-editor-ignoring-image-inline-width-and-height/#post-4063597)
 * I found [this post](http://benfrain.com/wordpress-responsive-images-how-to-strip-inline-width-and-height-attributes/)
   which prompted me to look for this in my functions.php. `remove_thumbnail_dimensions`
   That is what was causing the removal of the width and height. I removed it and
   it “fixed” the problem, but then the site was no longer responsive.
 *  Thread Starter [jphogan](https://wordpress.org/support/users/jphogan/)
 * (@jphogan)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/visual-text-editor-ignoring-image-inline-width-and-height/#post-4063599)
 * Also, I wanted to add that I solved my image resizing problem by using this plugin:
   [http://www.mihaivalentin.com/image-pro-wordpress-image-management/](http://www.mihaivalentin.com/image-pro-wordpress-image-management/)
 * However, that won’t go back and fix any you’ve already put in unless you remove
   that function.
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/visual-text-editor-ignoring-image-inline-width-and-height/#post-4063600)
 * Glad you got it resolved:-)

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

The topic ‘Visual & Text Editor ignoring image inline width and height’ is closed
to new replies.

## Tags

 * [gone](https://wordpress.org/support/topic-tag/gone/)
 * [ignored](https://wordpress.org/support/topic-tag/ignored/)
 * [stripped](https://wordpress.org/support/topic-tag/stripped/)
 * [style](https://wordpress.org/support/topic-tag/style/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [t-p](https://wordpress.org/support/users/t-p/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/visual-text-editor-ignoring-image-inline-width-and-height/#post-4063600)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
