|
Starhugger -> How do they do this? (2/10/2008 23:55:29)
|
I'm blaming Caz for encouraging me to create CSS templates for my site, when I should be doing other things. [;)] In the process of looking for inspiration and wisdom, I was browsing through CSS Zen Garden and saw a theme that has sections with graduated colour from top to bottom. Each section seems to have a repeating background that uses a slivered GIF slice that is repeated x-wise. The GIF has the graduation of colour. Fine. No problem. The mystery is that when I increase or decrease the font size, making each section longer or shorter, vertically, the graduation of colour also stretches and contracts with it -- consistently! So how does a fixed length graphic get stretched when the font increases? (I isolated the graphic with small fonts and large ones, and the background graphic is the same.) I'm using Firefox, which can adjust the font size for virtually any web page (except Flash). Could it be something that done in Firefox itself? Usually, when I adjust the font size against fixed-size backgrounds, the fonts will just overflow the visual container, so this really surprised me. I looked at it in IE7 and it doesn't have the kind of font definition that IE7 knows how to adjust, so I can't really test it there. I'm just very curious how they do that (or what is doing that). Here's the link to the page. Maybe someone else can figure out what kind of smoke and mirrors are being used. Starhugger
|
|
|
|