Forum OpenACS Q&A: Re: ad_context_bar and link attributes

Collapse
Posted by Raad Al-Rawi on
Randy

I'm not quite sure what you're aiming for, but if the context bar is enclosed within, say, a DIV that is styled with a class - e.g.

    <div class="subsite-context-bar">
        @context_bar;noquote@&nbsp;
    </div>

then you could define/control the styling for the links within the context bar by doing something like this:

    .subsite-context-bar
    {
    color:#000000;
    font-size: 90%;
    font-weight: bold;
    }

    .subsite-context-bar a
    {
    color:#000000;
    border-bottom: 1px dotted #000000;
    }

    .subsite-context-bar a:visited
    {
    color:#000000;
    }

    .subsite-context-bar a:hover
    {
    color:#BB0000;
    border-bottom: 1px solid #BB0000;
    text-decoration: none;
    }

That way, I don't think a change to ad_context_bar is necessary (unless I'm very much mistaken!)

<Raad>