Title: DIV not recognised
Last modified: August 31, 2016

---

# DIV not recognised

 *  [Gemini23](https://wordpress.org/support/users/gemini23/)
 * (@gemini23)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/div-not-recognised/)
 * I use the following to create a space after left-aligned images which works fine
   on Desktop and current webpages without AMP
 * ie.
 * <div style=”height:1px; clear:both”></div>
 * But with AMP it doesn’t create the linespace… any suggestions?
 * [https://wordpress.org/plugins/amp/](https://wordpress.org/plugins/amp/)

Viewing 1 replies (of 1 total)

 *  [Mohammad Jangda](https://wordpress.org/support/users/batmoo/)
 * (@batmoo)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/div-not-recognised/#post-7077115)
 * The AMP spec does not allow `style` attributes in elements.
 * One option would be to write a custom Sanitizer class that coverts that `div`
   into one with a class and then move the style to CSS instead.
 * Alternatively, replace all these divs in your existing content to have a `class`
   attribute.

Viewing 1 replies (of 1 total)

The topic ‘DIV not recognised’ is closed to new replies.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mohammad Jangda](https://wordpress.org/support/users/batmoo/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/div-not-recognised/#post-7077115)
 * Status: not resolved