how do I make mini-toc use a link style?
how do I make mini-toc use a link style?
Do I have to set it up with blue, underline, etc, instead of just having it display as a link?? Suppose I can do that, but it's kinda odd
Re: how do I make mini-toc use a link style?
If you're generating online output, and you've properly positioned the mini-TOC proxy in a topic that's a level up from the topics to be referenced (i.e., the topic with the mini-TOC proxy is associated with a book and therefore has "children" topics), then the mini-TOC will automatically resolve to hyperlinks in online output, so it'll inherit the styles for your base <a> pseudo-classes, unless you specifically add mini-TOC pseudo-classes to the stylesheet and style them.
Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
Re: how do I make mini-toc use a link style?
One of the easiest ways to determine how to stylize any of the proxies (at least online) is to build it and then view the code of the topic. A miniTOC will generate something like this:
<p class="MiniTOC1"><a class="MiniTOC1" href="folder/topic_name.htm">Topic Name</a></p>
So, the style will use the a.MiniTOC1 which automatically inherits styles from <a>. If you wanted to make the MiniTOC1 look different from MiniTOC2 you would just add the MiniTOC1 and MiniTOC2 classes to the <a> style in your stylesheet. So, as Lisa said, the miniTOC will automatically look and act like your current <a> style (see base link color, hover color, and clicked color) and can be modfied seperately if needed.
<p class="MiniTOC1"><a class="MiniTOC1" href="folder/topic_name.htm">Topic Name</a></p>
So, the style will use the a.MiniTOC1 which automatically inherits styles from <a>. If you wanted to make the MiniTOC1 look different from MiniTOC2 you would just add the MiniTOC1 and MiniTOC2 classes to the <a> style in your stylesheet. So, as Lisa said, the miniTOC will automatically look and act like your current <a> style (see base link color, hover color, and clicked color) and can be modfied seperately if needed.
Flare: I bought it ... so that means I can break it, right?
Re: how do I make mini-toc use a link style?
it doesn't, that's the trouble - it displays as bold black text, no blue, no underline
many of these 'default' things don't work as expected and it's a bit difficult to track down why.
I haven't modified either of these, but they do not display as links, as both of you suggest they should.
thanks, will get to this later (more time making things that should just work, work, o well)
many of these 'default' things don't work as expected and it's a bit difficult to track down why.
I haven't modified either of these, but they do not display as links, as both of you suggest they should.
thanks, will get to this later (more time making things that should just work, work, o well)
-
lacastle
- Propellus Maximus
- Posts: 1028
- Joined: Thu Apr 12, 2007 7:28 am
- Location: Wilmington, DE
- Contact:
Re: how do I make mini-toc use a link style?
As a quick work-around, I just modified the mini-toc styles to be blue and underlined, aka to look like a hyperlink.
Laura A. Castle
http://www.lauracastle.com
http://www.lauracastle.com
Re: how do I make mini-toc use a link style?
that's what I said in the first place, that I could do that - but it _should_ be based on the <a> class/style, instead of me just modifying the look.
Re: how do I make mini-toc use a link style?
It's Flare's "default" styles; basically Flare adds a bunch of styles in a separate stylesheet (MadCap.css), and that includes a.MiniTOC1:link (etc.) which is setting the colour to black and no underline. You have to add some styles in your stylesheet to counteract this - see my post here: http://forums.madcapsoftware.com/viewto ... 000#p67000