-
Recent Posts
Archives
- June 2011
- November 2010
- October 2010
- July 2010
- January 2010
- November 2009
- August 2009
- June 2009
- March 2009
- January 2009
- October 2008
- September 2008
- August 2008
- July 2008
- April 2008
- March 2008
- December 2007
- November 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
Meta
Monthly Archives: June 2011
CSS gradients and background images
Let’s say you have a web page with a solid pale blue background color with a background image positioned on top of it. body { background: #a5c9e5 url(img.png) no-repeat 50% 300px; } And this is the result: See example 1 … Continue reading
Nudging elements with position: relative
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 positioning rules would look something like this: … Continue reading