473,573 Members | 3,211 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

overflow is not auto?

I have a simple test document which produce
the following in Mozilla and Opera:
http://terrainformatica.com/w3/p2/problem1.png
Internet Explorer behaves as per recommendation (I guess)

Did I miss something and width of paragraph can be set less than its content
(without overflow specification)?

Document is here:
http://terrainformatica.com/w3/p2/problem1.htm

Thanks in advance.

Andrew Fedoniouk.
http://terrainformatica.com


Jul 20 '05 #1
15 4815
Andrew Fedoniouk wrote:
I have a simple test document which produce
the following in Mozilla and Opera:
http://terrainformatica.com/w3/p2/problem1.png
Internet Explorer behaves as per recommendation (I guess)
Mozilla and Opera do one thing, IE does another and you think IE is right?!
Did I miss something and width of paragraph can be set less than its
content (without overflow specification)?


Overflow must be set somewhere, even if that somewhere is the browser
default.

http://www.w3.org/TR/CSS2/visufx.html#overflow
'overflow'
Initial: visible

visible
This value indicates that content is not clipped, i.e., it may be
rendered outside the block box.

- So Mozilla and Opera are doing The Right Thing.

--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Jul 20 '05 #2
DU
Andrew Fedoniouk wrote:
I have a simple test document which produce
the following in Mozilla and Opera:
http://terrainformatica.com/w3/p2/problem1.png
Internet Explorer behaves as per recommendation (I guess)

Did I miss something and width of paragraph can be set less than its content
(without overflow specification)?

Document is here:
http://terrainformatica.com/w3/p2/problem1.htm

Thanks in advance.

Andrew Fedoniouk.
http://terrainformatica.com


It is widely known that MSIE 5+ does not support overflow: visible the
way the CSS2 spec. defined that declaration.

DU
Jul 20 '05 #3
Thanks David for your response.

If 'overflow' is set to 'visible' by default to body element then
scrollbars will never appear. Right?

Seems like a bug. But where? In specification or in UA?

Andrew Fedoniouk.
http://terrainformatica.com
"David Dorward" <do*****@yahoo. com> wrote in message
news:c8******** ***********@new s.demon.co.uk.. .
Andrew Fedoniouk wrote:
I have a simple test document which produce
the following in Mozilla and Opera:
http://terrainformatica.com/w3/p2/problem1.png
Internet Explorer behaves as per recommendation (I guess)
Mozilla and Opera do one thing, IE does another and you think IE is

right?!
Did I miss something and width of paragraph can be set less than its
content (without overflow specification)?


Overflow must be set somewhere, even if that somewhere is the browser
default.

http://www.w3.org/TR/CSS2/visufx.html#overflow
'overflow'
Initial: visible

visible
This value indicates that content is not clipped, i.e., it may be
rendered outside the block box.

- So Mozilla and Opera are doing The Right Thing.

--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>

Jul 20 '05 #4
> It is widely known that MSIE 5+ does not support overflow: visible the
way the CSS2 spec. defined that declaration.


Seem like that you didn't get the idea...

IMHO, it is just a bug reproduced in both Mozilla and Opera.
They have problems counting margins declared in body element.

Andrew Fedoniouk.
http://terrainformatica.com


Jul 20 '05 #5
Andrew Fedoniouk wrote:
It is widely known that MSIE 5+ does not support overflow: visible
the way the CSS2 spec. defined that declaration.
Seem like that you didn't get the idea...


Or perhaps that you didn't get the idea.
IMHO,
Your opinion has little bearing on what the spec says.
it is just a bug reproduced in both Mozilla and Opera.
Well, what does the css spec say should happen? That's sort of
definitive, irrespective of your opinion.
They have problems counting margins declared in body element.


So far, all you've produced is a test showing different behavior in
different browsers and a "guess" as to which one is correct. Not very
convincing.

BTW, I see no borders at all in MSIE 5.5/Win, but I do see borders and
the overflow in Opera at a tiny window width.

--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
Jul 20 '05 #6
OK, I'll try to explain it in different way.

What we know so far:

The default value of overflow attribute is 'visible'.

(http://www.w3.org/TR/CSS2/visufx.html#overflow)

1) this will apply to body also I guess.
2) if so then generally speaking scrollbars should not appear at all in UA's
window.

