# Need help with code syntax

**URL:** <https://forum.kirupa.com/t/need-help-with-code-syntax/255083>\
**Category:** Uncategorized\
**Created:** [March 18, 2008, 9:14pm UTC](https://forum.kirupa.com/t/need-help-with-code-syntax/255083 "2008-03-18T21:14:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![scottybuckets](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@scottybuckets](https://forum.kirupa.com/u/scottybuckets)\
**Post date:** [March 18, 2008, 9:14pm UTC](https://forum.kirupa.com/t/need-help-with-code-syntax/255083/1 "2008-03-18T21:14:17Z")

</div>

Having a problem… In this line of code where do I add the background-position and attachment code? I tried adding it but it did not make a difference so I’m assuming it was in the wrong place.

How do I add this?  
background-position:center; background-repeat:no-repeat; background-repeat:fixed

To this…  
document.open();  
document.write("\<BODY BACKGROUND=’"+image+"’\>");

Thank you for your help.
