# How to add CSS code into Code Element?

**URL:** <https://forum.shopware.com/t/how-to-add-css-code-into-code-element/53461>\
**Category:** Allgemein\
**Created:** [13. Juni 2018 um 09:36 UTC](https://forum.shopware.com/t/how-to-add-css-code-into-code-element/53461 "2018-06-13T09:36:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![richard\_howell](https://avatars.discourse-cdn.com/v4/letter/r/bc8723/32.png) [@richard\_howell](https://forum.shopware.com/u/richard_howell)\
**Post date:** [13. Juni 2018 um 09:36 UTC](https://forum.shopware.com/t/how-to-add-css-code-into-code-element/53461/1 "2018-06-13T09:36:50Z")

</div>

Hello,

I am trying to add CSS code into the CSS class in the code element. But it keeps saying "the input value can not contain any special characters"Anyway to get around this?

An example of what I’m putting in below.

Thanks

&nbsp;

&nbsp;

.modal {  
&nbsp; &nbsp; display: none;&nbsp;  
&nbsp; &nbsp; position: fixed;&nbsp;  
&nbsp; &nbsp; z-index: 1;&nbsp;  
&nbsp; &nbsp; padding-top: 100px;&nbsp;  
&nbsp; &nbsp; left: 0;  
&nbsp; &nbsp; top: 0;  
&nbsp; &nbsp; width: 100%;&nbsp;  
&nbsp; &nbsp; height: 100%;&nbsp;

---

<div class="post-metadata">

**Author:** ![BestShopPossible](https://avatars.discourse-cdn.com/v4/letter/b/6bbea6/32.png) [@BestShopPossible](https://forum.shopware.com/u/BestShopPossible)\
**Post date:** [13. Juni 2018 um 09:38 UTC](https://forum.shopware.com/t/how-to-add-css-code-into-code-element/53461/2 "2018-06-13T09:38:29Z")

</div>

You are not supposed to put css code into the css class input element. Thats why it is called css class instead of css code.
