Quantcast
Browsing all 38 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Making elements keyboard focusable and clickable

When you want to make an element on a web page clickable in order to trigger a JavaScript function, the best option is to use an element that has native support for keyboard interaction. In most cases...

View Article


Image may be NSFW.
Clik here to view.

Fieldset, legend, border-radius and box-shadow

The fieldset and legend elements are notorious for being tricky to style, especially if you want the same result across browsers. Other than the line wrapping issue I wrote about in How to line wrap...

View Article


Image may be NSFW.
Clik here to view.

How to shrinkwrap and center elements horizontally

When you use CSS to float an element that does not have an explicit width, the element’s width becomes its “shrink-to-fit” width. This is useful when you’re floating elements that you don’t know how...

View Article

Image may be NSFW.
Clik here to view.

Letting users disable responsive layout

It’s great that media queries allow us to adapt the layout of our sites to the users’ viewport size, a.k.a. Responsive Web Design. However, some argue that doing so comes with a (slight) risk of...

View Article

Image may be NSFW.
Clik here to view.

Responsive drop shadows

Back in the ancient days of fixed-width web design, adding a drop shadow to an element used to be a matter of exporting an image containing the shadow from Photoshop and placing it as a background...

View Article


Image may be NSFW.
Clik here to view.

Conditional sibling class names for IE patching

Traditionally, web developers have been using either CSS hacks or conditional comments to target different versions of Internet Explorer with CSS fixes. In the last few years more and more people have...

View Article

Image may be NSFW.
Clik here to view.

Using a transparent image as an icon fallback

Sometimes designs contain button styling that is difficult to create with CSS alone. The “official” way of dealing with this is to either use an image button (<input type="image" src="button.png"...

View Article

Image may be NSFW.
Clik here to view.

Replacing images when printing

It isn’t all that uncommon that, after you’ve polished your print stylesheet to make a site look well on paper as well as on screen, you realise that the logo really doesn’t look its best. It may look...

View Article


Image may be NSFW.
Clik here to view.

Firefox and the magical text-overflow:ellipsis z-index

A while ago I received a strange bug report for a site I’d been working on. The report mentioned dots appearing on top of a dropdown menu when it was expanded. I had a look in Safari, could not see any...

View Article


Image may be NSFW.
Clik here to view.

How to proportionally scale images that have dimension attributes

Allowing images to scale along with their container is an important part of responsive web design (and was so even before the term “responsive web design” existed). It’s really quite easy – all you...

View Article

Image may be NSFW.
Clik here to view.

Height in percent when parent has min-height and no height

When trying to force an element to always extend to the height of its parent I ran into some peculiar browser behaviour that I thought was worth mentioning. Here’s the situation:The parent element has...

View Article

Image may be NSFW.
Clik here to view.

Responsive scrollable tables

Over six years ago I wrote a short post about preventing HTML tables from becoming too wide. The solutions I offered in that post involve using table-layout:fixed to lock down the width of tables....

View Article

Image may be NSFW.
Clik here to view.

Full-width justified vertically centered navbar

In a couple of recent projects I’ve faced designs where the main navigation bar gave me more trouble than usual. These are the prerequisites that make the problem tricky to solve:The navbar is...

View Article


Image may be NSFW.
Clik here to view.

Cutting down on vendor prefixes

Most web developers currently use vendor prefixes in CSS to enable certain features in some browsers. That’s fine, but sometimes I see code examples and prefix-adding tools that go a bit overboard with...

View Article

Image may be NSFW.
Clik here to view.

Why I don’t use CSS preprocessors

Whenever I mention that I don’t use CSS preprocessors I tend to get strange looks from people who cannot imagine writing CSS without Sass. And so I have to defend my choice and explain why, over and...

View Article


Image may be NSFW.
Clik here to view.

Linting CSS with stylelint

I like to keep my CSS tidy and consistently formatted. One of the tools I use to help with that is stylelint. If anyone’s curious, this post explains how I configure it.Read full postPosted in...

View Article

Image may be NSFW.
Clik here to view.

Hiding inline SVG icons from screen readers

Icon fonts are finally being phased out in favour of a technology that’s more fit for purpose: SVG. There are many tutorials and guides that describe different ways in which you can use SVG icons,...

View Article


Tabletki na Powiększanie Penisa - Ranking Produktów 2022

W minionych latach przekonanie do tematu prawidłowego odżywiania bardzo często się zmieniało. Na Starym Kontynencie wraz z początkiem dwudziestego pierwszego wieku naprawdę kultowe stały się...

View Article
Browsing all 38 articles
Browse latest View live