Where do these inline css .wp-container-62… styles come from?
-
Hi,
I don’t understand where several inline css styles regarding Twenty-Twenty-Two originate from. At the top of all my pages there are many dynamically generated inline styles that influence blocks in Twenty-Twenty-Two. They look like this:
<style>.wp-container-62286db5e8703 {display: flex;gap: var( --wp--style--block-gap, 0.5em );flex-wrap: wrap;align-items: center;align-items: center;}.wp-container-62286db5e8703 > * { margin: 0; }</style> <style>.wp-container-62286db5e9459 {display: flex;gap: var( --wp--style--block-gap, 0.5em );flex-wrap: wrap;align-items: center;align-items: center;justify-content: flex-end;}.wp-container-62286db5e9459 > * { margin: 0; }</style> <style>.wp-container-62286db5e9643 {display: flex;gap: var( --wp--style--block-gap, 0.5em );flex-wrap: wrap;align-items: center;align-items: center;justify-content: space-between;}.wp-container-62286db5e9643 > * { margin: 0; }</style> <style>.wp-container-62286db5e9855 > * {max-width: 650px;margin-left: auto !important;margin-right: auto !important;}.wp-container-62286db5e9855 > .alignwide { max-width: 1000px;}.wp-container-62286db5e9855 .alignfull { max-width: none; }.wp-container-62286db5e9855 .alignleft { float: left; margin-right: 2em; }.wp-container-62286db5e9855 .alignright { float: right; margin-left: 2em; }.wp-container-62286db5e9855 > * { margin-top: 0; margin-bottom: 0; }.wp-container-62286db5e9855 > * + * { margin-top: var( --wp--style--block-gap ); margin-bottom: 0; }</style> <style>.wp-container-62286db5e9c2a .alignleft { float: left; margin-right: 2em; }.wp-container-62286db5e9c2a .alignright { float: right; margin-left: 2em; }.wp-container-62286db5e9c2a > * { margin-top: 0; margin-bottom: 0; }.wp-container-62286db5e9c2a > * + * { margin-top: var( --wp--style--block-gap ); margin-bottom: 0; }</style> <style>.wp-container-62286db5e9e0c .alignleft { float: left; margin-right: 2em; }.wp-container-62286db5e9e0c .alignright { float: right; margin-left: 2em; }.wp-container-62286db5e9e0c > * { margin-top: 0; margin-bottom: 0; }.wp-container-62286db5e9e0c > * + * { margin-top: var( --wp--style--block-gap ); margin-bottom: 0; }</style> <style>.wp-elements-62286db5e9e40 a{color: var(--wp--preset--color--background);}</style> <style>.wp-container-62286db5ea05a > * {max-width: 650px;margin-left: auto !important;margin-right: auto !important;}.wp-container-62286db5ea05a > .alignwide { max-width: 1000px;}.wp-container-62286db5ea05a .alignfull { max-width: none; }.wp-container-62286db5ea05a .alignleft { float: left; margin-right: 2em; }.wp-container-62286db5ea05a .alignright { float: right; margin-left: 2em; }.wp-container-62286db5ea05a > * { margin-top: 0; margin-bottom: 0; }.wp-container-62286db5ea05a > * + * { margin-top: var( --wp--style--block-gap ); margin-bottom: 0; }</style> <style>.wp-container-62286db5ea97f > * {max-width: 650px;margin-left: auto !important;margin-right: auto !important;}.wp-container-62286db5ea97f > .alignwide { max-width: 1000px;}.wp-container-62286db5ea97f .alignfull { max-width: none; }.wp-container-62286db5ea97f .alignleft { float: left; margin-right: 2em; }.wp-container-62286db5ea97f .alignright { float: right; margin-left: 2em; }.wp-container-62286db5ea97f > * { margin-top: 0; margin-bottom: 0; }.wp-container-62286db5ea97f > * + * { margin-top: var( --wp--style--block-gap ); margin-bottom: 0; }</style> <style>.wp-container-62286db5eab77 .alignleft { float: left; margin-right: 2em; }.wp-container-62286db5eab77 .alignright { float: right; margin-left: 2em; }.wp-container-62286db5eab77 > * { margin-top: 0; margin-bottom: 0; }.wp-container-62286db5eab77 > * + * { margin-top: var( --wp--style--block-gap ); margin-bottom: 0; }</style> <style>.wp-container-62286db5eb0dd > * {max-width: 650px;margin-left: auto !important;margin-right: auto !important;}.wp-container-62286db5eb0dd > .alignwide { max-width: 1000px;}.wp-container-62286db5eb0dd .alignfull { max-width: none; }.wp-container-62286db5eb0dd .alignleft { float: left; margin-right: 2em; }.wp-container-62286db5eb0dd .alignright { float: right; margin-left: 2em; }.wp-container-62286db5eb0dd > * { margin-top: 0; margin-bottom: 0; }.wp-container-62286db5eb0dd > * + * { margin-top: var( --wp--style--block-gap ); margin-bottom: 0; }</style> <style>.wp-container-62286db5eb2c4 .alignleft { float: left; margin-right: 2em; }.wp-container-62286db5eb2c4 .alignright { float: right; margin-left: 2em; }.wp-container-62286db5eb2c4 > * { margin-top: 0; margin-bottom: 0; }.wp-container-62286db5eb2c4 > * + * { margin-top: var( --wp--style--block-gap ); margin-bottom: 0; }</style> <style>.wp-container-62286db5eb7ee > * {max-width: 650px;margin-left: auto !important;margin-right: auto !important;}.wp-container-62286db5eb7ee > .alignwide { max-width: 1000px;}.wp-container-62286db5eb7ee .alignfull { max-width: none; }.wp-container-62286db5eb7ee .alignleft { float: left; margin-right: 2em; }.wp-container-62286db5eb7ee .alignright { float: right; margin-left: 2em; }.wp-container-62286db5eb7ee > * { margin-top: 0; margin-bottom: 0; }.wp-container-62286db5eb7ee > * + * { margin-top: var( --wp--style--block-gap ); margin-bottom: 0; }</style> <style>.wp-container-62286db5eb9d5 .alignleft { float: left; margin-right: 2em; }.wp-container-62286db5eb9d5 .alignright { float: right; margin-left: 2em; }.wp-container-62286db5eb9d5 > * { margin-top: 0; margin-bottom: 0; }.wp-container-62286db5eb9d5 > * + * { margin-top: var( --wp--style--block-gap ); margin-bottom: 0; }</style> <style>.wp-container-62286db5ebf2f > * {max-width: 650px;margin-left: auto !important;margin-right: auto !important;}.wp-container-62286db5ebf2f > .alignwide { max-width: 1000px;}.wp-container-62286db5ebf2f .alignfull { max-width: none; }.wp-container-62286db5ebf2f .alignleft { float: left; margin-right: 2em; }.wp-container-62286db5ebf2f .alignright { float: right; margin-left: 2em; }.wp-container-62286db5ebf2f > * { margin-top: 0; margin-bottom: 0; }.wp-container-62286db5ebf2f > * + * { margin-top: var( --wp--style--block-gap ); margin-bottom: 0; }</style> <style>.wp-container-62286db5ec116 .alignleft { float: left; margin-right: 2em; }.wp-container-62286db5ec116 .alignright { float: right; margin-left: 2em; }.wp-container-62286db5ec116 > * { margin-top: 0; margin-bottom: 0; }.wp-container-62286db5ec116 > * + * { margin-top: var( --wp--style--block-gap ); margin-bottom: 0; }</style> <style>.wp-container-62286db5ec67a > * {max-width: 650px;margin-left: auto !important;margin-right: auto !important;}.wp-container-62286db5ec67a > .alignwide { max-width: 1000px;}.wp-container-62286db5ec67a .alignfull { max-width: none; }.wp-container-62286db5ec67a .alignleft { float: left; margin-right: 2em; }.wp-container-62286db5ec67a .alignright { float: right; margin-left: 2em; }.wp-container-62286db5ec67a > * { margin-top: 0; margin-bottom: 0; }.wp-container-62286db5ec67a > * + * { margin-top: var( --wp--style--block-gap ); margin-bottom: 0; }</style> <style>.wp-container-62286db5ec863 .alignleft { float: left; margin-right: 2em; }.wp-container-62286db5ec863 .alignright { float: right; margin-left: 2em; }.wp-container-62286db5ec863 > * { margin-top: 0; margin-bottom: 0; }.wp-container-62286db5ec863 > * + * { margin-top: var( --wp--style--block-gap ); margin-bottom: 0; }</style> <style>.wp-container-62286db5ece3f > * {max-width: 650px;margin-left: auto !important;margin-right: auto !important;}.wp-container-62286db5ece3f > .alignwide { max-width: 1000px;}.wp-container-62286db5ece3f .alignfull { max-width: none; }.wp-container-62286db5ece3f .alignleft { float: left; margin-right: 2em; }.wp-container-62286db5ece3f .alignright { float: right; margin-left: 2em; }.wp-container-62286db5ece3f > * { margin-top: 0; margin-bottom: 0; }.wp-container-62286db5ece3f > * + * { margin-top: var( --wp--style--block-gap ); margin-bottom: 0; }</style> <style>.wp-container-62286db5ed078 .alignleft { float: left; margin-right: 2em; }.wp-container-62286db5ed078 .alignright { float: right; margin-left: 2em; }.wp-container-62286db5ed078 > * { margin-top: 0; margin-bottom: 0; }.wp-container-62286db5ed078 > * + * { margin-top: var( --wp--style--block-gap ); margin-bottom: 0; }</style> <style>.wp-container-62286db5ed741 > * {max-width: 650px;margin-left: auto !important;margin-right: auto !important;}.wp-container-62286db5ed741 > .alignwide { max-width: 1000px;}.wp-container-62286db5ed741 .alignfull { max-width: none; }.wp-container-62286db5ed741 .alignleft { float: left; margin-right: 2em; }.wp-container-62286db5ed741 .alignright { float: right; margin-left: 2em; }.wp-container-62286db5ed741 > * { margin-top: 0; margin-bottom: 0; }.wp-container-62286db5ed741 > * + * { margin-top: var( --wp--style--block-gap ); margin-bottom: 0; }</style> <style>.wp-container-62286db5ed969 .alignleft { float: left; margin-right: 2em; }.wp-container-62286db5ed969 .alignright { float: right; margin-left: 2em; }.wp-container-62286db5ed969 > * { margin-top: 0; margin-bottom: 0; }.wp-container-62286db5ed969 > * + * { margin-top: var( --wp--style--block-gap ); margin-bottom: 0; }</style> <style>.wp-container-62286db5edcfd .alignleft { float: left; margin-right: 2em; }.wp-container-62286db5edcfd .alignright { float: right; margin-left: 2em; }.wp-container-62286db5edcfd > * { margin-top: 0; margin-bottom: 0; }.wp-container-62286db5edcfd > * + * { margin-top: var( --wp--style--block-gap ); margin-bottom: 0; }</style> <style>.wp-container-62286db5ee1bb {display: flex;gap: var( --wp--style--block-gap, 0.5em );flex-wrap: nowrap;align-items: center;align-items: center;justify-content: space-between;}.wp-container-62286db5ee1bb > * { margin: 0; }</style> <style>.wp-container-62286db5ee3cd > * {max-width: 650px;margin-left: auto !important;margin-right: auto !important;}.wp-container-62286db5ee3cd > .alignwide { max-width: 1000px;}.wp-container-62286db5ee3cd .alignfull { max-width: none; }.wp-container-62286db5ee3cd .alignleft { float: left; margin-right: 2em; }.wp-container-62286db5ee3cd .alignright { float: right; margin-left: 2em; }.wp-container-62286db5ee3cd > * { margin-top: 0; margin-bottom: 0; }.wp-container-62286db5ee3cd > * + * { margin-top: var( --wp--style--block-gap ); margin-bottom: 0; }</style> <style>.wp-elements-62286db61dcf2 a{color: var(--wp--preset--color--background);}</style> <style>.wp-container-62286db61df74 .alignleft { float: left; margin-right: 2em; }.wp-container-62286db61df74 .alignright { float: right; margin-left: 2em; }.wp-container-62286db61df74 > * { margin-top: 0; margin-bottom: 0; }.wp-container-62286db61df74 > * + * { margin-top: var( --wp--style--block-gap ); margin-bottom: 0; }</style> <style>.wp-container-62286db61e16f .alignleft { float: left; margin-right: 2em; }.wp-container-62286db61e16f .alignright { float: right; margin-left: 2em; }.wp-container-62286db61e16f > * { margin-top: 0; margin-bottom: 0; }.wp-container-62286db61e16f > * + * { margin-top: var( --wp--style--block-gap ); margin-bottom: 0; }</style> <style>.wp-container-62286db61e4f4 .alignleft { float: left; margin-right: 2em; }.wp-container-62286db61e4f4 .alignright { float: right; margin-left: 2em; }.wp-container-62286db61e4f4 > * { margin-top: 0; margin-bottom: 0; }.wp-container-62286db61e4f4 > * + * { margin-top: var( --wp--style--block-gap ); margin-bottom: 0; }</style> <style>.wp-elements-62286db61e72d a{color: var(--wp--preset--color--background);}</style> <style>.wp-container-62286db61e969 .alignleft { float: left; margin-right: 2em; }.wp-container-62286db61e969 .alignright { float: right; margin-left: 2em; }.wp-container-62286db61e969 > * { margin-top: 0; margin-bottom: 0; }.wp-container-62286db61e969 > * + * { margin-top: var( --wp--style--block-gap ); margin-bottom: 0; }</style> <style>.wp-elements-62286db61ea00 a{color: var(--wp--preset--color--background);}</style> <style>.wp-elements-62286db61ea38 a{color: var(--wp--preset--color--background);}</style> <style>.wp-container-62286db61ec2d {display: flex;gap: var( --wp--style--block-gap, 0.5em );flex-wrap: wrap;align-items: center;align-items: center;justify-content: space-between;}.wp-container-62286db61ec2d > * { margin: 0; }</style>
Why is this happening?
I think there are more of these styles each week. Where do they come from? Why are they appearing? I checked the global style editor and checked single blocks in my content. I did not intentionally change any styles, and they do weird stuff. Can please somebody explain this to me? My only solution is to overwrite these styles with custom css that is really bad practice.
- This topic was modified 2 years, 8 months ago by .
- This topic was modified 2 years, 8 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘Where do these inline css .wp-container-62… styles come from?’ is closed to new replies.