25 Feb 2011 by Minnie Spears
This post was really about blockquotes but since I used new CSS 3 features, I'm going to show the code for gradients and multiple background images. The blockquote was generated in the Chrome browser with CSS3.
1 Jun 2009 by The Cook
I am going to talk about a technique that uses the "background-position" property to shift an image to display different parts of it on the screen while hiding the rest of it. I have a file made up of four colored bars, each 30 pixels ...
31 May 2009 by The Cook
The background property is not a replacement for the <img> element; its purpose is to set the background image and color of an element. When an image is only used to style an element and make it look better than it makes ...
17 Mar 2012 by CSSBakery
background-color: #eeeeee; padding:25px 30px; font-family: tahoma, sans-serif; } The Markup is a paragraph enveloped in a div. We need the div to display the bitmap on the right padding. I did not start out with a bitmap.
12 Jul 2010 by The Cook
The outerwrapper div has a pink background with a thick black dashed border. You see very clearly how it wraps around our entire content with its bold border. For the most part its background color is being disguised by other ...
16 Aug 2012 by CSSBakery
... You can build your own sprite image in an image editor such as Adobe Photoshop or use this image which goes up to number 9; If you create your own image, compute the new offsets for the background-position property ...
14 Apr 2010 by The Cook
The profile uses the standard MySpace blue on white styling. We are going to change that using colors that match the Gryffindor House colors from the Harry Potter series by J.K. Rowling. The background image is a 90 pixel ...
30 Nov 2009 by The Cook
Just as a reminder, the bottom right edge of our frame has a flower bitmap which we set up using the background of container div. So yes, we are going to be rendering the two corners of our frame from two separate div's.
30 May 2011 by CSSBakery
The background position x value is negative at -600 pixels because we want to pull the image to the left. If it helps any, think of the negative x axis from school. You are pulling the parts of the image that you don't want into that ...
28 Nov 2010 by Minnie Spears
The resulting image is the same. What this technique really boils down to is using the png mask image as a background on a div, and then displaying that div directly over the top of the photo we want to make the cuts from.