Click to See Complete Forum and Search --> : Unwanted Space Surrounding Popup


chrison600
04-22-2003, 10:10 PM
Hi all,

I have inserted a table into the contents of a Java popup and when the popup is painted it wraps the table in about 20 pixels of (blank) space. Changing the table or window size doesn't seem to change anything.

I can't seem to find a window.open parameter that eliminates 'padding'.

More info - The window.open popups that I have implemented from scratch work ok. A portion of my site is built by php code that I purchased. This code uses window.open for 'help' popups. It is these popups that I have inserted the table into and that are surrounded by the padding. I can't get a straight answer from the provider of the php scripts, so I thought I would look 'outside'.

Any ideas?

Chris

DrDaMour
04-22-2003, 10:11 PM
if you can change the html of the popup itself, then it's simple

<body topmargin=0 bottommargin=0 leftmargin=0 rightmargin=0>

That probably will solve it, if not, then you might have to link to an example of what you're talking about.

pyro
04-22-2003, 10:12 PM
In your popup, try adding these to your <body> tag. leftmargin="0" rightmargin="0"

DrDaMour
04-22-2003, 10:14 PM
haha, i won that race

chrison600
04-22-2003, 10:28 PM
The body corrections did it. The php code vendor had specified to start with the <table> tag.

I used the margin:0px; padding:0px; from Dave Clark because I like absolutes - however - are there issues with this approach with different browser versions/vendors?

Chris

pyro
04-22-2003, 10:40 PM
It is standard CSS code, so it should work in all browsers made this century...

chrison600
04-22-2003, 10:45 PM
Hmm - That means in the past couple of years - I dunno...

Chris

pyro
04-22-2003, 11:05 PM
Let's put it this way, it should work fine in all version 5+ browsers. Not sure about version 4 browsers, as they are know to be buggy with CSS...