How to make this?

Discussion in 'HTML & Website Design' started by Toon-c, Nov 8, 2009.

  1. #1
    Hi ..
    Do you know how to make shadows in the left and right side of a block?
    (without using images if possible?)

    example
    http://travel.yahoo.com/

    see the attached image,

    Thanks for answering ..
     

    Attached Files:

    • ex.jpg
      ex.jpg
      File size:
      55.6 KB
      Views:
      131
    Toon-c, Nov 8, 2009 IP
  2. themes4all

    themes4all Well-Known Member

    Messages:
    662
    Likes Received:
    47
    Best Answers:
    6
    Trophy Points:
    100
    #2
    hello
    You can make it as Background, then Adjuste your Whole Page content to center...

    goodluck!
     
    themes4all, Nov 8, 2009 IP
  3. mraza

    mraza Peon

    Messages:
    75
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    make two images and then include in your css file something like this:

    #bgright {position: absolute; width: 60; height: 100%; background-image:url('../images/bgright.jpg'); background-repeat:repeat-y;}
    #bgleft {position: absolute; width: 60; height: 100%; background-image:url('../images/bgleft.jpg'); background-repeat:repeat-y;}
    Code (markup):
    Regards
     
    mraza, Nov 8, 2009 IP
  4. Toon-c

    Toon-c Well-Known Member

    Messages:
    1,775
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    180
    #4
    I mentioned without using images clearly ..
    I want to use webkit box shadow if possible ..
     
    Toon-c, Nov 8, 2009 IP
  5. nitrox

    nitrox Peon

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    There's a jQuery plugin for that (Search google for 'jQuery shadow') , but it's very buggy, and it's hell if you try to make it work on all browsers (especially IE6 obviously), so I'd stick to images if I were you.
     
    nitrox, Nov 9, 2009 IP
  6. TSH-Nathan

    TSH-Nathan Greenhorn

    Messages:
    58
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #6
    Without using images, there is no way to guarantee it will be OK on all browsers, some people don't allow JavaScript.

    Whats the problem with using images? Any particular reason?
     
    TSH-Nathan, Nov 9, 2009 IP
  7. Deus Ex

    Deus Ex Peon

    Messages:
    531
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Yes, i'd go with the image option and get over it, unless you want to work with javascript and jquery. The issue is deprecation of code for older browsers.
     
    Deus Ex, Nov 9, 2009 IP