Hi there...my codes are working fine for chrome and firefox but IE8 is giving me a hard time can anyone please help me out ?
Here are my codes
Hi there...my codes are working fine for chrome and firefox but IE8 is giving me a hard time can anyone please help me out ?
Here are my codes
Short summary tied to the thread: reported the page background looks correct in Chrome/Firefox but in IE8 the image is misaligned and only appears after maximizing/minimizing. 's hint about background-position helps alignment, but IE8 can also need a layout/repaint trigger or the background must be attached to the right element.
Practical steps that fix both alignment and the "appears after resize" redraw problem:
position: relative; plus the non-standard zoom: 1; (this is a known IE technique) — more on the zoom property here: zoom.Also confirm the page is in standards mode (valid DOCTYPE) and not running in Compatibility View / an older document mode. See the Doctype glossary for why that matters: Doctype.
Example debugging steps: temporarily outline the container to verify its bounds, test moving the background to body, add zoom:1/position:relative to force a repaint, and check the F12 Document Mode in IE8. These usually pinpoint whether the issue is alignment vs. IE redraw.
Jump to Post— makman99 1Nobody wants to download stuff... try to narrow down where the issue is, and post the html and css sections/files please.
Nobody wants to download stuff... try to narrow down where the issue is, and post the html and css sections/files please.
My Css
#main{
background-image:url(base.jpg);
width:650px;
text-align:left;
}
the main thing is that my background-image is at the center of the webpage in firefox but not in IE8
I'm having problems with my background picture now !!! In IE8 i got to maximize and minimize my IE8 to see the background picture !! how to fix this ?
background-position: top center; We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.