Grow your CSS skills. Land your dream job.

Expandable box with dropshadow

  • # January 15, 2009 at 7:31 am

    Hi,

    I’ve skipped corners with this problems way too many times now, so here we go. I need a bulletproof method of creating a box with a dropshadow.

    Say the box has 10px dropshadow at all four sides. We need it to have an exandable height (possibly width as well?) plus I’m not sure which png fix would be best suited since we’re going to stretch a background.

    It could look like this:

    [img]http://lyf.dk/u/box-example.png[/img]

    How do you guys deal with this ever so annoying problem?

    # January 15, 2009 at 10:04 am

    I wrote a tutorial for this for Web Designer Wall a while back:
    http://www.webdesignerwall.com/tutorial … dable-box/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".