Solved

Extra white space showing up on IE but not on FireFox

Posted on 2009-07-01
14
680 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
  • 8
  • 4
  • 2
14 Comments
 
LVL 8

Assisted Solution

by:lharrispv
lharrispv earned 40 total points
Comment Utility
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
Comment Utility
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
Comment Utility
try it.. what do you have to lose?
0
 
LVL 10

Author Comment

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

Expert Comment

by:xberry
Comment Utility
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
Comment Utility

@ lharrispv,

          tried your approach, didnt work etiher
0
 
LVL 10

Author Comment

by:aman0711
Comment Utility
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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 14

Accepted Solution

by:
xberry earned 460 total points
Comment Utility
>>> 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
Comment Utility
Hey xberry,

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

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

Author Comment

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

Expert Comment

by:xberry
Comment Utility
>> 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
Comment Utility
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
Comment Utility
Postting the image again:


space.PNG
0
 
LVL 14

Expert Comment

by:xberry
Comment Utility
So what is the state of affairs with that question ?
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

771 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now