This is a template from Memory Alpha. I was wondering how they made the top portion of this template shaded (lighter red to darker), and what the coding would be required to get this effect.
Cqm wrote: Sortable tables require the sortable class to be added to them:
{| class="wikitable sortable" ! 1 ! 2 |- | A | B |- | C | D |}
1 | 2 |
---|---|
A | B |
C | D |
I know, but what prefix do I use in the css code? table.wiki? or what
Like: wiki.table (?) {
background-color:#390200; background-image: linear-gradient(center top , #6c0400 0%, #390200 100%); background-image: -moz-linear-gradient(center top , #6c0400 0%, #390200 100%); background-image: -o-linear-gradient(center top , #6c0400 0%, #390200 100%); background-image: -webkit-linear-gradient(center top , #6c0400 0%, #390200 100%); background-image: -ms-linear-gradient(center top , #6c0400 0%, #390200 100%); background-image: -khtml-linear-gradient(center top , #6c0400 0%, #390200 100%);
}
Thanks, but it still wont work. :/
Simply give that table another class, say, gradient
, and use table.sortable.gradient th (the th
will affect all the header cells).
Fubuki風吹 wrote:
Simply give that table another class, say, gradient
, and use table.sortable.gradient th (the th
will affect all the header cells).
Well, I am obviously doing something wrong, because nothing is working for me. I will post the pictures of everything I have done in the Common.css page, and the Sandbox page, to test out the code. Please tell me what I am doing wrong, because I am getting really frustrated with this...
But wouldn't
gradient th { ... }
be enough?
@Capt: Import the CSS placed in Common.css to Wikia.css.
@Flight: Course it would be. The adjoining class will be more specific for sortable tables, if that's what they're trying to do.
Fubuki風吹 wrote: @Capt: Import the CSS placed in Common.css to Wikia.css.
@Flight: Course it would be. The adjoining class will be more specific for sortable tables, if that's what they're trying to do.
Thanks so much, Fubuki風吹!! I did that, and now it works great!
Wow... I am so glad to be done with this mess :D
Thanks to everyone else who helped me throughout as well!
You're welcome. Also, instead of manually copy-pasting every time, you could use @import
for that.