And sure I am getting this:
http://terrainformatica.com/w3/p2/problem1.png
(http://terrainformatica.com/w3/p2/problem1.htm)
in Mozilla and Opera. And they are right according to CSS.

Seems like Internet Explorer always respects intrinsic content dimensions
and is using something like overflow:none
For me personally IE's behavior is more "humanistic " as it follows historic
traditions of HTML.

Since I did not find such thing as overflow:none in CSS spec I have a
question then:

How to say that paragraph dimensions will never be less
than its content in CSS?

Andrew Fedoniouk.
http://terrainformatica.com
Jul 20 '05 #7
Andrew Fedoniouk wrote:
I did not find such thing as overflow:none in CSS spec


No, but overflow:hidden is in that spec.

http://www.w3.org/TR/REC-CSS2/visufx...def-visibility

--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
Jul 20 '05 #8
> > I did not find such thing as overflow:none in CSS spec

No, but overflow:hidden is in that spec.
So what?

<quote>
hidden
This value indicates that the content is clipped and that no scrolling
mechanism should be provided to view the content outside the clipping
region; users will not have access to clipped content. The size and shape of
the clipping region is specified by the 'clip' property.
</quote>

How does overflow:hidden correlate with the task : "to show paragraph in
full" (a.k.a. overflow:none) ?

http://www.w3.org/TR/REC-CSS2/visufx...def-visibility


This link is about the 'visibility' property. Any intention or just
mistyping?

Andrew Fedoniouk.
http://terrainformatica.com

Jul 20 '05 #9
Andrew Fedoniouk wrote:
I did not find such thing as overflow:none in CSS spec


overflow:hidden is in that spec.


How does overflow:hidden correlate with the task : "to show paragraph
in full" (a.k.a. overflow:none) ?


Since you're asking for help, might want to tone down the exasperation a
tad.

I see *nothing* in the op to indicate that you want nothing clipped. And
overflow: none, which you now know doesn't exist, makes it sound like
you want the text to not overflow its box, i.e., to be hidden if at all
possible. So I was thinking of overflow: hidden.

Perhaps you could explain, from the top, what exactly you want to happen.
http://www.w3.org/TR/REC-CSS2/visufx...def-visibility


This link is about the 'visibility' property. Any intention or just
mistyping?


Should have been further up the page. Instead of visibility, I wanted to
point you to overflow: hidden (another property of overflow is visible,
hence my mistake).

http://www.w3.org/TR/REC-CSS2/visufx...opdef-overflow

--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
Jul 20 '05 #10

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

Similar topics

6
19390
by: Kai Grossjohann | last post by:
I have a frame which is supposed to contain a list of links. The clickable area of each link comprises a picture followed by some text. I want the text to be cut at the right hand side when the user resizes the frame to be "too narrow". Right now, the source for that frame looks like this: <table border="1" width="100%"> <tr...
2
6363
by: matthewmacchia | last post by:
I believe this is a Firefox bug but I was hoping someone found a workaround. I have implemented drag and drop functionality, but if I try to drag an element from a div that happens to have a div with an "overflow: auto" it seems to lose the onmouseover event for my target. Anyone come across this issue and found a resolution? Please...
1
6357
by: Simon Dean | last post by:
Hi, Im trying to learn CSS and putting a website in effect. Just getting used to DIV's and SPAN's and using the proper formatting of H1 H2 H3 etc to format HTML documents and using different stylesheets to control formatting. So far it's going pretty well, and Im just ripping up everything I knew about tables and starting with DIV's....
4
23223
by: Harry | last post by:
I just implemented an "overflow: auto" for a div in the main message window: http://www.auriance.com/docs/interaction/ This works as expected in Internet Explorer and Opera, but in Firefox it doesn't. There shouldn't be a scrollbar on the page, but instead, on the div that shows the messages. Any idea? Thanks,
4
12517
by: reycri | last post by:
I have a page that works as I intend in IE but not in Firefox: <html> <head> <title>Overflow Test</title> </head> <body style='overflow:hidden; margin:0; padding:0;'> <table border='0' cellpadding='0' cellspacing='0' style='border-collapse:collapse; width:100%; height:100%;'> <tr><td colspan='2' style='height:3em; border-bottom:1px solid
2
5232
by: Csaba Gabor | last post by:
I have a table that sizes to take up most of the page's width. The (mostly empty) rightmost cell of a particular row starts off as wide as it can, but it might be that it gets something that exceeds its initial width, such as a long web address. In this case, I would like the horizontal overflow to be active. However, it seems that if I...
5
13363
by: vunet.us | last post by:
How can I hide scrollbars which appear in my floating div element with CSS property overflow:auto? I do need to use auto overflow. Thank you.
3
10857
by: Justin England | last post by:
Background: I am working for a client putting a textbook online. The layout of the textbook is straight forward and is easy enough to style with <h?>, <p>, <uland <oltags. The text book also contains small images of a key that represent a key point within the text. In the printed book, these keys are positioned to the left of the text...
4
5065
by: obanite | last post by:
Hi! I'm having issues with css in FF and IE regarding overflow: auto and font-size. If I have a div like this: <div style="overflow: auto"> <span>ipsumlorendictowhateveripsumlorendictowhateveripsumlorendictowhateveasdasdripsumlorendictowhateverasdasdasdjasjdioasjiosdjasiojdoasjisdojiasojdo </span> </div>
0
7741
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7661
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8165
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7730
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
3692
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3686
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2163
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1256
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
984
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.