Getting the last item in an odd-numbered list
In a responsive web page design I was concocting today, I realized a problem with this approach: .subgroup { width: 50%; float: left; } .subgroup:nth-child(odd) { clear: left; } The idea was to arrange...
View ArticleComplete Equity Markets Insurance
This site was a long time getting deployed, but it’s live as of this week. This company sells legal insurance to legal and other professionals, and they wanted both a facelift for their old site and a...
View ArticlePascal Studio
The sequel to Pascal pour Elle, this is a new salon by the same owner opening in Chicago’s Bucktown neighborhood. The site is (currently) pretty minimal, serving as more of a brochure than a source of...
View Articledrop shadow below only
Lazy way: just make the element wider…. h2 { box-shadow: 0px 15px 20px rgba(0,0,0,0.4); position: relative; left: -5%; padding: 0.5% 6%; width: 98%; } http://jsfiddle.net/mblase75/h4NB5/
View ArticleFirst Class Fence
After much work back and forth, First Class Fence finally went live this week.This site uses the HTML5 Boilerplate, with frequent use of Modernizr tests and image replacement – in this case, to avoid...
View ArticleInline defintion lists
I’m a big fan of semantic HTML. When content describes a list of things, a developer should use a <ul>. Even if you don’t want it to be a bulleted list, or maybe want the elements to all be on a...
View ArticleTwo-column definition lists
In the spirit of completeness, here’s a second popular (at least for me) way to use definition lists: to create a simple two-column table. This approach has some advantages over using actual HTML...
View ArticleRespond.js
How did I never know about this before? Respond.js is “a fast & lightweight polyfill for min/max-width CSS3 Media Queries (for IE 6-8, and more).” In other words, it makes HTML5Boilerplate even...
View ArticleSemi-sticky page footer
Often, our site designer wants a web page footer that’s glued to the bottom of the page. I don’t mean position:fixed — it needs to be something that appears at the very bottom of the HTML document,...
View ArticleMobile web development: links of the week
Not that I’m posting these weekly, but…. Maximiliano Firtman has a thorough article on the known issues web developers have to deal with in iOS 7. Colt McAnlis writes about the importance of monitoring...
View ArticleVasilko Architects
This is a fairly basic site content-wise, but it’s the first client site we’ve built on the Bootstrap 3 framework — extensively customized, of course, and fairly heavily optimized. jQuery provides...
View ArticleManipulating :before and :after content via JavaScript
When someone asks how they can use JavaScript to change the content of :before and :after CSS pseudo-classes, the usual answer is, “You can’t.” Since those CSS pseudo-classes aren’t part of the DOM,...
View Articlefloating input labels
A neat trick I wanted to bookmark-slash-promote: in addition to pseudo-placeholder text on the input field, it slides down to the edge when the user is actually typing rather than disappearing...
View ArticleStonegate Venture Partners
Stonegate Venture Partners A new partner site to Stonegate Advisors, this one not only uses the same design, it shares 98% of the CSS. The only big change was the conversion of the news articles from...
View ArticleBootstrap 3.2.0 and jQuery UI 1.11.0 released
The latest point update adds new responsive utility classes and responsive embeds for video, along with other minor changes. The jQuery team also released a point update to jQuery UI, adding (among...
View Articlecentering a perfectly circular frame
A StackOverflow visitor asked if it was possible to frame his webpages in a perfectly circular frame, which would resize to fill the browser window but not spill over the edges. It was a curious...
View ArticleRebuilt site: Pascal pour Elle
One of the first sites I built when joining my current employer about three years ago was Pascal pour Elle, a salon whose website needed a makeover and HTML5 update. Recently, the client wanted a full...
View ArticlePure CSS parallax scrolling
Seen on reddit this morning: Pure CSS parallax scrolling websites I always suspected this was possible, but never had a reason to work on it. Well done.
View Articletwo-column form labels and inputs
The usual technique to maintain a two-column form (labels on the left, inputs on the right) is to put the input after the label, fix the width of both elements, and float them to the left. This works...
View ArticleCSS-styled strikethrough
The CSS specification lets you specify line-through as a property on a text element, but it doesn’t give you much control over it. Unlike CSS borders, you can’t control the color (except in Firefox)...
View Article