CSS3 opacity gradient?

I am looking to create an effect like this, but my website has a dynamic background-color. Note that this example uses a white overlay, which does not work with different backgrounds. What I was hoping to do was to set up a CSS opacity gradient. This sort of works, but the code is too messy. … Read more

console.log showing contents of array object

console.log does not produce any message box. I don’t think it is available in any version of IE (nor Firefox) without the addition of firebug or some equivalent. It is however available in Safari and Chrome. Since you mention Chrome I’ll use that for my example. You’ll need to open your window and its developer … Read more

Return a `struct` from a function in C

You can return a structure from a function (or use the = operator) without any problems. It’s a well-defined part of the language. The only problem with struct b = a is that you didn’t provide a complete type. struct MyObj b = a will work just fine. You can pass structures to functions as … Read more

Categories C Tags