Closed
Bug 637030
Opened 14 years ago
Closed 14 years ago
Inline elements appear to have a strange 1px top margin.
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: zdk, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b12) Gecko/20100101 Firefox/4.0b12
Build Identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b12) Gecko/20100101 Firefox/4.0b12
If an element has it's css property set to "display:inline", and it's border is the same size as the border of it's container, it appears to have a 1px top-margin. A using "float" (only on the <li> elements specifically, it will not work if applied to the root <ul>) or "display:inline-block" both force the elements to fit within their borders, however the float removes the space between each <li>. The only way I can find to cause the inline elements to completely overlap the div border is to set "margin-top:-1px;" on the root <ul>, which would cause problems in other browsers. This is not a problem in Firefox 3.6.x that I have seen.
Reproducible: Always
Steps to Reproduce:
1.Create a div with a border at least 1px in size.
2.Create a nested <ul>(or <div>) with any number of <li>'s and a border the same size as the container div.
3.Set <li>'s to "display:inline"
Actual Results:
Strange appearance of 1px top margin on anything set to "display:inline"
Expected Results:
No margin.
Comment 1•14 years ago
|
||
Does the issue still occur if you start Firefox in Safe Mode? http://support.mozilla.com/en-US/kb/Safe+Mode
How about with a new, empty profile? http://support.mozilla.com/en-US/kb/Basic+Troubleshooting#Make_a_new_profile
Can you attach a test case and screenshot showing the issue?
Version: unspecified → Trunk
Comment 2•14 years ago
|
||
Reporter -> Are you still experiencing this issue? Have you tried safe mode or a new profile?
Version: Trunk → 4.0 Branch
Comment 3•14 years ago
|
||
Closing bug as Incomplete - if you are still experiencing this issue or have more information to provide feel free to post back here and we can re-open the bug. You can also get assistance by visiting the Firefox help site -> http://support.mozilla.com/en-US/kb/Ask+a+question
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•