For the A-Z Directory module, I wanted a sensible and aesthetically pleasing approach to displaying contact images. Without knowing the width and height dimensions of the images people would be using for their contact images, I looked to the object-fit CSS property to avoid squashing and stretching the images. Object-fit has great support in modern browsers except for Edge.
Continue readingEdge object-fit Fallback without a Polyfill or ModernizrCategory Archives: HTML/CSS
Animated Gradients
I wanted to add a little spice to the hover states of my navigation and found a nice technique to animate a gradient, giving the impression that a background color will fill from left to right.
Continue readingAnimated GradientsSmoother iOS Vertical Scrolling
Working on an off-canvas navigation technique wherein the navigation would cover the entire viewport, I set overflow-y: scroll on the containing div. While this provided the ability to scroll down long navigation lists on touch devices, it was not a fluid interaction. This can be made fluid by adding the -webkit-overflow-scrolling: touch style declaration to […]
Continue readingSmoother iOS Vertical ScrollingLigatures in Web Fonts
Being a developer, I had no idea what a ligature was. A ligature is a way of combining glyphs to produce more harmonized forms, typically involving the combination of lowercase “f” with another letter, such as the combined “fi”:
Continue readingLigatures in Web FontsText-align: Justify and RWD
Since reading this article, I find that I’m using this technique all the time. Thank you, Patrick. http://www.barrelny.com/blog/text-align-justify-and-rwd/
Continue readingText-align: Justify and RWD