On Apr 21, 2010, at 12:54 PM, Thierry Koblentz wrote: > Hi Rory, > >> regular CSS and background images. I now have 4 new divs, one for each >> corner image; each one has a little background image for the corners. >> So, that's working, but I wonder can anyone take a look at my revised >> code and tell me if there is an even cleaner way to do this? I am sad >> that I have these 4, non-semantic divs in there. >> >> Revised page is still here: >> http://rorybernstein.com/roundcorners/ > > The four corner technique is great for flexible layouts, but since yours has > a fixed width I think you could do this with just two nested containers. One > contains the top image, the other the bottom image. > Create a sprite that has both these images next to each other, that will > reduce the HTTP requests from 4 to 1. > -- > Regards, > Thierry > www.tjkdesign.com | www.ez-css.org | @thierrykoblentz
Sprites... had not thought of that. Thanks. ______________________________________________________________________ css-discuss [[email protected]] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
