Admin Forum:Infobox css problem
Talk0this wiki
This Forum has been archived
To contact staff directly or to report bugs, please use Special:Contact.
Infobox Template
When I try to use the infoboxes like this one, I dont get that grey colouring. Can someone tell me how to get that? I think I need to copy the css too. But which and to where? — ¤ULTIMATE SUPREME ¤ (T@lk) 11:00, June 20, 2012 (UTC)
- The box has a load of class calls. These classes may have style settings in MediaWiki:Wikia.css.--PedroM 12:02, June 20, 2012 (UTC)
- I think Anime-box.css and the Anime-Content.css. But where? — ¤ULTIMATE SUPREME ¤ (T@lk) 12:11, June 20, 2012 (UTC)
You could as well just make a screenshot of the box and extract the color code with Gimp. As for straight colouring (without css shenanigans) itself, I think you need to put style="background:#______" behind a row separator into the same line to colour the following row, or put it in the table header for the whole table to colour.--PedroM 17:32, June 20, 2012 (UTC)
- I have 0% knowledge of css. — ¤ULTIMATE SUPREME ¤ (T@lk) 05:14, June 22, 2012 (UTC)
- Which grey colouring do you mean? — Matthew2602 (talk) 09:24, June 22, 2012 (UTC)
- When I use it, I get plain text without the boxes (grey coloured) — ¤ULTIMATE SUPREME ¤ (T@lk) 11:59, June 23, 2012 (UTC)
- If you mean the grey background behind "Image", you need to use ! to define the table cell instead of |. — Matthew2602 (talk) 12:06, June 23, 2012 (UTC)
- When I use it, I get plain text without the boxes (grey coloured) — ¤ULTIMATE SUPREME ¤ (T@lk) 11:59, June 23, 2012 (UTC)
- Which grey colouring do you mean? — Matthew2602 (talk) 09:24, June 22, 2012 (UTC)
like this one — ¤ULTIMATE SUPREME ¤ (T@lk) 12:10, June 23, 2012 (UTC)
- I don't see what you mean. I don't see anything grey on that page. — Matthew2602 (talk) 12:14, June 23, 2012 (UTC)
- Thats what I mean. See the first link on this page. — ¤ULTIMATE SUPREME ¤ (T@lk) 12:17, June 23, 2012 (UTC)
- Oh. Yeah, it works on css. The styles you're looking for are:
- Thats what I mean. See the first link on this page. — ¤ULTIMATE SUPREME ¤ (T@lk) 12:17, June 23, 2012 (UTC)
.box.innerbordered.type-character > tbody > tr > td, .box.innerbordered.type-character > tbody > tr > th { border-color: #AAA; } .box.colored.type-character td, .box.colored.type-character th { background: #F2F2F2; } .box.innerbordered > tbody > tr > td, .box.innerbordered > tbody > tr > th { border-width: 1px; border-style: solid; }
- I can't really trace back to where those styles are defined, because the way your wiki does its CSS is a bit all over the place, but hopefully that can help you. — Matthew2602 (talk) 12:32, June 23, 2012 (UTC)
- Where should I put it? — ¤ULTIMATE SUPREME ¤ (T@lk) 12:36, June 23, 2012 (UTC)
- Well firstly, don't just copy that CSS as it is. I was just telling you what the image cell was using to display like that. Your wiki's CSS is pretty complex and unique, so I'd suggest you let somebody at your wiki who knows how your wiki's css works help you with what you're trying to do. — Matthew2602 (talk) 12:42, June 23, 2012 (UTC)
- Where should I put it? — ¤ULTIMATE SUPREME ¤ (T@lk) 12:36, June 23, 2012 (UTC)
- I can't really trace back to where those styles are defined, because the way your wiki does its CSS is a bit all over the place, but hopefully that can help you. — Matthew2602 (talk) 12:32, June 23, 2012 (UTC)
Sorry. The problem is solved. — ¤ULTIMATE SUPREME ¤ (T@lk) 12:51, June 23, 2012 (UTC)
- Thanx. PedroM. — ¤ULTIMATE SUPREME ¤ (T@lk) 13:17, June 23, 2012 (UTC)