Articles by

Geoff Graham

Read, write, coffee, web, repeat.

Direct link to the article HTML vs Body in CSS

HTML vs Body in CSS

The difference between <html></html> and <body></body> is easy to overlook. It seems to be one of those things that falls into the category of trivial. Admittedly, I have a bad habit of applying all global styles to <body></body> and, when …

(Updated on )
Direct link to the article Override Gmail’s Mobile Optimized Emails

Override Gmail’s Mobile Optimized Emails

Many emails are designed with a large screen in mind. Text that looks great on a large screen can be difficult to read on a mobile device, though. If Gmail deems that the font-size of any text in an email is too small to be legible, it will increase the size and flag the message. That’s pretty nice. What could have been illegible is made legible, eliminating the need to pinch and zoom our screens. It can also be a little frustrating.
(Updated on )
Direct link to the article About

About

Sorry about the cheesy name.

CSS-Tricks launched July 4th, 2007. It used to be, believe it or not, primarily about CSS! Over the years, CSS-Tricks has come to become a site about all things web design and development.…

(Updated on )
Direct link to the article background-repeat

background-repeat

If a background-image property is specified, the background-repeat property in CSS defines if (and how) it will repeat.

html {
  background-image: url(logo.png);
  background-repeat: repeat-x; 
}
Values

The background-repeat property accepts the following values:

/* Single value syntax */
background-repeat: repeat; 
(Updated on )