July 29, 201016 yr Hi, i have been making a website for a friend, and he wanted rounded corners. so i have some rounded pics that show up properly in firefox. but in IE the two images that display the top of the main content and the bottom - don't show up. this makes it look horrible. i am using .png with transparency, but i have also tried jpgs and that hasn't solved the problem. plus other pngs are showing fine. i don't get why this is just happening to those two pics? please can someone help me out. i am stressing as i have just sent him a preview, and then realised it looks so bad!! my site is... http://silvermanwebdesign.co.uk/procurehealth/ this is my css - it looks fine to me! .top {background: url(images/top.png)no-repeat;width:910px;height:18px;margin:0 auto;text-align:center;display:block;} .bottom {background: url(images/bottom.png)no-repeat;width:912px;height:18px;margin:0 auto;} i even added display:block to one of them as well as text-align:center thinking it might help but it doesn't Thanks in advance
July 29, 201016 yr The rounded corner images top.png and bottom.png do show in my IE7. I notice that you are using the new HTML5 doctype <!DOCTYPE html> I'm not sure if that works in old browsers like IE6; I'd feel safer using HTML4.01 or XHTML 1.0. The images are png with transparency which may have problems in IE6. Do a search for a IE6 png hack if you are having a problem in IE6. In your styles you haven't got spaces. I'm not sure if that makes any difference but I use spaces like this; I think it is necessary between png) and no-repeat :- .top { background: url(images/top.png) no-repeat; width:910px; height:18px; margin:0 auto; text-align:center; display:block; } Edit: I notice that there are spaces in the css file but not in your post above.
Create an account or sign in to comment