I’m trying to get a background for some text that is dual-tone, or the top half is one color and the bottom half is another. I have attached a link to a picture of what this should look like. Any ideas on how I can achieve this? Thanks, in advance, for the help!
Michael
Three ways come to mind:
One: Most Cross Browser (CSS1): Make a
1pxwide image of the two colors, probably about 30px tall for each color, thenand set the
Two: Less friendly to older browsers (CSS2): Same
spanwrapper as above but with this css (see fiddle).Three: Sleek, but only for newer browsers (CSS3): Same
spancode as #1 (see fiddle).