Jump to content

IE9 rendering issue


fife

Recommended Posts

Well another issue with IE 9 and its rendering.  This is a strange one though.  Ok I have a div that IE9 ONLY is ignoring the css for.  Here is the code

<div id="step1">
  <h1>Step 1</h1>
       <img src="/images/call--back-now.png" width="65" height="90" align="left" class="man"> <br><p>One of our friendly claims advisers will give you a quick call and asses your eligibility to claim. 
          
          
        </p>
  	</div>

 

 

CSS

 

 

 


#step1 {
color: rgb(204,204,204);
float: left;
width: 380px;
margin-left: 20px;
padding: 20px;
margin-bottom: 20px;
height: 140px;
background-image: url('/images/backgrounds/steps.jpg');
}

 

 

 

 

Now heres the funny thing.  On another div I have similar styling.  The only difference being this next one works!

<div id="startClaim">
    	<h3 class="StartClaim">Start Your Claim Here! </h3>
        
      <div id="startImg">
   	  	<img src="/images/backgrounds/contactHere.png" width="159" height="220">
      </div>
      
      	<div id="StartPara">
    		<p class="StartText">Falcon & Pointer <br>make claiming back your PPI nice and easy.  Just <a href="/start-claim.php">click here</a>, fill out the simple form and leave the rest to us. </p>
      	</div>
</div>

 

CsS

 

#startClaim {
float: left;
height: 330px;
width: 500px;
background-image: url(/images/backgrounds/check-list.png);
background-repeat: no-repeat;
padding: 10px;
background-position: 300px 10px;
margin-bottom: 20px;
}

 

I've tried everything to replicate this div like the other one or vice versa but I cant.  Any help would be much appreciated as I have exhausted all other possibilities myself and I don't know where else to turn.

 

thank you

Link to comment
Share on other sites

what do you mean with the word works?

 

You show us some code and say it doesn't work... What doesn't? the inline css the external css only the div itself the inner elements?

 

Do you maybe have an online example of this and a more precise description of what you expect to happen (and don't say you want it to work)

 

And i totally agree with Jaysonic, that a tool like firebug (for firefox) or the IE9 and Chrome developer tools are perfect for testing out where your styles come from.

 

Link to comment
Share on other sites

  • 2 weeks later...

time to update your html to compliance, as in xhtml

 

<br> ? old

<br /> new

<img src="#"> ? old

<img src="#" alt="#" /> new

 

update your entire website apply the correct doctype, in your case transitional and try again,

run w3c validator, i am sure you are just full of errors

 

IE 9 interprets compliant code just fine

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.