View Full Version : Best way to do this??

09-27-2008, 02:03 PM

I have this layout

I have a series of these boxes throughout my design, all the same width but in various heights with all different types of content, images, text flash etc.

Bearing in mind that this as a jpg is only 8kb do you think it would be bad to just create an image for each one I have as a whole or do you think I should be trying to use a more complicated method like described on some forums like a list a part.


How would you guys tackle these?

09-27-2008, 04:09 PM
Alistapart articles are usually pretty darn good. When I've made these I've been fortunate enough to have a set height, so it wasn't much of a problem.

09-27-2008, 04:21 PM
Dom would it be bad to just use the whole thing as a background image, and just use a different one for each size, I only have one different size on each page and about 7 pages.

With them being only 8kb it just seems like an hell of a lot of work and more HTML to do something more complicated. When I say different heights they are all fixed heights they won't stretch so I could just use the whole thing as a background image but I just feel like I'm cheating some how.

09-27-2008, 08:49 PM
Wouldn't be too bad I think, that's how I do it many times.

But for optimizing it would be less of a download to do it in CSS though.
Another advantage in doing it the ALA (alistapart) way is that it would be easier for you to add other custom sizes in the future. 8)

There's nothing wrong in just saving it as a background though.. it's basically up to you based on which one you think is most efficient.