• 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://ww.wp.xz.cn/plugins/amp/

Viewing 1 replies (of 1 total)
  • 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.