Closed Bug 281378 Opened 20 years ago Closed 19 years ago

absolute positioning for <hr> tags shifted downwards

Categories

(Firefox :: General, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED EXPIRED

People

(Reporter: tim, Assigned: bugzilla)

Details

Attachments

(1 file)

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Sample HTML: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <HTML> <HEAD> <title>WebForm1</title> <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"> <meta name="CODE_LANGUAGE" Content="C#"> <meta name="vs_defaultClientScript" content="JavaScript"> <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> </HEAD> <body MS_POSITIONING="GridLayout"> <form name="Form1" method="post" action="webform1.aspx" id="Form1"> <input type="hidden" name="__VIEWSTATE" value="dDwtNjI3MTU0NjQyOzs+o9FYZzDGLoyYQALVhF6qq8SslkQ=" /> <input type="submit" name="Button1" value="Button" id="Button1" style="Z-INDEX: 101; LEFT: 164px; POSITION: absolute; TOP: 24px" /> <span id="Label1" style="Z-INDEX: 102; LEFT: 292px; POSITION: absolute; TOP: 24px">Label</span> <HR style="Z-INDEX: 103; LEFT: 8px; POSITION: absolute; TOP: 24px" width="100%" SIZE="1"> </form> </body> </HTML> This was generated with ASP.NET and DevStudio 2003. The button and Label controls are absolutely positioned at 24px from the Top. The <hr> tag is also positioned at the same location, but it actually renders about 10 pixels lower on the page. Ideally, Firefox should render this exactly the same as IE6, with all three controls lined up. This bug is annoying on a form with lots of controls, where HRs are used to separate related sections into groups. In Firefox, the HRs are always incorrectly positioned. Reproducible: Always Steps to Reproduce: 1. Copy the HTML in the Details above into a file and view it with Firefox and IE6. Actual Results: HTML is rendered differently in Firefox than IE6. Expected Results: Firefox needs to match IE6.
Attached file HTML from Comment 0
HR has a default top margin of 0.5em in Mozilla. If you need layout with pixel precision you must make sure to set _all_ relevant style properties.
(In reply to comment #2) > HR has a default top margin of 0.5em in Mozilla. If you need layout with pixel > precision you must make sure to set _all_ relevant style properties. Thanks! That was definitely the issue and it's working nicely now. Would you consider this a Firefox bug? Or is it an IE bug? Code like this is becoming more common since ASP.NET generates it by default.
This is an automated message, with ID "auto-resolve01". This bug has had no comments for a long time. Statistically, we have found that bug reports that have not been confirmed by a second user after three months are highly unlikely to be the source of a fix to the code. While your input is very important to us, our resources are limited and so we are asking for your help in focussing our efforts. If you can still reproduce this problem in the latest version of the product (see below for how to obtain a copy) or, for feature requests, if it's not present in the latest version and you still believe we should implement it, please visit the URL of this bug (given at the top of this mail) and add a comment to that effect, giving more reproduction information if you have it. If it is not a problem any longer, you need take no action. If this bug is not changed in any way in the next two weeks, it will be automatically resolved. Thank you for your help in this matter. The latest beta releases can be obtained from: Firefox: http://www.mozilla.org/projects/firefox/ Thunderbird: http://www.mozilla.org/products/thunderbird/releases/1.5beta1.html Seamonkey: http://www.mozilla.org/projects/seamonkey/
This bug has been automatically resolved after a period of inactivity (see above comment). If anyone thinks this is incorrect, they should feel free to reopen it.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → EXPIRED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: