Closed Bug 209628 Opened 21 years ago Closed 21 years ago

Text goes out of the screen

Categories

(Core :: Layout: Block and Inline, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 6976

People

(Reporter: kazhik, Unassigned)

References

()

Details

(Whiteboard: WORKSFORME?)

Text in a block wider than the screen goes out of the screen
if that block is centered.

<div align="center">
  <div style="border: 1px solid blue; width: 900px;" align="center">
    <table border="1" width="100%">
      <tbody><tr><td>aaaaa bbbbb ccccc</td></tr></tbody>
    </table>
  </div>
</div>
In future, please use the Bugzilla Helper:

   http://bugzilla.mozilla.org/enter_bug.cgi?format=guided

In particular, make sure to include an explanation of what you think the correct
result is. As far as I can tell, we render this case correctly. (There's a bug
with the scrollbars, but that's already filed.)
Whiteboard: WORKSFORME?
When the value of a width attribute is larger than window width, there is a
portion which cannot be displayed as follows.

In the case of <div align="center">...</div>,
although a horizontal scroll bar appears, the left side of a page overflows into
the outside of a window.

In the case of <div align="right">...</div>,
a horizontal scroll bar does not appear. The left side of a page overflows
similarly.

The display result which we expect is sliding a horizontal scroll bar and being
able to see all pages.

*** This bug has been marked as a duplicate of 6976 ***
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.