Forum:Table columns

Hello. I want to make a table similar to the "DVD release date" column of this table, but with a yellow color. Who knows the source to it? -- TheHomer 21:37, June 25, 2010 (UTC)


 * Use the code from wikipedia page Here & modify it to suit (just change a bit at a time & check the result is what you expected & then save it, befor changing the next bit, if it goes wrong you can just undo the last edit. Do it in a sandbox page i.e User:TheHomer/table test then when complete copy it into the article page or make it into a template if for multiple pages. If it needs diferent data in some cells on different pages place 'variables'   etc in the relevant cells and then use  on the page (like for an infobox were 'some data' is the info to show in that cell).


 * for colour codes go to web colors for the codes. - BulldozerD11 00:38, June 26, 2010 (UTC)
 * Thank you, I did it and it looks fine but, how do you add a border to all of the boxes? The table is here -- TheHomer 01:50, June 26, 2010 (UTC)


 * Looks like you also need the css code for wikitable that styles them. Get this added to MediaWiki.common.css (needs an admin to do it & double check its not already in or part in the Common.css file)

/* wikitable/prettytable class for skinning normal tables */ table.wikitable, table.prettytable { margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse; } table.wikitable th, table.wikitable td, table.prettytable th, table.prettytable td { border: 1px #aaa solid; padding: 0.2em; } table.wikitable th, table.prettytable th { background: #f2f2f2; text-align: center; } table.wikitable caption, table.prettytable caption { margin-left: inherit; margin-right: inherit; font-weight: bold; } table.prettytable code, table.wikitable code { background-color: transparent; } This version is from my wiki, but it came from Wikipedia originally IIRC, and provides the default styling for tables with the "class=wikitable" code. - BulldozerD11 03:01, June 26, 2010 (UTC)