Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: [CSS] drop shadow

  1. #1
    Join Date
    Sep 2006
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Arrow [CSS] drop shadow

    1) CODE TITLE:
    CSS drop shadow

    2) AUTHOR NAME/NOTES:
    Justas Vinevicius

    3) DESCRIPTION:
    Technique to build flexible CSS drop shadows (realistic) applied to arbitrary block elements (no images).

    4) URL TO CODE:
    CSS drop shadow

  2. #2
    Join Date
    Sep 2005
    Posts
    882
    Thanks
    0
    Thanked 3 Times in 3 Posts

  3. #3
    Join Date
    Nov 2006
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by justas View Post
    1) CODE TITLE:
    CSS drop shadow

    2) AUTHOR NAME/NOTES:
    Justas Vinevicius

    3) DESCRIPTION:
    Technique to build flexible CSS drop shadows (realistic) applied to arbitrary block elements (no images).

    4) URL TO CODE:
    CSS drop shadow
    very cool.

  4. #4
    Join Date
    Sep 2006
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Arrow

    If you will study these 2 examples you will see that they differ a bit.

  5. #5
    Join Date
    Nov 2006
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    the first one looks better in my opinion. But is it really worth the extra markup to achieve this? Why *not* just use a bg image?

  6. #6
    Join Date
    Sep 2006
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Arrow

    Quote Originally Posted by chovy View Post
    the first one looks better in my opinion. But is it really worth the extra markup to achieve this? Why *not* just use a bg image?
    There can be many opinions about this, but i think that 1 request (more markup no image) to the server is better that 2 (less markup 1 image).

  7. #7
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I like it, works in Opera and, that's saying something. However, in Opera, if these objects also were able to move and/or resize dynamically via script, there would most likely be unwanted trail effects. This is just a fact of life in Opera and nothing to do with your css code.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  8. #8
    Join Date
    Nov 2006
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by justas View Post
    There can be many opinions about this, but i think that 1 request (more markup no image) to the server is better that 2 (less markup 1 image).
    on a high-traffic site i would think not. and the point of using css is to make redesigns easier...in this case, you're putting design *back* into the markup, which should certainly be avoided.

  9. #9
    Join Date
    Sep 2006
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Well everyone can make their choice, what to use. I just show what you can do with css, thats it.

  10. #10
    Join Date
    Mar 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Justas,

    I noticed that your drop shadow (which looks good btw) does not work properly on IE7. For some reason IE7 insists on dropping the third shadow box below the image...is this an IE7 bug or is there some kind of IE7 specific addition to make to the CSS? I played around with it for at least an hour and couldn't figure it out....

    thx, grizzy

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •