Hi, I'm making a website for my friend and well I'm having problems with it looking ok on IE, while it looks great in other browsers.
The Version I'm having problem with is IE7
As you can see, there is a big white space after "After seeing a St. Jude Children's Research Hospital commercial," and all the text is pushed down... can someone please help me out. thanks
remove it- I didn't look through your CSS to find where it was set or inherited from. The vertical-align:top does not relate to where the image is going to be- it relates to the text inline with the image will be. Fate was being kind in other browsers and auto-correcting that for you; IE7 simply was not. The text that fell inline with the image followed the vertical-align rule you set. To demo the effects of this in more detail change that setting to vertical-align:middle; or vertical-align:bottom; and watch the effects.
remove it- I didn't look through your CSS to find where it was set or inherited from. The vertical-align:top does not relate to where the image is going to be- it relates to the text inline with the image will be. Fate was being kind in other browsers and auto-correcting that for you; IE7 simply was not. The text that fell inline with the image followed the vertical-align rule you set. To demo the effects of this in more detail change that setting to vertical-align:middle; or vertical-align:bottom; and watch the effects.
.cont-bot {
background:url(../images/cont-bot.jpg) no-repeat left top;
width:368px;
height:199px;
position:absolute; //Delete this
left:0; //Delete this
top:-199px; //Delete this
float: left; //Add this
}
In your HTML delete what's in red
Code:
<p><img src="images/cont-bot.jpg" width="100" height="99" align="left" style="padding-right:10px; padding-bottom:10px; padding-left:0px; padding-top:0px">After seeing a <a href="http://www.stjude.org" target="_new">St. Jude Children's Research Hospital</a> commercial, my 3 year old daughter turned to me with a sad face and said "I wanna make them happy". I knew at that moment I needed to give back. Won't you help me make a difference?</p>
Once you've done all this you may need to set your margin-top, margin-left properties
I made the changes in IE using developer tools and that is it- I do not know where it is getting it from but removal of that CSS property made it look exactly like IE9 and chrome. Did you refresh your cache after you made the CSS changes?
I made the changes in IE using developer tools and that is it- I do not know where it is getting it from but removal of that CSS property made it look exactly like IE9 and chrome. Did you refresh your cache after you made the CSS changes?
.cont-bot {
background:url(../images/cont-bot.jpg) no-repeat left top;
width:368px;
height:199px;
position:absolute; //Delete this
left:0; //Delete this
top:-199px; //Delete this
float: left; //Add this
}
In your HTML delete what's in red
Code:
<p><img src="images/cont-bot.jpg" width="100" height="99" align="left" style="padding-right:10px; padding-bottom:10px; padding-left:0px; padding-top:0px">After seeing a <a href="http://www.stjude.org" target="_new">St. Jude Children's Research Hospital</a> commercial, my 3 year old daughter turned to me with a sad face and said "I wanna make them happy". I knew at that moment I needed to give back. Won't you help me make a difference?</p>
Once you've done all this you may need to set your margin-top, margin-left properties
thanks again... still no go... i made a test html file of the advice you gave
<div style="margin-left:110px;margin-top:??">my 3 year old daughter turned to me with a sad face and said "I wanna make them happy". I knew at that moment I needed to give back. Won't you help me make a difference?</div>
You might need to adjust the margin-top, margin-left to make it line up exactly I just guessed on the pixel numbers
one is the window showing the problem
two is fixing it
Note: you cannot see it in SS "one" (bc I didn't know it was there) but vertical-align:top is set in two places... you can see them both removed in SS "two"
that is the problem bottom line- evidence is there... now where it is getting all that from I have no clue (I have not looked through your CSS) but it is getting set in multiple places
Edit: Also that was looking at your test site link- earlier when I first told you problem I did not have to check multiple boxes (or at least I don't recall doing so) I have no clue what changes have been made btw the two