Hi guys,
i'm currently trying to create a css class for a TOC but something i'm doing wrong.
i have inserted this code as an example:
TOC without my class:
div.tableOfContent
{
text-color:black;
}
result looks like this:
can anyone tell me what I did wrong?
With Confluence styling, you need to use the inspect function of the browser to see the rule that is being used. In the case of the ToC, it is using a high-level rule to style ALL links:
.wiki-content a, .wiki-content a:link, .wiki-content a:visited, .wiki-content a:focus, .wiki-content a:hover, .wiki-content a:active {
color: #3572b0;
}
So in your case, you need a rule that selects only your ToC
.wiki-content .tableOfContent a {
color: #030303;
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @serc !
Have you tried the solution provided by @Bill Bailey ? It's on top now.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @serc
Endlich :)
I've had time to reproduce the situation in my environment. @Bill Bailey 's solution actually works.
Here's the parameters:
As you can see - works for me.
Try to reproduce it and get back to us with the results.
Will wait for your answer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Okay I will try to clear all css styles and only implement this for the TOC, propably some other configs has some bugs. I will let you know about the reason!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Good
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i can change the color with
.toc
{
color:black;
}
but if i do this, the decimal count get changes with the discs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, let's see all the styling/code of this block. Maybe we should reproduce something as well to get the numbers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oh, I'm sorry.
According to this:
We just need to change the list style. Doesn't it work?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
für das inhaltsverzeichnis habe ich nur die oben dargestellte einstellung. muss ich alle anderen auch definieren?
if yes, like this?
.toc
{
color: black;
style: decimal;
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hast du das schon versuchen, oder?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm sorry I don't have access to my environment now.
If it's not so urgent I can test it later.
Geht es?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you checked this:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try to set this parameter as well:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's strange because it works in my environment:
I don't use CSS-styling, though.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try to change your CSS:
.toc a
{
color:black;
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, just add "a" after the class-name you use (whatever it is). This way we refer to links.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try to add
style:none
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @serc !
I think these are also links. So we should change their color too.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.