Closed
Bug 331146
Opened 20 years ago
Closed 20 years ago
Doesn't obey margin-left:auto;margin-right:auto; on <ul> tags.
Categories
(Core :: Layout: Block and Inline, defect)
Core
Layout: Block and Inline
Tracking
()
RESOLVED
INVALID
People
(Reporter: hellish, Assigned: dbaron)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
The linked page should have the items in the unordered list centered within their containing div, but doesn't.
Reproducible: Always
Steps to Reproduce:
1.Browse to a page with <ul><li>s that have style="margin-left:auto;margin-right:auto;"
Actual Results:
The items have default position.
Expected Results:
They should be centered.
It looks like it's only auto declarations that aren't obayed, while absolute measurements are.
Comment 1•20 years ago
|
||
Well, you haven't set a width on the <ul> so it's as wide as the whole page width.
Or you want the text inside the <ul> to be centered? Then use text-align: center.
Updated•20 years ago
|
Assignee: nobody → dbaron
Component: General → Style System (CSS)
OS: Windows XP → All
Product: Firefox → Core
QA Contact: general → ian
Hardware: PC → All
Version: unspecified → Trunk
| Assignee | ||
Comment 2•20 years ago
|
||
comment 1 is correct. Marking bug invalid.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Component: Style System (CSS) → Layout: Block and Inline
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•