Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-01-2012, 05:07 AM   PM User | #1
lokey
New to the CF scene

 
Join Date: Feb 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
lokey is an unknown quantity at this point
Site looks great in other browsers except IE

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

this is the site:
http://chongilicious.com/

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

Last edited by lokey; 02-01-2012 at 08:27 PM..
lokey is offline   Reply With Quote
Old 02-01-2012, 10:09 AM   PM User | #2
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,680
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
Your IE version?
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Old 02-01-2012, 03:56 PM   PM User | #3
lokey
New to the CF scene

 
Join Date: Feb 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
lokey is an unknown quantity at this point
Quote:
Originally Posted by abduraooft View Post
Your IE version?
The version that it's not looking good on is IE7
lokey is offline   Reply With Quote
Old 02-01-2012, 05:43 PM   PM User | #4
sean3838
New Coder

 
Join Date: Jan 2012
Posts: 90
Thanks: 1
Thanked 13 Times in 13 Posts
sean3838 is an unknown quantity at this point
Put this at the beginning of your head section:

Code:
    <!--[if lt IE 9]>
    <script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
    <script src="http://ie7-js.googlecode.com/svn/version/2.1%28beta4%29/ie7-squish.js"></script>
    <![endif]-->
Let me know if it helps or not.
sean3838 is offline   Reply With Quote
Old 02-01-2012, 06:17 PM   PM User | #5
lokey
New to the CF scene

 
Join Date: Feb 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
lokey is an unknown quantity at this point
Quote:
Originally Posted by sean3838 View Post
Put this at the beginning of your head section:

Code:
    <!--[if lt IE 9]>
    <script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
    <script src="http://ie7-js.googlecode.com/svn/version/2.1%28beta4%29/ie7-squish.js"></script>
    <![endif]-->
Let me know if it helps or not.
nope, nothing changed
lokey is offline   Reply With Quote
Old 02-01-2012, 06:38 PM   PM User | #6
alykins
Senior Coder

 
alykins's Avatar
 
Join Date: Apr 2011
Posts: 1,608
Thanks: 37
Thanked 183 Times in 182 Posts
alykins will become famous soon enough
your img tag has this applied
Code:
vertical-align:top;
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.

good luck
__________________

I code C hash-tag .Net
Reference: W3C W3CWiki .Net Lib
Validate: html CSS
Debug: Chrome FireFox IE

Last edited by alykins; 02-01-2012 at 06:39 PM.. Reason: incomplete sentence that made no sense
alykins is offline   Reply With Quote
Old 02-01-2012, 07:18 PM   PM User | #7
lokey
New to the CF scene

 
Join Date: Feb 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
lokey is an unknown quantity at this point
Quote:
Originally Posted by alykins View Post
your img tag has this applied
Code:
vertical-align:top;
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.

good luck
thanks, that wasn't it... oh well... thanks
lokey is offline   Reply With Quote
Old 02-01-2012, 07:22 PM   PM User | #8
sean3838
New Coder

 
Join Date: Jan 2012
Posts: 90
Thanks: 1
Thanked 13 Times in 13 Posts
sean3838 is an unknown quantity at this point
Couple things. Changes are in red:

Code:
.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 &quot;I wanna make them happy&quot;. 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

Last edited by sean3838; 02-01-2012 at 07:30 PM..
sean3838 is offline   Reply With Quote
Old 02-01-2012, 07:39 PM   PM User | #9
alykins
Senior Coder

 
alykins's Avatar
 
Join Date: Apr 2011
Posts: 1,608
Thanks: 37
Thanked 183 Times in 182 Posts
alykins will become famous soon enough
Quote:
Originally Posted by lokey View Post
thanks, that wasn't it... oh well... thanks
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 code C hash-tag .Net
Reference: W3C W3CWiki .Net Lib
Validate: html CSS
Debug: Chrome FireFox IE
alykins is offline   Reply With Quote
Old 02-01-2012, 08:05 PM   PM User | #10
lokey
New to the CF scene

 
Join Date: Feb 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
lokey is an unknown quantity at this point
Quote:
Originally Posted by alykins View Post
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 deleted it... but still isn't working on IE 7

here is the test file i made
http://www.chongilicious.com/index_test3.html

Also I did empty cache and refreshed the browser
lokey is offline   Reply With Quote
Old 02-01-2012, 08:11 PM   PM User | #11
lokey
New to the CF scene

 
Join Date: Feb 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
lokey is an unknown quantity at this point
Quote:
Originally Posted by sean3838 View Post
Couple things. Changes are in red:

Code:
.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 &quot;I wanna make them happy&quot;. 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

http://www.chongilicious.com/index_test.html


CSS:
http://www.chongilicious.com/css/style_test.css
lokey is offline   Reply With Quote
Old 02-01-2012, 08:45 PM   PM User | #12
sean3838
New Coder

 
Join Date: Jan 2012
Posts: 90
Thanks: 1
Thanked 13 Times in 13 Posts
sean3838 is an unknown quantity at this point
Keep the test one the same then add:

Code:
<div style="margin-left:110px;margin-top:??">my 3 year old daughter turned to me with a sad face and said &quot;I wanna make them happy&quot;. 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

Last edited by sean3838; 02-01-2012 at 08:48 PM..
sean3838 is offline   Reply With Quote
Old 02-01-2012, 09:01 PM   PM User | #13
alykins
Senior Coder

 
alykins's Avatar
 
Join Date: Apr 2011
Posts: 1,608
Thanks: 37
Thanked 183 Times in 182 Posts
alykins will become famous soon enough
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
Attached Thumbnails
Click image for larger version

Name:	one.jpg
Views:	20
Size:	49.9 KB
ID:	10790   Click image for larger version

Name:	two.jpg
Views:	18
Size:	49.3 KB
ID:	10791  
__________________

I code C hash-tag .Net
Reference: W3C W3CWiki .Net Lib
Validate: html CSS
Debug: Chrome FireFox IE
alykins is offline   Reply With Quote
Reply

Bookmarks

Tags
css, html, internet explorer, type

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:43 PM.


Advertisement
Log in to turn off these ads.