...

View Full Version : Background Image not working in IE8



bobissict
04-04-2011, 09:44 AM
Hi There.

I am busy making a nice image-rich contact form in dreamweaver. I am having display issues in ie8 as all of my background images are showing except for the one. These images look fine in firefox and chrome but for some reason this single image is not displaying in ie8.

The URL for my post is www.winwithharley.co.za. Here is the code i have used:



<div class="name" style="background-image: url('images/email.png'); width:579px; height:66px;">
<div class="textbox" style="top:40px !important;">
<input type="text" class="textboxstyle" name="email" id="email" />
</div>


I would appreciate any help you can give me.

Regards
Bo Bissict

bobissict
04-04-2011, 09:47 AM
just a quick note:

i just opened it up in ie8 and the image was not showing. then if i refresh the page the image shows.

hopefully this helps. looking forward to hearing any solutions

BulletTimeBill
04-04-2011, 10:45 AM
The code you have posted is correct. The code on your site is not. You have:


<div class="name" style="background-image:url(images/email.png); width:579px; height:66px;">

You left out the quotation marks. Could be the cause. Also, What's with all the divs and breaking up the background image? You really only need to have two main divs there. One to pretty much hold that image, the other for your form. Is this how dreamweaver does things?

bobissict
04-05-2011, 10:57 AM
Hi BulletTimeBill

Just made that change and it seems to be working. thank you so much for your help. unfortunately we were given this piece of html from the client with the divs already in place.

If it continues not too work i shall take your advice and convert to just the 2 divs.

Thanks again



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum