Hi,
I want to add a background image to a table placed on the main page via the define pages editor, but I seem to be having problems with the syntax (could be my CSS, which is a bit shaky).
Code is
Code:
<table width="550" border="0" cellspacing="0" cellpadding="0" class=".mainPageImage">
<tr>
<td colspan="2" width="350"</td>
<td width="250">Fantastic imported chocolate right here in Hong Kong Chocolate for health Loren Ipsum wibbleChocolate for health Loren Ipsum wibbleChocolate for health Loren Ipsum wibbleChocolate for health Loren Ipsum wibbleChocolate for health Loren Ipsum wibbleChocolate for health Loren Ipsum wibbleChocolate for health Loren Ipsum wibbleChocolate for health Loren Ipsum wibbleChocolate for health Loren Ipsum wibbleChocolate for health Loren Ipsum wibbleChocolate for health Loren Ipsum wibble</td>
</tr>
</table>
and I've placed the following at the bottom of the main stylesheet
Code:
.mainPageImage {
background-color: blue;
background-image: url(<?php echo '<img src="' . HTTP_SERVER . DIR_WS_CATALOG . 'images/orange/main_page_chocolate_bar.jpg" alt="chocolate" width="170">' ?>);
background-repeat: no-repeat;"
}
It's not throwing an error, just not showing any background. Note I wanted to do it like this as I want to position some text over the top of a graphic (using text for better SEO), so if anyone has a better solution would be happy to try another method.
Cheers,
Adam.
Bookmarks