smallbrownfrog: (Snape sunset arch)
smallbrownfrog ([personal profile] smallbrownfrog) wrote in [community profile] ao3_skins2013-11-16 01:02 am

Making the table structure vsible

This is probably an incredibly basic question, but could somebody please help me understand how to make a Work Skin that will make all the dividing lines in a table visible again? I have a meta piece that I want to post, but it's completely unreadable and unusable once AO3's software has removed all the borders. I need clear lines between the different table cells so that people can easily scan a column or row.

Thank you.
rebecca2525: Abby Sciuto from NCIS with the word "geek" (Default)

[personal profile] rebecca2525 2013-11-16 09:25 am (UTC)(link)
The worksin should look like this once it's saved:

#workskin table.bordered {
border-collapse: collapse;
width: auto;
}

#workskin table.bordered,
#workskin table.bordered th,
#workskin table.bordered td {
border: 1px solid black;
}


The line "width: auto" is optional, it makes your table colums as small as need be, not sure if you want that. Also note that there seems to be a bug that prepends "#workskin" to the lines on saving even if it's already there, so enter it without #workskin.

Then in your work you can write:

< table class="bordered" >
...
< / table >

(Without the spaces)

rebecca2525: Abby Sciuto from NCIS with the word "geek" (Default)

[personal profile] rebecca2525 2013-11-16 09:30 am (UTC)(link)
For understanding table styling, this site is really helpful:

http://www.w3schools.com/css/css_table.asp

It lets you fiddle with the examples on the site.
samjohnsson: It's just another mask (Default)

[personal profile] samjohnsson 2013-11-16 01:25 pm (UTC)(link)
For the record, that #workskin bug is being fumigated in the next deploy.
musyc: Silver flute resting diagonally across sheet music (Default)

[personal profile] musyc 2013-11-16 02:34 pm (UTC)(link)
You may want to add something to your author's notes requesting viewers activate work skins to see the table as coded, if it's crucial. I have AO3 set up to never ever show me work skins, so a note indicating there's something cool or unusual in the formatting of a work is the only reason I'd click the switch button.

CSS formatting

[personal profile] douglaswelbar 2014-09-15 06:46 am (UTC)(link)
Try ...CSS Formatting

douglas