Skip to content

SiteKickr Web Development

search
search
Mar29CSS, Style & Presentation, HTML

Clean up paragraph margins with CSS

p { margin: 0; } p + p { margin-top: 1em; } This simple CSS trick will cause only the 2nd and following paragraphs to…

Mar24March 24, 2011CSS, Style & Presentation, JavaScript

Expand / Collapse with jQuery – Part II

Since my first post on the subject, I was introduced to a jQuery method called nextUntil(). I didn't realize the possibilities with this method until…

Mar23CSS, Style & Presentation, JavaScript

IE Google Maps Operation Aborted

If you are one of the unlucky ones to receive an Operation Aborted message in Internet Explorer after attempting to embed a Google Map via…

Mar22April 7, 2011CSS, Style & Presentation, JavaScript

Replace submit buttons with a spinner on click

This has the dual purpose of letting the user know that the website is "processing", while not allowing them to click the submit button twice.…

Mar18March 18, 2011CSS, Style & Presentation, JavaScript

jQuery superscript register marks “on-the-fly”

The script below assumes that the content area of your site is wrapped in a div tag with an id of content. The first portion…

Feb27February 27, 2011CSS, Style & Presentation, HTML

Two column list – the elegant way

If you have two individual lists, instead of stacking them, you'll be able reduce scrolling by placing them side-by-side. The example below demonstrates one elegant…

Feb18February 18, 2011CSS, Style & Presentation, One-Liner

Remove indenting on UL and OL tags

ol { margin: 0; padding: 0; list-style-position: inside; } By default, most browsers indent list elements from the left margin. The magic above is the…

Add content type icons to your links on the fly
Feb18CSS, Style & Presentation, JavaScript

Add content type icons to your links on the fly

Of course, there are simple and tedious ways to do this, such as: HTML <a href="test.pdf" class="pdf">Download PDF</a> CSS .pdf { background: url('/src/img/icon-pdf.png') no-repeat; padding-left:…

Feb16February 16, 2011CSS, Style & Presentation, One-Liner

Eliminate page centering “jumps”

body { overflow-y: scroll; } How annoying is it when you link from a "short" page to a "long" page and the vertical scrollbar "jumps"…

Feb15June 8, 2011CSS, Style & Presentation, One-Liner

Registered (®) and Trade (™) marks / superscript line spacing

sup { position: relative; height: 0; bottom: 1ex; line-height: 1em;       vertical-align: baseline; _vertical-align: bottom; /* ie6 hack */ } If you want to adjust…

Posts navigation

Previous 1 … 5 6 7 Next
© 2025 SiteKickr