Floating (Zombie) Bullets

If you ever float an image or other element left and wrap text around it, most text wraps fine, however, if you use an ordered or unordered list you’ll find the bullets/numbers aren’t indented the way you’d expect. Often the text is aligned with the other text e.g. paragraphs above and below it and the... Read More

Cursor(ing) the Apocalypse

You can change the cursor icon using the cursor property. Be careful when you do this as it can cause confusion , accessibility, zombification and/or user problems if you use it too often, but, every once in a while, changing the type of cursor someone sees e.g. a resize cursor on something you’ve made resizable... Read More

Usability over Beauty

Though it pains me to say it, in most cases usability should trump beauty (except in zombies, ugly trumps everything for zombies). That doesn’t mean ugly sites are the most usable, far from it. A site can be usable without being ugly and a site can be ugly without being usable, but if you ever... Read More

CSS and SVG Transforms

Like an equal caliber measured in mm vs one measured in inches, CSS transforms and SVG transforms are the same. They do the same thing. Work the same way. And you can continue or modify a transform from the SVG in your css. However, their syntax is slightly different e.g. SVG transforms use commas to... Read More

Contrasting Zombies

Get your color contrast correct. Dark text on a dark background, light text on a light background, middle text on a middle background, zombie text on a zombie background; all of these make distinguishing between letterforms much harder for the site visitor, let alone hit the zombie with the full force of a font. Adding... Read More

Safari Safari Duplicating Content Content

There is one egregious issue when using column-span in Safari. It sometimes duplicates the content above and below the span, so a paragraph or heading that exists in the code after the spanning element may appear both above and below the spanning element. Honestly, sometimes I think the browser makers want the zombies to win!... Read More

The Negatives of Subtracting

When using CSS’s calc() function, particularly when subtracting, be sure to put spaces around your hyphen. If you don’t the browser could interpret the subtraction sign as a negative sign (negative 5 pixels instead of minus 5 pixels) and the results may be different than expected or the browser, like a zombie who swallowed the... Read More

Full Width Elements

If you have an image or other piece of content that you want to be the full width of the browser window, even if its parent is smaller than that, you can use these three properties to make it happen. I’m not certain where I first saw this trick, but I believe it was on... Read More

Attribute Selectors and Performance

Use attribute selectors sparingly as they, like zombies hanging onto your car, can slow down your site if you have too many of them. Also if a narrower search function will find the element you’re looking for, use that over a wider search function as it should resolve more quickly.... Read More

Zombie Index Inflation

Z-index should have reasonable numbers not so many 0’s that you’re sure it’s above the last one (that’s like sending a horde to check someone’s height). That said, leave some space. Don’t number by 1’s, number by 5’s, 10’s, or even 100’s so that if you ever have to stick something in between you don’t... Read More

Underlined Cheating

Just like zombies and death, you can cheat a link’s underline and have more control over it using a border bottom instead of the default underline. In this way you can change colors, add thickness, make them dashed etc. though you’ll miss out on text-decoration-style: wavy;... Read More

CSS Clamp Function

Clamp() – a CSS function for keeping a value between two extremes. The value won’t go above the max value and won’t go below the min value. This is particularly great for responsive design and font sizes. You can set the font-size in vw units so that it scales seamlessly as the page’s size changes. However,... Read More

Container Queries

Container queries let you change a component’s look and feel based upon the size of the container. So if the component is in a small space, it will show one way and if it’s in a larger space it’ll show a different way. They’re just like media queries except they work based on the size... Read More

Shorthand Gotcha

Shorthand properties overwrite any value that isn’t set in the shorthand. For instance, if I set a background-image and then use background: no-repeat to prevent the image from tiling you’ve actually canceled the background image because the background short hand reset it to its default value.... Read More

Outline Property

Outline works similarly to border, but doesn’t contribute to width. It can be used to highlight an element during debugging without affecting your layout in any way. It also appears outside the border and thus can be used to highlight items that already have a border.  ... Read More

Break Points And Design

When creating a responsive design don’t base your break points on hardware unless your site will be used under very, very specific hardware requirements. Otherwise it’ll be a never ending game of whack-a-screen. Instead place your break points based on the content and design of your site. This will ensure that everyone gets the best... Read More

Embedded vs. External vs. Inline Styles

99 times out of 100 external stylesheets are the way to go, but embedded sheets come in handy if you don’t have access to the site’s main styles or if you need to make specific changes to one page that you don’t want to make everywhere. Inline styles should be avoided as much as possible... Read More