francdore
Banned
Hi there,
I'm trying to add styles to a javascript page.
What am I doing wrong?
Here is my styles I'm trying to add:
And when I view it on the site it look like this:
While it should be looking like this:
Thank you in advance.
I'm trying to add styles to a javascript page.
What am I doing wrong?
Here is my styles I'm trying to add:
Code:
_getTemplate : function (parameters) {
return "" +
"<styles>\n" +
".bookmark-image: {position: absolute;}\n" +
".bookmark-image:hover: {background: url(images/bookmark-image-le-good-life.png); no-repeat; width: 169px; height: 41px; position: absolute;}\n" +
"</styles>\n" +
And when I view it on the site it look like this:
Code:
<styles>
.bookmark-image:
.bookmark-image:hover:
</styles>
While it should be looking like this:
Code:
<styles>
.bookmark-image: {position: absolute;}
.bookmark-image:hover {background: url(images/bookmark-image-le-good-life.png); no-repeat; width: 169px; height: 41px; position: absolute;}
</styles>
Thank you in advance.
Last edited: