r/csshelp • • Feb 08 '13

Resolved List of Valid Wiki Table Formatting?

Has anyone worked out which HTML table tags will work in the newish reddit wiki system? Most of the usual tags for borders, spacing, padding, etc. don't seem to have any effect as far as I can tell.

6 Upvotes

12 comments sorted by

3

u/Kmlkmljkl Feb 08 '13

The wiki uses the same formatting as comments, which is this:

Row 1Row 2Etc...
LeftMiddleRight
_______________________________________
| Row 1 | Row 2 | Etc... |
|:-----------|:----------:|-----------:|
| Left | Middle | Right |
| _____________ | _____________ | _____________ |

I don't really know why tables aren't shown in the formatting help page, it would be pretty helpful.

1

u/ofnoaccount Feb 08 '13

Thank you for responding but I was referring to HTML tables. The wiki can use them as well. See the modnews post.

I was just trying to figure out if any of the more complex HTML tags could also be used--the markdown table formatting is kinda limited. So far I haven't had any luck but I haven't tried out all possibilities and variations.

2

u/gavin19 Feb 08 '13

You can just style the tables with CSS. Setting inline styles doesn't work the last I checked.

2

u/jaredcheeda Feb 08 '13

The only reason why HTML tables are available is for those that want to do colspan, rowspan, and valign. Everything else tables related can be done with Snoodown or CSS.

2

u/ofnoaccount Feb 08 '13

That's exactly what I was trying to figure out, thank you!

2

u/jaredcheeda Feb 08 '13 edited Feb 11 '13

this is the technique I use for editing stylesheets for reddit in chrome, it will probably help you out some knowing how it works.

http://www.youtube.com/watch?v=l-JB-RQ7IGY

http://www.youtube.com/watch?v=sdLxvD23uhY

1

u/ofnoaccount Feb 08 '13

I found that vid somewhere on this sub when I was first learning CSS last year. It was very helpful, thanks for making it!

Not sure why, but the live stylesheet edit thing isn't working for me anymore. I can't find the appropriate stylesheet under Sources or Resources..

2

u/jaredcheeda Feb 09 '13

Yeah, both Chrome AND Reddit have undergone some major changes since then. I should re-do the tutorial as it's pretty outdated now. The put an obnoxiously large annotation over the video linking to the new version of the tutorial.

For now though:

  1. Right-Click > Inspect Element

  2. Sources Tab

  3. www.redditstatic.com > subreddit-stylesheet > like-30-random-characters.css

  4. In a new tab go to:

  1. Highlight all the code and copy

  2. Replace all the code in the Sources tab with what you copied

This will break any image links since the content that is pasted in is using the stupid %%THISWASAPOORIDEA%%. However you will have the code in a readble format rather than compressed in to one line of text.

Another alternative is to Cut the compressed version of the CSS from the sources tab, past it in to the form at CleanCss.com, and set it to "Low (High Readability)", then click "Process CSS". Select what it gives you and copy/paste it back in to the Sources tab. This will be a clean way of seeing the code with the actual image filepaths.

1

u/ofnoaccount Feb 09 '13

Well, I'm glad I wasn't just being dense in finding it but that's certainly less convenient than it used t be. Still usable though, cheers!

I just tested FF with the Firebug add-on and that isn't working any better than Chrome.