473,394 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Removing window padding/margin within IE.

Daz
Hi everyone. I have just been making a JavaScript chat applet, which
should open in a new child window. It does all of this fine, and works
within Firefox beatifully. However, IE thinks it's necessary to stop my
iFrames from spaning the entire length and width of the Window, and add
about 7-8mm of padding/margin to the inside of the Window.

I can't figure out, whether it's adding it to the inside of the window,
or the outside of the frame.

Please could someone point out how I might be able to go about removing
this padding? It's rediculous. I don't mind the border one bit, but no
matter what I do, it's chopping off 14-16mm of the bottom iFrame. The
window needs to be resizable, so unfortunately, the bottom iFrame is a
set pixel hight, but the top iFrame works with a percentage (i.e 100%
of the frameset surrounding it).

Many thanks.

Daz.

Dec 31 '06 #1
3 6479
Have your tried the iframe's width attribute? Maybe it works the same
in both browsers.

<iframe src ="/default.php" width="100%"></iframe>

And CSS may be helpful, althought I have not tried it
specifically...put this between <styletags...

iframe.myiframe
{
padding: 0 ;
margin: 0 ;
}

Maybe this too?

body
{
padding: 0 ;
margin: 0 ;
}

Put this in the body...

<iframe class=myiframe src ="/default.php" width="100%"></iframe>

Let me know if you get things working.

Daz wrote:
Hi everyone. I have just been making a JavaScript chat applet, which
should open in a new child window. It does all of this fine, and works
within Firefox beatifully. However, IE thinks it's necessary to stop my
iFrames from spaning the entire length and width of the Window, and add
about 7-8mm of padding/margin to the inside of the Window.

I can't figure out, whether it's adding it to the inside of the window,
or the outside of the frame.

Please could someone point out how I might be able to go about removing
this padding? It's rediculous. I don't mind the border one bit, but no
matter what I do, it's chopping off 14-16mm of the bottom iFrame. The
window needs to be resizable, so unfortunately, the bottom iFrame is a
set pixel hight, but the top iFrame works with a percentage (i.e 100%
of the frameset surrounding it).

Many thanks.

Daz.
Dec 31 '06 #2
Daz

phpdevkit wrote:
Have your tried the iframe's width attribute? Maybe it works the same
in both browsers.

<iframe src ="/default.php" width="100%"></iframe>

And CSS may be helpful, althought I have not tried it
specifically...put this between <styletags...

iframe.myiframe
{
padding: 0 ;
margin: 0 ;
}

Maybe this too?

body
{
padding: 0 ;
margin: 0 ;
}

Put this in the body...

<iframe class=myiframe src ="/default.php" width="100%"></iframe>

Let me know if you get things working.

Daz wrote:
Hi everyone. I have just been making a JavaScript chat applet, which
should open in a new child window. It does all of this fine, and works
within Firefox beatifully. However, IE thinks it's necessary to stop my
iFrames from spaning the entire length and width of the Window, and add
about 7-8mm of padding/margin to the inside of the Window.

I can't figure out, whether it's adding it to the inside of the window,
or the outside of the frame.

Please could someone point out how I might be able to go about removing
this padding? It's rediculous. I don't mind the border one bit, but no
matter what I do, it's chopping off 14-16mm of the bottom iFrame. The
window needs to be resizable, so unfortunately, the bottom iFrame is a
set pixel hight, but the top iFrame works with a percentage (i.e 100%
of the frameset surrounding it).

Many thanks.

Daz.
Unfortunately, none of it works. I have already set the width of the
iFrames to 100% through the inline style.

The code is written to the child window using document.write() from the
parent window. All the the code seems to evaluate and parse correctly,
although I can't seem to get anything into the child window between
script elements using this method, although it's not a serious issue.

Even Firefox shows a border around the inside of the window frame, but
the content displays fine. I still can't figure out whether it's a
margin on the inside of the window frame, or padding on the outside of
the iFrame.

I think I am going to change the height of the top frame to 95% or
something similar to see if that makes any difference.

Thanks for your help. I really appreciate it.

