Re: Re: Strange interaction between tpl and css?
I really appreciate the helpful responses, and I'll try looking at the HTML as you suggest.
The site, in its current muddled form, is at www.sphericalcows.net
so you can see what the output at present looks like.
Here are the details (sorry about the loss of formatting spaces, the 'monospace' wiki syntax doesn't seem to work here.) The beginning of the CSS file seems to define a default style "a":
a {
text-decoration: none;
color: #636385;
background: none; /* #fff7d1; unvisited links blue*/
}
a:visited {
color: #53984C;
background: none; /*visited links green*/
}
a:hover {
text-decoration: underline;
background: none; /* unknown */
}
The "color" markers are mine, part of trying to recreate as much as possible the look&feel of the site this is replacing.
It is fine, and all works. But a few things with this default style in the top menu are made unreadable given the background colour because of my change. These items are described in the tiki-top_menu.tpl file as:
{if $feature_calendar eq 'y' and $tiki_p_view_calendar eq 'y'}
{$smarty.now|tiki_short_datetime}
{else}
{$smarty.now|tiki_short_datetime}
{/if}
This looked like a use of the style, so I tried creating a new style in the CSS, exactly like (cut & paste) but changing the background colours. I then changed the reference to in this section of the .tpl file to . The colour now is fine, but the href to the calendar isn't there. I thought maybe I didn't understand and was connected to or invalid in some other way so I tried a one letter name with no different effect.
It is a small thing, and I won't suffer if I can't make it do what I expect (unlike some usability issues I'm hitting). But I would like to understand.
Thanks again!
Philip