Title: Inline CSS Issues when Lazy Loading
Last modified: July 31, 2023

---

# Inline CSS Issues when Lazy Loading

 *  Resolved [mschulzeee](https://wordpress.org/support/users/mschulzeee/)
 * (@mschulzeee)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/inline-css-issues-when-lazy-loading/)
 * Hello, I am currently having the issue that my inline styling on a div gets removed
   and not applied afterwards. So I got a div which looks like this:
 *     ```wp-block-code
       <div class="col-sm-12 vertical_50 portfoliobox lazyloaded" style="background-image: url(&quot;https://XXX/wp-content/uploads/2020/06/XXX-891x434.jpg&quot;);" data-back="https://XXX/wp-content/uploads/2020/06/XXX-891x434.jpg">
       <a href="https://XXX/portfolio/fachwerkhaus-hueues-hoff/" style="width: 302.25px; height: 80.25px;"><span class="htmlWrapper"><span class="title">X</span><span class="subtitle"></span></span></a></div>
       ```
   
 * After enabling the plugin’s lazy loading checkbox the same element looks like
   this:
 *     ```wp-block-code
       <div class="col-12 portfoliobox lazyloaded" style="height:480px; " data-back="https://XXX/wp-content/uploads/X-891x594.jpg">
       <a href="https://XXX/portfolio/umbau-im-klinikum/" style="width: 248.125px; height: 80.25px;"><span class="htmlWrapper"><span class="title">Text</span><span class="subtitle"></span></span></a></div>
       ```
   
 * It seems like the “data-back” attribute takes the styling and does not reapply
   it. Is this behavior wanted?
 * This bug occurs on multiple elements on our site which uses this way of applying
   the background image.
 * Specifications:
    - WordPress 6.2.2
    - Plugin Version: 7.2.0
    - PHP 8.0 with 128M memory limit
 *  -  This topic was modified 2 years, 10 months ago by [mschulzeee](https://wordpress.org/support/users/mschulzeee/).
    -  This topic was modified 2 years, 10 months ago by [mschulzeee](https://wordpress.org/support/users/mschulzeee/).

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

 *  Plugin Support [adamewww](https://wordpress.org/support/users/adamewww/)
 * (@adamewww)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/inline-css-issues-when-lazy-loading/#post-16936462)
 * Hi mschulzeee,
 * This may be hard to see what’s going on specifically without seeing it in action.
   Can you contact us directly [https://ewww.io/contact-us/](https://ewww.io/contact-us/)
 * Also, can you send over the system info from the support tab of the plugin settings.
 *  Plugin Support [adamewww](https://wordpress.org/support/users/adamewww/)
 * (@adamewww)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/inline-css-issues-when-lazy-loading/#post-17303977)
 * I’m going to resolve this thread here but if you have further questions, please
   feel free to start another!

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

The topic ‘Inline CSS Issues when Lazy Loading’ is closed to new replies.

 * ![](https://ps.w.org/ewww-image-optimizer/assets/icon-256x256.png?rev=1582276)
 * [EWWW Image Optimizer](https://wordpress.org/plugins/ewww-image-optimizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ewww-image-optimizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ewww-image-optimizer/)
 * [Active Topics](https://wordpress.org/support/plugin/ewww-image-optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ewww-image-optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ewww-image-optimizer/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)

 * 2 replies
 * 2 participants
 * Last reply from: [adamewww](https://wordpress.org/support/users/adamewww/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/inline-css-issues-when-lazy-loading/#post-17303977)
 * Status: resolved