Title: CSS is displayed differently
Last modified: August 28, 2024

---

# CSS is displayed differently

 *  Resolved [Manja Neumann](https://wordpress.org/support/users/tippl/)
 * (@tippl)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/css-is-displayed-differently/)
 * I use twentytwentyfour with Generateblocks I have created a template part with
   GB containers. This template part is syncronized in all pages of the website.
   I changed the padding. Everything seems fine in the backend. However, I see this
   template part with the same container with different paddings on different pages
   in the frontend. The CSS is displayed inline. If I look at the inline stylesheet,
   it contains different rules depending on which page I am on. This is very strange.
   I can exclude caching by WP, browser or hosting.
 * Example:
   Template-Part – Container Padding 1remSite A Container Padding 1remSite
   B container padding 5rem
 * I have also tried to save the CSS externally (GenerateBlocks Settings), but this
   resulted in one page still having inline CSS and one having an external stylesheet.
 * Thanks
   Manja
    -  This topic was modified 1 year, 9 months ago by [Manja Neumann](https://wordpress.org/support/users/tippl/).

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

 *  Plugin Support [ying](https://wordpress.org/support/users/yingscarlett/)
 * (@yingscarlett)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/css-is-displayed-differently/#post-17981345)
 * Hi Manja,
 * Can you link us to 2 pages that are using the same template but with different
   styles so we can compare?
 * Let me know 🙂
 *  Thread Starter [Manja Neumann](https://wordpress.org/support/users/tippl/)
 * (@tippl)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/css-is-displayed-differently/#post-17982338)
 * Unfortunately not, the site is still being developed locally. I have attached
   screenshots of the html structure and the css. It seems to me that the inline
   css is saved page by page and not across the whole installation. Is that correct?
   On page B the modified css does not seem to have been updated. Where do you store
   the inline css?
 * ![](https://i0.wp.com/lechatinformatique.de/wp-content/uploads/2024/08/html-page-
   A.png?ssl=1)
 * ![](https://i0.wp.com/lechatinformatique.de/wp-content/uploads/2024/08/html-page-
   B.png?ssl=1)
 * ![](https://i0.wp.com/lechatinformatique.de/wp-content/uploads/2024/08/inline-
   css-page-A.png?ssl=1)
 * ![](https://i0.wp.com/lechatinformatique.de/wp-content/uploads/2024/08/inline-
   css-page-B.png?ssl=1)
 *  Plugin Support [David](https://wordpress.org/support/users/diggeddy/)
 * (@diggeddy)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/css-is-displayed-differently/#post-17982518)
 * Hi there,
 * on the problem site, select the parent container block and duplicate it and delete
   the original. This will regenerate the CSS Classes and eliminate a potential 
   classname conflict
 *  Thread Starter [Manja Neumann](https://wordpress.org/support/users/tippl/)
 * (@tippl)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/css-is-displayed-differently/#post-17983104)
 * Great! It worked. After duplicating parent and issue container I got new inline
   css and now I can see the changes in the frontend too.
 * So how can I avoid this behavior in future? This isn’t just one incident. I found
   more containers with old css 🙁
 *  Plugin Support [David](https://wordpress.org/support/users/diggeddy/)
 * (@diggeddy)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/css-is-displayed-differently/#post-17983116)
 * Currently when you copy and paste a block, GB Checks if there are any duplicate
   classnames and if there are, it regenerates the classes. 
   BUT this ( currently)
   won’t work if you copy and paste between posts (including block templates) . 
   So for now instead of Copy and Paste. use Duplicate , Cut and Paste.
 *  Thread Starter [Manja Neumann](https://wordpress.org/support/users/tippl/)
 * (@tippl)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/css-is-displayed-differently/#post-17983617)
 * Ok, I will change the workflow to avoid this. Thanks a lot!
 *  Plugin Support [David](https://wordpress.org/support/users/diggeddy/)
 * (@diggeddy)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/css-is-displayed-differently/#post-17984875)
 * You’re welcome

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

The topic ‘CSS is displayed differently’ is closed to new replies.

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

 * 7 replies
 * 3 participants
 * Last reply from: [David](https://wordpress.org/support/users/diggeddy/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/css-is-displayed-differently/#post-17984875)
 * Status: resolved