# Css for fixed elements doesn't work

**URL:** <https://forum.readymag.com/t/css-for-fixed-elements-doesnt-work/4409>\
**Category:** Custom code\
**Created:** [February 18, 2025, 9:33am UTC](https://forum.readymag.com/t/css-for-fixed-elements-doesnt-work/4409 "2025-02-18T09:33:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ggdd](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/ggdd/32/1143_2.png) [@ggdd](https://forum.readymag.com/u/ggdd)\
**Post date:** [February 18, 2025, 9:33am UTC](https://forum.readymag.com/t/css-for-fixed-elements-doesnt-work/4409/1 "2025-02-18T09:33:30Z")

</div>

[data-id=“DATAIDHERE”] {  
code : random here  
}

any code works well like that, but when any dataid element becomes fixed code stopped working
