Monika Godfrey

Navigation

Skip navigation.

Search

Site navigation

Email conversation

FromMonika Godfrey
ToMe
SubjectMini Windows
Date17 October 2003 17:19
Hello!

I have come across your "mini windows" script and am having problems when
dealing with the content that I add to the window.  Even though the window
is resizable, it also reformats the text within it.  When I add a lot of
text, the window automatically resizes to the width of the text.  I don't
want this to happen and would instead like the text to be scrollable
vertically and horizontally.  Is there a way to do this? 

Thanks for your help!

Monika

I hope you read this here because your email server is having problems and rejected my email to you:

FromMe
ToMonika Godfrey
SubjectRe: Mini Windows
Date18 October 2003 11:43
Monika,

Sorry, but I have not provided a way to do this. The reason is that 
browsers such as Opera 6-, Konqueror, Netscape 4, Escape and 
OmniWeb 4.2- all cannot handle overflow: scroll; or overflow: auto;, both
of which would produce scrollbars. Instead, they cut the content off (like
overflow: hidden;) and provide no way of accessing any content that is not
in the visible part, making it totally useless.

As I try to make my scripts work in as many browsers as possible 
without having to resort to browser sniffing, I try not to use effects
that make the scripts unusable in some browsers, and this particular
effect makes it unusable in many of them.

In theory, you should be able to use:
'<div style="height:100%;width:100%;overflow:auto;">content</div>'
but in practice, no browsers get this quite right. If you don't want the
window to be resizable, you can use:
'<div style="height:50px;width:300px;overflow:auto;">content</div>'
You would need to make sure the with of the window fits this scrollable
area.

Sorry, but this is the best I can offer.


Tarquin - author of http://www.howtocreate.co.uk/
This site was created by Mark "Tarquin" Wilton-Jones.
Don't click this link unless you want to be banned from our site.