I'm trying to use a non-scrolling background image within a div (the
non-scrolling part is a "nice-to-have" vs a "have to have"). The
style for that is:
<div style="height=4 00px;
background-image:url(bgrd-foo.jpg);
background-position: center top;
background-repeat:no-repeat;
background-attachment: fixed;">
Looks great in IE. But in FF, the background-position: center top
part causes the image to be positioned at the top of the PAGE rather
than the top of the DIV, and worse, the image only displays starting
where the div occurs on the page. By that, I mean the top portion of
the image doesn't show up - only the portion of the image that is to
be within the div shows up.
How can I cause the image to be positioned at the top of the div in at
least IE and FF?
How can I cause the div to be sized high enough to hold the whole
image in both browsers? In FF, the image truncates at the bottom of
the div.
non-scrolling part is a "nice-to-have" vs a "have to have"). The
style for that is:
<div style="height=4 00px;
background-image:url(bgrd-foo.jpg);
background-position: center top;
background-repeat:no-repeat;
background-attachment: fixed;">
Looks great in IE. But in FF, the background-position: center top
part causes the image to be positioned at the top of the PAGE rather
than the top of the DIV, and worse, the image only displays starting
where the div occurs on the page. By that, I mean the top portion of
the image doesn't show up - only the portion of the image that is to
be within the div shows up.
How can I cause the image to be positioned at the top of the div in at
least IE and FF?
How can I cause the div to be sized high enough to hold the whole
image in both browsers? In FF, the image truncates at the bottom of
the div.
Comment