Why, Microsoft? Whyyyyyyyyyyyyyyyyyyyy! Hehe.

Daz.

Dec 31 '06 #3
Daz

Daz wrote:
phpdevkit wrote:
Have your tried the iframe's width attribute? Maybe it works the same
in both browsers.

<iframe src ="/default.php" width="100%"></iframe>

And CSS may be helpful, althought I have not tried it
specifically...put this between <styletags...

iframe.myiframe
{
padding: 0 ;
margin: 0 ;
}

Maybe this too?

body
{
padding: 0 ;
margin: 0 ;
}

Put this in the body...

<iframe class=myiframe src ="/default.php" width="100%"></iframe>

Let me know if you get things working.

Daz wrote:
Hi everyone. I have just been making a JavaScript chat applet, which
should open in a new child window. It does all of this fine, and works
within Firefox beatifully. However, IE thinks it's necessary to stop my
iFrames from spaning the entire length and width of the Window, and add
about 7-8mm of padding/margin to the inside of the Window.
>
I can't figure out, whether it's adding it to the inside of the window,
or the outside of the frame.
>
Please could someone point out how I might be able to go about removing
this padding? It's rediculous. I don't mind the border one bit, but no
matter what I do, it's chopping off 14-16mm of the bottom iFrame. The
window needs to be resizable, so unfortunately, the bottom iFrame is a
set pixel hight, but the top iFrame works with a percentage (i.e 100%
of the frameset surrounding it).
>
Many thanks.
>
Daz.

Unfortunately, none of it works. I have already set the width of the
iFrames to 100% through the inline style.

The code is written to the child window using document.write() from the
parent window. All the the code seems to evaluate and parse correctly,
although I can't seem to get anything into the child window between
script elements using this method, although it's not a serious issue.

Even Firefox shows a border around the inside of the window frame, but
the content displays fine. I still can't figure out whether it's a
margin on the inside of the window frame, or padding on the outside of
the iFrame.

I think I am going to change the height of the top frame to 95% or
something similar to see if that makes any difference.

Thanks for your help. I really appreciate it.

Why, Microsoft? Whyyyyyyyyyyyyyyyyyyyy! Hehe.

Daz.
Ok, I have worked out a temporary fix, and used a table. IE seems to
display this correctly. It's not my ideal fix, but it seems to work.

Dec 31 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Toronto Web Designer | last post by:
I'm having trouble with the padding and margin properties. IE tends to be happier with the padding and Netscape with the margin property. So I tried this: <link href="netscape-styles.css"...
7
by: Jonathan | last post by:
Hi I open a new window using a javascript function: function nw(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } which I call thus:
2
by: MM | last post by:
I am using the following code to display an image in a seperate window. <form> <input type=button onClick='window.open("image1.jpg","","width=260,height=260,resizable=0,border=0")' value=Shhow...
36
by: phil-news-nospam | last post by:
Here is a simpler (no drop shadows) example of the padding bug I see: http://phil.ipal.org/usenet/ciwas/2006-05-08/buttons-1.html So far I find nothing in the CSS2 document that says I should...
12
by: mi0sis | last post by:
Right now I am currently using this: ------------------------------------------------------------ .div0 { background-image:url(http://www.rubnip.com/Pictures/topback.gif);...
2
by: windy | last post by:
Hello, I find when resizing browser window my web page breaks down. When I view and resize other work the window appears to hide the page, not causing it to break apart. What settings would help...
3
by: soms2m | last post by:
hello, i want to make mt div to fill the whole window.. but by giving div height=100%, it dosn't work.. i've place my html code with this.. <!-- html code --> <!DOCTYPE html PUBLIC "-//W3C//DTD...
2
by: wreed06 | last post by:
Hello, I have 2 problems. In my webpage, I have a dropdown list with a button that takes the user to a popup window specific to the option. I am using Firefox 2.0.0.13. I have successfully...
1
by: soms2m | last post by:
HELLO ALL, I want to fill the parent window height with respect to the sub window height which is loading using ajax (mootools). For example if the parent window height is normal and the loading...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.