How is this done ?

Discussion in 'HTML & Website Design' started by oo7ml, Nov 3, 2007.

  1. #1
    How do you create the stretched faded out image effect on a site.

    Please see http://www.eskerhills.ie/ for example

    How is the grey image created on the top of the site that stretches across the whole width of the page
     
    oo7ml, Nov 3, 2007 IP
  2. Divisive Cottonwood

    Divisive Cottonwood Peon

    Messages:
    1,674
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I don't see it :confused:
     
    Divisive Cottonwood, Nov 3, 2007 IP
  3. ajsa52

    ajsa52 Well-Known Member

    Messages:
    3,426
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    160
    #3
    You need an image (.gif or .jpg is fine) made with your favorite editor this way:
    width: 1 pixel (or more)
    height: You choose (800 is ok)
    Fill that image with a gradient (foreground to background for example).

    Use that image on your html. Example (CSS):
    body { background: #FFFFFF url(./your_image_800.jpg) repeat-x; }
     
    ajsa52, Nov 3, 2007 IP
  4. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #4
    they took this image:
    http://www.eskerhills.ie/assets/bkg002.gif

    and put it on their body in CSS thus:

    body {
    background:url(assets/bkg002.gif) top left repeat-x;
    }

    Which tiles that tiny stripe of an image across the top of the page.
     
    deathshadow, Nov 3, 2007 IP