Title: CSS code bloat?
Last modified: September 5, 2018

---

# CSS code bloat?

 *  Resolved [skylabb](https://wordpress.org/support/users/skylabb/)
 * (@skylabb)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/css-code-bloat/)
 * Hi, I’m giving the plugin a try on a project I’m working on and come across a
   couple questions.
 * In the plugin CSS, there’s one item:
    .wp-block-image {margin-bottom:1.2em}
 * Why the margin is hard coded only having to be overridden? This should be a block
   setting in the editor.
 * Then when I look into the plugin’s CSS file, there are a total of 11 repeated
   instances of the exact same CSS element. Why? This only creates code bloat.
 * Thank you.
    Steven
    -  This topic was modified 7 years, 9 months ago by [skylabb](https://wordpress.org/support/users/skylabb/).

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

 *  Plugin Author [atomicblocks](https://wordpress.org/support/users/atomicblocks/)
 * (@atomicblocks)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/css-code-bloat/#post-10664869)
 * Hi there,
 * Thanks for writing in. There is only one instance of .wp-block-image in our plugin.
   We’ve provided a style for it so images don’t hit the text above or below it.
   It looks like the core Gutenberg plugin also might be outputting some styles 
   for that.
 * If you are seeing multiple instances of this in our plugin, please let me know
   where you see that and we’ll clean that up.
 *  Thread Starter [skylabb](https://wordpress.org/support/users/skylabb/)
 * (@skylabb)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/css-code-bloat/#post-10669310)
 * If you look into the main CSS file (blocks.style.build.css) for the plugin, there’s
   a bunch of CSS code in there. Doing a text search in this CSS file shows 11 instances
   of .wp-block-image property all having the exact same values.
 * Thank you.
    Steven

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

The topic ‘CSS code bloat?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/atomic-blocks_ded9f7.svg)
 * [Atomic Blocks - Gutenberg Blocks Collection](https://wordpress.org/plugins/atomic-blocks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/atomic-blocks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/atomic-blocks/)
 * [Active Topics](https://wordpress.org/support/plugin/atomic-blocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/atomic-blocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/atomic-blocks/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [skylabb](https://wordpress.org/support/users/skylabb/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/css-code-bloat/#post-10669310)
 * Status: resolved