Unobtrusive jQuery Popups

A technique for creating accessible popups using simple semantic HTML and unobtrusive jQuery code. Advantages Popup content is still accessible when JavaScript is disabled. Popup content is separate from main HTML document which makes adding new popups and linking from multiple pages simple. Easy to use. Doesn’t rely on special classes, IDs or inline JavaScript [...]

Expandable Content with jQuery and HTML5 Data Attribute

Using jQuery together with the new HTML5 data attribute and a bit of CSS you can create nice expandable / collapsible content items. This is useful for things such as lists of FAQ questions and answers in order to save space. HTML Structure: <div class="toggle-unit"> <h2 class="toggle-control" data-text="What is the answer?" data-expanded-text="You've found it!">What is [...]

Cross-browser CSS: Justified Block List

A cross-browser method using semantic markup and CSS to align list items horizontally and space them evenly so they are distributed across the full available width. Useful for laying out lists of thumbnail images or navigation links for example. Tested in IE6, IE7, IE8, FF, Safari, Chrome Fixed Width Content Using This Method: Variable Width [...]

Cross-browser CSS: Justify last line of text in a paragraph

Normally if you use CSS to justify text, the last line of text is aligned left rather than justified as on other lines. This is the desired behavior in most instances but for some layouts you may want to justify the last line as text as well. Following is a cross-browser method you can use [...]

Follow

Get every new post delivered to your Inbox.