Hi
I have a small question about styling individual table cells in a dynamically generated table, and I cannot get my head around it. Maybe something small, but it’s a blind spot now…
url here:
http://85.92.84.84/~kkvbse/index.php/site/kalender
As you can see, several things happen at the same time.
The site is EE driven. The calendar script pulls data from a certain weblog and makes them into links to the article on another page.
The CSS stylesheet switches classes for a) blank cells (date out of month range) b) normal cells with a date range within the current month, and and c) the one cell of today. And I’'m using a java-script tool-tip that shows the title when mouse-over.
So far so good. But, for some reason I do not manage to style the link itself, it follows the a tag I made for all links in my site. (blue, hover: yellow background, and underline)
I do not want that to happen here, and want a background image as well…
This is the raw code for the calendar script:
{if entries}
<td class='{switch}' align='center'>
{entries}
<div><a href="{title_permalink='site/artikel'}"title="På gång: {title}">{day_number}</a></div>
{/entries}
</td>
{/if}
{if not_entries}
<td class='{switch}' align='center'>{day_number}</td>
{/if}
I would like to have a background image in that cell when it contains a link. My thoughts are, is it possible to attach this_style to that div in that cell, with something like
this_style calendarCell a:link {color:#0000CD; background-color:#FFFF00; background:url('{site_url}/templates_kkvb/extra_css/bg_calendarcell.gif') no-repeat }
I seem not to find somewhere how to correctly write that code.
I hope someone can point me into the right direction…
Thanks
dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options