Odd and even lines background colors
-
Hello Yannick,
I wanted to display different background colors to the lines in the lists of links.
It’s possible: https://www.w3.org/Style/Examples/007/evenodd.en.htmlSo, I tried with success this code :
table tr:nth-child(even)
{
background-color: #DDD;
}
table tr:nth-child(odd)
{
background-color: #FFF;
}But it works only for the “anchor” links on the top of the page, not for the links list itself.
In the admin panel “Library Configuration” / “Links”, I have chosen “Table”.
I tried to modify empirically the css (looking the source code) with the following parameters :linktable
linklisttable
table.linktable
table.linklisttableBut nothing works.
I’m sure the link list is a table because I saw in the source code:
<table class=’linklisttable’>Do you know why it works with the “anchors” list on the top of the page and not with the links lit ?
Thanks a lot,
Michel
- The topic ‘Odd and even lines background colors’ is closed to new replies.