Old 02-06-2004, 05:19   #1 (permalink)
Tot
Registered User
 
Join Date: May 2004
Location: Loughborough
Posts: 69
Mac IE scrollbar issue?

I have a div that is set to 'overflow:auto', with no borders, margins or padding. The div scrolls fine in all other browsers yet on Mac IE for some reason it sets a horizontal scrollbar? I don’t have any images in the div and there are no long words making it scroll left and right. Is this a Mac IE bug or am I doing something wrong?

I’ve also found that if I refresh the page so many times the horizontal scrollbar disappears? WHAT THE HELL IS GOING ON?

CODE

CSS
#smallbox{
height:100;
width:150;
overflow:auto;
}
  Reply With Quote
Old 02-06-2004, 05:32   #2 (permalink)
Bill Posters
trouble free and loverlee
 
Join Date: Mar 2003
Location: YooKay
Posts: 2,933
iFrames Vs div's

It's all in there.
  Reply With Quote
Old 02-06-2004, 05:50   #3 (permalink)
Tot
Registered User
 
Join Date: May 2004
Location: Loughborough
Posts: 69
thankyou, but this has not solved the issue. The div does not have any p tags within in it. All the text should wrap within it, surely? Why is this not happening?
  Reply With Quote
Old 02-06-2004, 05:56   #4 (permalink)
Bill Posters
trouble free and loverlee
 
Join Date: Mar 2003
Location: YooKay
Posts: 2,933
Show us what you have.
Is there an online example we can view/check?
  Reply With Quote
Old 02-06-2004, 06:02   #5 (permalink)
Tot
Registered User
 
Join Date: May 2004
Location: Loughborough
Posts: 69
link

Last edited by Tot : 02-06-2004 at 06:29.
  Reply With Quote
Old 02-06-2004, 06:05   #6 (permalink)
Tot
Registered User
 
Join Date: May 2004
Location: Loughborough
Posts: 69
when you refresh it, sometimes the scrollbar disappears?

css has changed a bit now to-

top:17px;
height:115px;
left:0px;
position:absolute;
text-align:left;
color:#333;
overflow:auto;
width:164px;
padding:4px;
  Reply With Quote
Old 02-06-2004, 06:28   #7 (permalink)
Bill Posters
trouble free and loverlee
 
Join Date: Mar 2003
Location: YooKay
Posts: 2,933
Strictly speaking, whilst technically 'valid' markup, text is supposed to be nested within <p>…</p> tags.
Maybe the best solution would be to do that and then implement the 'narrowed paragraph' recommendations from the post I linked to.
It will stabilise MSIE/Mac's handling of the text overflow, whilst making negligable difference to its appearance in other browsers.


[edit]

I meant to say, nest a set of <p>…</p> tags within the existing <div>…</div> tags, etc…
  Reply With Quote
Old 02-06-2004, 06:29   #8 (permalink)
Tot
Registered User
 
Join Date: May 2004
Location: Loughborough
Posts: 69
okay, thank you for your help
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8