centered gap in navigation
See the Pen centered gap in navigation by Martin Blase (@mblase75) on CodePen. A site I recently built had a relatively unique design: the top navbar was split into two, with the logo was centered in...
View ArticleContrasting text against backgrounds
I love pure CSS solutions to complex design problems. Methods for Contrasting Text Against Backgrounds
View ArticleCSS: text over an angled gray background
This was an interesting little problem to solve: How do we make a column of text display on top of an angled background color? Better yet, how do we cut a corner out of the text to make it fit better?...
View Article3D CSS crop rows
In the spirit of New Earth USA, here’s some minimalist crop rows in 3D CSS. See the Pen minimalist css crop rows by Martin Blase (@mblase75) on CodePen. Let’s look at how this is built. To start,...
View ArticleNew site: Impact Networking
Seems I forgot to add this one. My own employer, Impact Networking, recently redesigned its site, giving me the opportunity to finally drag its code into the modern age. Responsive design. Pure CSS...
View ArticleChristmas fun with 3D CSS and JavaScript
Only suitable for modern browsers, naturally. See the Pen Christmas tree customizer by Martin Blase (@mblase75) on CodePen.
View ArticleCSS 3D playground
Of course, you have to start with the traditional spinning cube. It’s practically the “Hello World!” of 3D animation: See the Pen CSS 3d spinning cube by Martin Blase (@mblase75) on CodePen. That’s the...
View ArticleFoundation 6, Drupal 8
Must be something about November: two major webdev updates have been released on the same day. Foundation 6 Drupal 8
View ArticleFun with CSS
A couple of pure (mostly) CSS widgets/toys I came up with as part of an actual project today. The first is a tooltip popup, triggered on hover (or, using a few lines of JS, on touch): See the Pen pure...
View ArticleA complete guide to flexbox
I was overjoyed when I saw that the latest versions of Safari for both OS X and iOS did away with the need to use -webkit- prefixes in CSS animations and flexbox. I’m still including them for the time...
View Articleforce browsers to print background colors of elements
Most browsers won’t print background colors, and print-only CSS can (or should) be set to force all text to be black so it looks good on a white background. But what about images? What if you have a...
View ArticleNew site: Optima Realty
The new Optima site has been a long time coming, mainly because it’s one of the largest sites we’re responsible for. Optima is actually one of the first sites I worked on when I joined this company...
View ArticleUsing CSS to “count” elements in a group
A List Apart has an article today about how you can use CSS selectors creatively to “count” the number of elements inside another element. This would be useful if, for instance, you wanted to style...
View ArticleParallax done “right”
I put “right” in quotes because, well, I’m opposed to gimmicky animations in web pages on principle. However, if you have to use them, they should be done efficiently. To that end, I found this article...
View ArticleResponsive images in practice
I’ve mentioned responsive images before, but this article from A List Apart does an excellent job of going over all the techniques available today, what they do, and when you should use them.
View ArticleBroken images? Show a placeholder instead
In my recent employee directory app, I had an interesting problem with personnel photos: not everybody had one. Those who did had them stored in a single directory as “{{employee.id}}.jpg”, so it was...
View Articlenew Angular app: employee directory
All programming is a learning experience. Case in point: I recently spent about three weeks working independently on updating an insurance client’s web app from PHP to AngularJS, only to be told after...
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 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 Article