Closed
Bug 187287
Opened 22 years ago
Closed 22 years ago
css position relative causes object to be clipped by browser
Categories
(Core :: Layout: Positioned, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 174149
People
(Reporter: jconnolly, Unassigned)
Details
Attachments
(1 file)
34.41 KB,
application/zip
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3a) Gecko/20021212
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3a) Gecko/20021212
When positioning an object using "position: relative" the object is clipped by
the browser. When scroll bars are aded to the browser as it is resized the
object is not within the region exposed by the scroll bars.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/REC-html401/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Language" content="en">
<link rel="STYLESHEET" type="text/css" href="PositionDemo.css">
<title>CSS Position Demo</title>
<style type="text/css">
div.container
{
width: 200px;
position: relative;
top: 100px;
left: 100px;
border: 3px solid red;
}
.content
{
position: static;
padding: 10px;
margin: 0px;
border: 3px solid blue;
}
</style>
</head>
<body>
<div class="container">
<div class="content">
this text is "position: static" in a container
using "position: relative"
</div>
<div class="content">
this text is "position: static" in a container
using "position: relative"
</div>
<div class="content">
this text is "position: static" in a container
using "position: relative"
</div>
</div>
</body>
</html>
Reproducible: Always
Steps to Reproduce:
1.create object using "position: relative"
2.resize browser to be smaller than object
3.
Actual Results:
object was clipped
Expected Results:
I epected scroll bars to be generated if the object was not within the broser
viewport.
Reporter | ||
Comment 1•22 years ago
|
||
Attachment #110420 -
Attachment mime type: text/html → application/x-zip
Attachment #110420 -
Attachment mime type: application/x-zip → application/zip
Fixed since mozilla1.3alpha.
*** This bug has been marked as a duplicate of 174149 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•