Solved

Extra white space showing up on IE but not on FireFox

Posted on 2009-07-01
14
697 Views
Last Modified: 2012-05-07
Hi Experts,

                I have an Iframe on a simple page.  I am seeing an usual big white space between the header and the Iframe in Internet Explorer.. Same link is working fine on Firefox.

               how do i make it work in IE as well.
PS: I have attached the 3 stylesheets used in this page and the snapshot of page.
html>
<head>
<style type="text/css">
        @import url("/analytics/static/styles/intranet.css");             /* main stylesheet */
        @import url("/analytics/static/styles/intranet-2col.css");        /* column stylesheet */
        @import url("/analytics/static/styles/intranet-2col-1024.css");   /* 1024px stylesheet */
    
</style>
 
<script language="JavaScript" src="/analytics/static/Fusion/FusionCharts/FusionCharts.js"></script>
<title>Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="GENERATOR" content="Rational Application Developer">
 
</head>
<body>
<div id="page-wrapper"><%@include file="Header.jsp"%>
<div id="column-wrapper"><!-- begin columns --> 
<%@include file="NEW_TOOLBAR.jsp"%>
<div id="content"><!-- begin content column -->
<div class="inner">
 
 
<iframe src="chart.html?chartType=${detailForm.chartType}&chartGroup=${detailForm.chartGroup}&chartSubgroup=${detailForm.chartSubgroup}&liabilityCode=IRU&timeline=${detailForm.timeline}&width=600&height=400" frameborder="0" scrolling="no" width="700" height="430" align="top"></iframe>
 
 
 
<p><small> </small></p>
</div>
<!-- end content column, then column wrapper --></div>
</div>
<%@include file="Footer.jsp"%></div>
 
 
</body>

Open in new window

intranet.txt
intranet-2col.txt
intranet-2col-1024.txt
space.PNG
0
Comment
Question by:aman0711
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 4
  • 2
14 Comments
 
LVL 8

Assisted Solution

by:lharrispv
lharrispv earned 40 total points
ID: 24756815
try changing your @import statements to <link> statements.  IE is funny with @import

Oh and why did you close the other thread just to open this one?
0
 
LVL 10

Author Comment

by:aman0711
ID: 24757026
Well I guess you folks left so I decided to close :)
Lets start troubleshooting on this now :)

@import statements are working fine on all other pages :(
0
 
LVL 8

Expert Comment

by:lharrispv
ID: 24757274
try it.. what do you have to lose?
0
Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

 
LVL 10

Author Comment

by:aman0711
ID: 24757430
lo., true :)
Let me get back to your with result
0
 
LVL 14

Expert Comment

by:xberry
ID: 24761196
since your .jsp includes it is not really making sense to troubleshoot based on your
text files and code snippet. You should put your site on the net and provide
us with the URL.
0
 
LVL 10

Author Comment

by:aman0711
ID: 24766070

@ lharrispv,

          tried your approach, didnt work etiher
0
 
LVL 10

Author Comment

by:aman0711
ID: 24766073
hi xberry,

                its running on a local server, cant out on the internet :-(

              thr is no way to force this iframe to the top of the page?

0
 
LVL 14

Accepted Solution

by:
xberry earned 460 total points
ID: 24770543
>>> there is no way to force this iframe to the top of the page?

of course there is, simply put it in place of your header div ... ;-)

all I want to say is, I cannot really test this locally either since 99 % of html source seems
generated by the jsp - serverwise.

One thing to notice though, since you mention it is working fine with firefox, I guess that IE is falling
into quirks mode, thus rendering code in buggy style. html is rendered in quirks mode if incorrect Doctype declaration
is used. From your code I cannot see any doctype declaration, so put in one of those:

http://htmlhelp.com/tools/validator/doctype.html

Best insert those lines at top of your page:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
0
 
LVL 10

Author Comment

by:aman0711
ID: 24787816
Hey xberry,

                Sorry for getting back on this question little late :-)

                You nailed it :) Thanks a ton :)
0
 
LVL 10

Author Comment

by:aman0711
ID: 24788068
Oops I am sorry :( it worked fine on IE 7, but still the same issue with IE6
0
 
LVL 14

Expert Comment

by:xberry
ID: 24792328
>> Oops I am sorry :( it worked fine on IE 7, but still the same issue with IE6

??? Is it now working or not?  The Doctype remedy should exactly handle IE6, too.

Since you mention it handled IE7 but not IE6 my guess would be that some of the numerous IE6 bugs
did crank in here - however the bug normally causing the problem that you mentioned, the 'box model bug'
is only relevant for IE6 in quirks mode and earlier browsers.  

I cannot from here tell what it is, since you have access to all the generated code, so try a couple of things
such as changing width for IE6 browsers only in some of the divs and see if things improve.
0
 
LVL 10

Author Comment

by:aman0711
ID: 25857400
code and snapshot to be replaced in the question:


html>
<head>
<style type="text/css">
        @import url("/static/styles/intranet.css");             /* main stylesheet */
        @import url("/static/styles/intranet-2col.css");        /* column stylesheet */
        @import url("/static/styles/intranet-2col-1024.css");   /* 1024px stylesheet */
    
</style>
 
<script language="JavaScript" src="/static/Fusion/FusionCharts/FusionCharts.js"></script>
<title>Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="GENERATOR" content="Rational Application Developer">
 
</head>
<body>
<div id="page-wrapper"><%@include file="Header.jsp"%>
<div id="column-wrapper"><!-- begin columns --> 
<%@include file="NEW_TOOLBAR.jsp"%>
<div id="content"><!-- begin content column -->
<div class="inner">
 
 
<iframe src="index.html?Type=${Form.Type}&Group=${Form.Group}&Subgroup=${Form.Subgroup}&Code=XYZ&timeline=${Form.timeline}&width=600&height=400" frameborder="0" scrolling="no" width="700" height="430" align="top"></iframe>
 
 
 
<p><small> </small></p>
</div>
<!-- end content column, then column wrapper --></div>
</div>
<%@include file="Footer.jsp"%></div>
 
 
</body>

Open in new window

space.PNG
0
 
LVL 10

Author Comment

by:aman0711
ID: 25879923
Postting the image again:


space.PNG
0
 
LVL 14

Expert Comment

by:xberry
ID: 25881401
So what is the state of affairs with that question ?
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
Suggested Courses

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question