Askthecssguy - askthecssguy.com - Ask the CSS Guy

Latest News:

Use of aria-describedby with form elements that have descriptor text 22 Jun 2012 | 04:21 am

If form fields have formatting help or descriptor information for the input, such as “Passwords must be 8 characters long”, one cannot assume that screen readers are reading that input by default. Wh...

Getting around the flicker of JavaScript modifying the DOM while the page is loading 19 May 2012 | 07:11 am

When building things with progressive enhancement, I often want the page styled a certain way when JavaScript is on vs off. When you use $(document).ready() in order to modify your page, you may end u...

CSS gradients and background images 24 Jun 2011 | 03:45 am

Let’s say you have a web page with a solid pale blue background color with a background image positioned on top of it. And this is the result: See example 1 HTML. Then you heard about CSS3 gradient...

Nudging elements with position: relative 21 Jun 2011 | 07:00 pm

I find that most people are familiar with using position: relative; on a containing element so that its descendent can be absolutely positioned relative to that element. So to get this effect: The po...

Waqas asks the CSS Guy how to specify an alternate font size if the preferred font isn’t available on the user’s system 5 Nov 2010 | 03:18 pm

Waqas writes: Is there any way to specify alternate font size? e.g. p { font: 11px Tahoma, Helvetica; } If Tahoma font is not available in machine, Helvetica will be used (if available) with size ...

Memphis AIGA Mini-conference 14 Oct 2010 | 04:17 pm

This saturday morning, October 16th, there is a local AIGA mini-conference on topics like designing for mobile, HTML5 and CSS3 (yours truly speaking), HTML frameworks, accessibility, and more. If you’...

Spinboxes Optimized for Touchscreen 19 Jul 2010 | 04:14 pm

So what’s a spinbox? A picture is worth a thousand words: Here’s the thousand word version (via): A spin box — sometimes called a spinner control — is a collective term for the combination of a text...

Review of CSS Mastery, Second Edition 22 Jan 2010 | 05:11 pm

I don’t read many technical books about web site development with CSS. I probably learned like many of you likely did: online articles, right click/view source, firebug, and a hell of a lot of trial a...

Monetizing your code 8 Jan 2010 | 05:10 pm

I’ve toyed with offering affiliate links to Theme Forest from this site in the past. But since the people who typically visit my site tend to design and markup their own, it didn’t seem worth it (and ...

A way we could potentially get around the fact that many web forms prevent plus signs in email addresses 17 Nov 2009 | 05:08 pm

Many of you are likely already familiar with the immensely useful feature of including plus signs (+) in Gmail addresses, such as the following: This would allow me to sign up for account at another ...

Recently parsed news:

Recent searches: