eZ Publish does not let you define inline style in the content, this is because it seperates the content from style / design.
So in this case you can:
1: Define a class for the tag you want to style (look in content.ini for how to set up classes pr tag, for instance [paragraph] aka <p> in html )
2. Use <literal class="html"></literal> tag, this will allow you to put anything inside that tag. But you need to enable it first in content.ini under [literal], it is disabled by default for security reasons (so be sure you only let trusted people edit any class with xmlBlock datatypes after you enable this)
Once I enable HTML i can use inline styles within a literal tag
eg:
<literal class="html">
<div style="background-image: url(images/image.bg); background-repeat:no-repeat;background-color:#000000;width:300px;height:450px;">
<div style="font-family:tahoma;font-size:1em;color:#ffffff;padding:30px 10px 10px 10px;">
Just a bit of text
</div>
</div>
</literal>
No. but that is because you use relative urls in the background image.
If this is on page:
http://ezsite.com/aboutus/thispage
then your browser would think the image is here: http://ezsite.com/aboutus/thispage/images/image.gif
So you need to set it to something like this (depending on where you place the image of course): url('/design/my_design/images/image.gif')
<literal class="html"> <div style="background-image: url(http://www.streetracersuk.com/var/ezwebin_site/storage/images/media/images/welcome/960-1-eng-GB/Welcome.jpg); background-repeat:no-repeat;background-color:#000000;width:621px;height:120px;"> <div style="font-family:tahoma;font-size:1em;color:#ffffff;padding:30px 10px 10px 10px;">This is Street Racers UK. An indepedant webzine about car modifying and the surrounding culture. </div> </div> </literal>
I think I'm doing something wrong enabling html in the content.ini through the admin because it comes up with this error...
Center column: Class 'html' is not allowed for element <literal> (check content.ini).