Topic: iframe scrollbar issues in FF (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=27336" title="Pages that link to Topic: iframe scrollbar  issues in FF (Page 1 of 1)" rel="nofollow" >Topic: iframe scrollbar  issues in FF <span class="small">(Page 1 of 1)</span>\

 
GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 01-17-2006 23:44

ok, i have an iframe with a width set to x.
now in the iframe i have set the body margin and padding to 0.
then i have a table (padding and spacing set to 0) in the iframe with some columns. the widths of all columns add up to be exactly x.

now in FF this creates a horizontal scrollbar, which seems to be scrollable by 3 pixels. in opera and IE i get no scrollbar, which is also what i expected and wanted.

any ideas where the problem could be?

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted posted 01-17-2006 23:52

What does the DOM inspector says about the computed style of the IFRAME, BODY, TABLE ?
Is there a border on the TABLE / IFRAME / TD that could mess up the styles ?

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 01-18-2006 00:09

hmmm, im lookin into that right now.
so far it seems that one of the columns is infact wider than i have set it to, though there is nothing in it.

code:
<td width="15"></td>



ill look more into this and let you know later.

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 01-18-2006 00:20

ok, the page was so completely full of unformatted html i completely overlooked a div surrounding another table which had a padding.

this also proves my above statement about the column with nothing in it to be completely stupid.

it's late here, i should really go to bed now.

Blacknight
Paranoid (IV) Inmate

From: INFRONT OF MY PC
Insane since: Dec 2001

posted posted 01-18-2006 10:00

can't you switch of scrollbars with css????

lan
Paranoid (IV) Inmate

From: Darwin, NT, Australia
Insane since: Dec 2003

posted posted 01-20-2006 05:40

I share your pain Grumble; I'm at the same sort of project just now - scroll bars are now cool but getting rid of the frame o/s the iframe took some googling

[sense] Organisation is anathema to organisations [/sense]

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 01-20-2006 18:36

balcknight, i dont think you can with css, but you can with html. i have set it to auto, since i want vertical scrollbars in case the page is longer than the iframe, but i dont want horizontal scrollbars.

ian, the problem is, as it seems to me, that different browsers dont use the same default paddings, margins, etc. for certain elements (e.g. body !). so if you make sure, that each and every element on your page has a specific padding and margin set and the sum of that does not exceed the given size of the iframe, then scrollbars should not occur.



(Edited by GRUMBLE on 01-20-2006 18:39)

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted posted 01-21-2006 00:25

One more detail. You must also be careful that when a vertical scrollbar is necessary, your content sactually fit in the width of the IFRAME minus the width of the vertical scrollbar otherwise an horizontal scrollbar will appear

lan
Paranoid (IV) Inmate

From: Darwin, NT, Australia
Insane since: Dec 2003

posted posted 01-21-2006 01:35

Thanks for the tips. One of my problems was a small div, that I used to align two separate blocks of text left and right on the same line, was set at 100% while the rest of my content is fixed. Blew my page to pieces

[sense] Organisation is anathema to organisations [/sense]

Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

posted posted 01-21-2006 04:10

Well, you can switch off scrollbars with CSS, after a fashion. You set the appropriate voerflow property to hidden, I believe.


Justice 4 Pat Richard



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu