background ends after pressing enter a bunch of times in Microsoft Web Exp 3.

Discussion in 'CSS' started by IanT, Feb 9, 2010.

  1. #1
    Hello, I am having some confusion..

    I made my first website a while back and want to update it with more content, (Im using Web Expression 3 to make it) and as I press enter to add more content, I notice that the background stops after a while, and just goes into white space. I can keep pressing enter and the paragraph divider will go down, but there will not be any background image...

    on the site I JUST made (the 2nd one Ive made) I notice that when I press enter a bunch of times, the page just continues to grow, the background stays...everything stays the same, the page just gets longer.

    I tried to change the css document on page1-the first site from backgroundrepeat: repeat-x to just backgrounrepeat: repeat and it didnt do anything... on site 2 so I am stumped... what is different between site 1 and 2 that allows me to keep pressing enter and make the page grow longer???



    Thanks for the help!
     
    IanT, Feb 9, 2010 IP
  2. Clive

    Clive Web Developer

    Messages:
    4,507
    Likes Received:
    297
    Best Answers:
    0
    Trophy Points:
    250
    #2
    You should use "repeat-y" for the image to repeat vertically.
    Make sure you aren't overriding this further down with a duplicate definition of the body background properties.

    Something like this should do it all:
    body {
    .....
    background: #ffffff url(images/background.png) repeat-y;
    .....
    }
    Code (markup):
     
    Clive, Feb 18, 2010 IP
  3. IanT

    IanT Well-Known Member

    Messages:
    503
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    130
    #3
    sweet thanks!! :)
     
    IanT, Feb 18, 2010 IP
  4. Benjelliott

    Benjelliott Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You can also put position:fixed for CSS, and it will make the image scroll with the content.
     
    Benjelliott, Feb 18, 2010 IP