Closed
Bug 93585
Opened 24 years ago
Closed 24 years ago
image positioned absolute with div
Categories
(Core :: Layout, defect)
Tracking
()
People
(Reporter: bugzilla, Assigned: attinasi)
References
()
Details
(Keywords: testcase)
Attachments
(1 file)
|
698 bytes,
text/html
|
Details |
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.3) Gecko/20010801
BuildID: 2001080110
page http://www.djclark.co.uk/index.html the 'core' image is displayed to the
top left, it should be displayed behind the text "orditur telas" in the bottom
right of the page.
Reproducible: Always
Steps to Reproduce:
1. view page with mozilla
2. view page with Opera (or IE5)
3. compare
Actual Results: image is displayed top left
Expected Results: image should be displayed behind text "orditur telas" at
bottom right
.ot {
background-color: #225566; color: #FFFFFF;
background-image: url(IMAGES/py225566.jpeg);
margin: 0em inherit;
border: 0px inherit;
padding: .3em 0em 2.2em;}
div.otlogo {
margin-top: 27px; padding-top: 0px;}
p.otpara {
font-family: "Lucida Sans Unicode","Lucida Sans","Univers","Trebuchet
MS",sans-serif;
font-size: 1em;}
div.otbox {
font-family: "Utopia Black","Utopia Bold","Utopia","utopia","Georgia",serif;
font-weight: 800; font-size: 1.7em;line-height: 1em;
margin: 0px 0em 0px;
padding: 0px 0em 0px;
text-align: center;float: right;
position: relative; z-index: +1;
width: 10em; height: 45px;}
img.otimg {
position: absolute; z-index: -1;
top: -27px; left: +4em;}
span.otnav{display: none;}
<div class="ot">
<div class="otlogo">
<div class="otbox"><img class="otimg" src="IMAGES/core72t.png" alt="logo"
width="72" height="72" /><a
href="http://www.orditur-telas.com/">«</a>orditur telas<span
class="otnav">»</span></div>
<p class="otpara"><a href="cv.html">David Clark</a>, <a
href="http://www.annetterubery.co.uk/">Annette Rubery</a>, <a
href="http://www.peterrubery.co.uk/">Peter Rubery</a></p>
</div>
</div>
Reproduced on WinXP 2001080120
Summary: image positioned absolute with div → image positioned absolute with div
Comment 2•24 years ago
|
||
Comment 3•24 years ago
|
||
Hmm, it appears as if the absolutely positioned image is being placed with
respect to the root containing box rather than its own containing box (that of
div class="otbox"). Confirming and sending to Style System.
Assignee: karnaze → pierre
Status: UNCONFIRMED → NEW
Component: Layout → Style System
Ever confirmed: true
QA Contact: petersen → ian
Comment 4•24 years ago
|
||
Block Layout : reassigned to Marc.
Assignee: pierre → attinasi
Component: Style System → Layout
| Assignee | ||
Comment 5•24 years ago
|
||
This is a dup of bug 67543 (position of abs pos element withing floated rel pos
containing block is ioncorrect). Note that if you make the containing block
(div.otbox) in the testcase non-floated then the abs pos block positions correctly.
*** This bug has been marked as a duplicate of 67543 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•