Bite Size Standards - bitesTasty nuggets of web standards goodnessColoring text-decoration- January 27, 2007 Consider the following example: HTML <a href="http:bitesizestandards.combitescoloring-text-decoration">foo <span>bar<span> zoo<a> CSS a color:blue; text-decoration:underline; Question: How can the phrase &8216;bar&8217; and its text-decoration be changed to a different color In the past&8212;the days of font codes&8212;it was easy (example here, and unfortunately, it only works in IE). HTML <a...http://bitesizestandards.com/bites/coloring-text-decoration Centering an image, Part 2- January 6, 2007 In Part 1 of this article we explained that there are two techniques you can use to place an image within a block level element: Wrapping the IMG element in the block level element, within the markup; Setting up the background-image CSS property for the block level element. The technique you choose depends on your needs. In this article we will focus on centering a background image using CSS. We will use a 400x200 DIV and a 310x150 image as examples for this article. The DIV will..http://bitesizestandards.com/bites/centering-an-image-part-2 Centering an image, Part 1- January 3, 2007 There are two techniques for placing an image within a block level element: Wrapping the IMG element in the block level element within the markup; Setting up the background-image CSS property for the block level element. The technique you should choose depends upon your needs. We'll describe how to center an image both vertically and horizontally using the first technique in this article, and cover the second in a later article. Let's consider a 400x200 pixel DIV and a 310x150...http://bitesizestandards.com/bites/centering-an-image-part-1 |