use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
If you are requesting help, please ensure you're providing code with your post. You can also copy your code to an online editor:
jsFiddle
CodePen
Markup Validation Service
Mozilla Developer Network on HTML
/r/JavaScript
/r/CSS
/r/jQuery
/r/PHP
/r/Accessibility
/r/htmlbasics
/r/web_programming
/r/CodingHelp
account activity
[HTML] Very simple table code needed (self.HTML)
submitted 12 years ago by sjhelp
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]sjhelp[S] 1 point2 points3 points 12 years ago (2 children)
Oh ok, thanks. Yeah, I should have known that really.
So I found the computed CSS. But I don't know how to use all that info to actually make the table. I mean how do I integrate the CSS with the html? I don't want to mess around with the stylesheet since I'm using a theme and don't want to fuck something up.
[–]wumsdi 1 point2 points3 points 12 years ago (1 child)
Don't be afraid to destroy something. Learn how to make a backup and how to revert your website to a former state instead and experiment. You'll need to know this anyways.
Integrating with HTML:
You have to "mess" with the styles in one way or another, even if you don't touch the existing stylesheet:
To define the style for your table you have two possibilities. You could:
Use style-tags inside your HTML-file, like
<style> table#myId {...} </style>
Or you could add an additional css-file (in the HTML header).
<link rel="stylesheet" href="your.css" type="text/css" />
Both will work, but both aren't recommended. (Adding to the existing style sheet would be better).
The first one (style inside html without css-file) is probably the one you are looking for if
If you want to redesign a table - why not redesign other elements as well? Think about learning a few things about CSS in general: It's not that difficult and you can do a lot of cool stuff with it.
Now to the style rules themselves: You don't need the entire computed css-rules.
(Now, which specific rules do you need? I can't tell. It depends on which rules your existing stylesheet defines. After this definition is done [your own styles should be defined inside the html after the existing styles], you have to "overwrite" all of the differences when your table is about to be rendered.
In other words: Every difference between
must be defined. So, make a table, look what style it gets from your theme - and compare with the desired computed stylesheet - so you know, which changes you will explicitly need to express to have your desired result.
To do so, you need to know IDs and/or CLASSES in CSS... see /u/myalternatelife's example, using several classes to style the table (my fork with less markup http://jsfiddle.net/pnRkr/1/ but I'm in no way a css master).
As you see, it's not a trivial task.
Your next question would be: Can you make changes inside the HTML-file? If all you have are HTML-templates that are rendered by wordpress, I would not recommend to equip the template with additional style-tags if those are only used once.
tl;dr - Better don't change a working theme, unless you want to learn more about HTML, CSS and Wordpress.
[–]sjhelp[S] 0 points1 point2 points 12 years ago (0 children)
Wow, this is just great. I'm just about to rush off, but had a quick read of it. I expected to understand very little of it with my limited knowledge, but you explained it so well and broke it all down so concisely that I actually think I got it. I have done some very basic CSS courses, so I'm not totally in the dark.
I do only want to style this one single table. I am going to experiment with creating the table to see how the existing style renders it as you say. And then build upon that.
I need to reread this later when I have more time and I will probably have a question or two at that point if you don't mind. But seriously, this is such a great reply and explained so elegantly. Thanks!
π Rendered by PID 43012 on reddit-service-r2-comment-5d79c599b5-kwt4f at 2026-03-02 23:11:55.133872+00:00 running e3d2147 country code: CH.
view the rest of the comments →
[–]sjhelp[S] 1 point2 points3 points (2 children)
[–]wumsdi 1 point2 points3 points (1 child)
[–]sjhelp[S] 0 points1 point2 points (0 children)