Question: I am new to webpage development and have a technical question. If I write a javascript function and put it in the head or body of my HTML file, can the variables in the function be used directly in the CSS code to alter things like content positioning? Or must the function be called from the CSS file(s)?

Thanks for any and all input!

Answer: 
Answer of @Halvor Strand hits the home, but additionally there is need to change the title structure, because SVG won't generate correctly during exporting. It's happening because `</br>`'s, but to solve this problem, for example you can place every title line in different `<span>` element with `style="display: block;"` set on it. Take a look on the code:

```
    title: {
        useHTML: true,
        text: '<span style="display: block;">Header Text in Line1</span><span style="display: block;">Line 2 Text</span><span style="display: block;">Line 3 Text</span>',
        style: {
            "text-align": "center"
        }
    }

```

**Live example:** <http://jsfiddle.net/m052y9ud/>
You can set `allowHTML` to `true`, which is an experimental feature for exporting. [API](https://api.highcharts.com/highcharts/exporting.allowHTML) says:

> 
> `allowHTML: Boolean` Since 4.1.8
> 
> 
> Experimental setting to allow HTML inside the chart (added through the `useHTML` options), directly in the exported image. This allows you to preserve complicated HTML structures like tables or bi-directional text in exported charts.
> 
> 
> Disclaimer: The HTML is rendered in a `foreignObject` tag in the generated SVG. The official export server is based on PhantomJS, which supports this, but other SVG clients, like Batik, does not support it. This also applies to downloaded SVG that you want to open in a desktop client.
> 
> 
> Defaults to `false`.
> 
> 
> 

In your case, it can look something like this ([JSFiddle](http://jsfiddle.net/uXg9t/177/)): 

```
$('#container').highcharts({
    // ...
    exporting: {
        enabled: true,
        allowHTML: true,
        chartOptions: {
            // ...
        }
    }
});

```