What works best is an image with the size of 1x15 or 15x1
Then you upload it as a guild pic and the image will be stretched to fill
The code will then be <body background=profilelogo_GUILDNAME.jpeg>
(note: this is how it works in Classic, not sure about other servers)
Attached is an example background that I made