you are viewing a single comment's thread.

view the rest of the comments →

[–]JasonCarswell 2 insightful - 2 fun2 insightful - 1 fun3 insightful - 2 fun -  (3 children)

From my understanding it all seems necessary to what you have showing. You could even get fancy and make it different colours, rounded corners, and potentially other good stuff.

[–][deleted]  (2 children)

[deleted]

    [–][deleted] 2 insightful - 2 fun2 insightful - 1 fun3 insightful - 2 fun -  (1 child)

    Thanks, but I've been playing around with CSS for half a decade, and Jason's probably been doing it for much longer. Your code is pretty decent; I looked through it once on s/politics so I could find an exploit to use headings (which was patched a few days later, to your credit, and was just a single, missing comma).

    Copying code is actually pretty normal, even for experienced developers. You can't memorize every, single feature of a language, and sometimes I mix up the various languages I know. Also, if you're working with a new module/package/whatever: you'll probably have to dig through documentation and copy a few lines of code to learn the basics.

    [–]JasonCarswell 2 insightful - 2 fun2 insightful - 1 fun3 insightful - 2 fun -  (0 children)

    I only used CSS with HTML over a decade ago and a bit for a couple years on SaidIt - both very different beasts. I'm no expert but hammered at it with tenacity though it hurts my brain.