Quantcast
Browsing all 29 articles
Browse latest View live

jQuery unwrapInner()

Update: Well, I made a nice post about extending jQuery with an unwrapInner function, but I discovered that the same thing can be done by using jQuery's replaceWith() function... Starting with this...

View Article


CSS-Tricks Organization

If you follow me on Github, you may notice that some of my repositories are now missing... Well, I moved them over to the CSS-Tricks Organization repositories. I thought it would make it easier for...

View Article


Using Google Closure Compiler to write better code

So I ran into a bit of code that I wrote a while back. I thought could be written a lot more efficiently. So I thought, hey Google's Closure Compiler is good at that stuff right? Let see what...

View Article

More fun with the base tag!

I have a post from a few years ago about using the base tag for debugging. Well I just figured out an even cooler way to use it in jsFiddle demos!I have a base jsFiddle demo for just about every plugin...

View Article

Regex Replacement String Math

I needed a simple method to do math within a regex replacement. Basically, a simple way for someone using a plugin to choose between a zero or one based index.Yes, I could have just added an additional...

View Article


Add Anchors to jQuery UI Accordion Headers

If you want jQuery UI's accordion (version 1.10.0+) to be able to open the desired section based on the window hash, you are stuck with using a hash that looks something like this...

View Article

Methods to add multi-line CSS content

I'm sure most of you know that you can add content before or after an element using css; And you can add a line break within that content (spec):HTML <div id="test1">Hello World</div>CSS...

View Article

Convert RGB(A) output to Hex Color

Update from my Convert jQuery RGB output to Hex Color Post Modern browsers will soon support four and eight-digit hex colors, which means you now include an alpha channel with your color. As you can...

View Article


Git untag

If you've ever forgotten to rebase your local repository before pushing a tagged commit to master git push --tags origin master you'll know the pain of having the push rejected with the tag still...

View Article

Browsing all 29 articles
Browse latest View live