M
michael_maberly
Hi;
I'm trying to create a background color with a two-color, gradient fill
(with gradient moving horizontally, from left to right). From another
website, I learned that one method for doing this is to create a very narrow,
appropriately 'gradiented' jpeg (in a graphics program), to the 'width of the
web page', and then use the CSS "background-repeat: repeat-y" function to
repeat this narrow band vertically.
My only question (so far) is an extremely basic one: since browsers and
screen resolutions will differ from user to user, what WIDTH should I use
when creating the jpeg in the graphics program?? Thinking that I should
start with the screen resolution that I use -- 1280 by 1024 px -- I set the
width of my gradient image to 1280px. However, when I inserted it into FP,
it went way past the left and right edges of my screen, both in Preview and
Browser (IE6) views. This meant that a) the gradient didn't display
properly, and b) it automatically provoked the appearance of a horizontal
scrollbar in the browser.
I've spent several hours trying to find both the question and answer in Eric
Meyer's Cascading Style Sheets, but to no avail.
Any tips would be greatly appreciated! Thanks, in advance!
- Michael
I'm trying to create a background color with a two-color, gradient fill
(with gradient moving horizontally, from left to right). From another
website, I learned that one method for doing this is to create a very narrow,
appropriately 'gradiented' jpeg (in a graphics program), to the 'width of the
web page', and then use the CSS "background-repeat: repeat-y" function to
repeat this narrow band vertically.
My only question (so far) is an extremely basic one: since browsers and
screen resolutions will differ from user to user, what WIDTH should I use
when creating the jpeg in the graphics program?? Thinking that I should
start with the screen resolution that I use -- 1280 by 1024 px -- I set the
width of my gradient image to 1280px. However, when I inserted it into FP,
it went way past the left and right edges of my screen, both in Preview and
Browser (IE6) views. This meant that a) the gradient didn't display
properly, and b) it automatically provoked the appearance of a horizontal
scrollbar in the browser.
I've spent several hours trying to find both the question and answer in Eric
Meyer's Cascading Style Sheets, but to no avail.
Any tips would be greatly appreciated! Thanks, in advance!
- Michael