Sanim
06-13-2005, 12:13 PM
Is there any way to have a repeat-y background image that will work correctly in all browsers if the div's width is set in ems? Since different browsers display ems differently and a image's width is in pixels, couldn't that make the image not work right? Example:
I have a div whose id is #wrapper and is 80.0em wide. I have an image that is 800px wide and 2px tall that I want to repeat down the div until the div ends. If I put, in the div's background thing, background: url(images/faux.gif) repeat-y center;, would that take care of any problems, or is there something else I've overlooked? Thanks in advance.
I have a div whose id is #wrapper and is 80.0em wide. I have an image that is 800px wide and 2px tall that I want to repeat down the div until the div ends. If I put, in the div's background thing, background: url(images/faux.gif) repeat-y center;, would that take care of any problems, or is there something else I've overlooked? Thanks in advance.