Archive for the ‘CSS’ Category

When Does 3 = 6?

Sunday, October 29th, 2006

In the old days, we had the following:

background-color: #cdf;

The new days require six hex characters, not three. The new conversion is:

background-color: #ccddff;

In the three-hex representation, duplicate each hex character to create six-hex.

Doug

Nice CSS Tip on img Tag

Sunday, October 29th, 2006

Sometimes you get so caught up in the details of web development that the obvious is not so obvious. I added

img { border: none; }

to the main CSS include of a website I’m working on. Now I can remove all the style=border:0 embeds in the img tag.

Doug