Does not display css pages correctly

RESOLVED INVALID

Status

()

Firefox
General
RESOLVED INVALID
10 years ago
10 years ago

People

(Reporter: Oskar Edlund, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Reporter)

Description

10 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9

I have a web page that has this: 

 dd b { margin-right: 1ex; width: 8ex; text-align: right; }


css style type and it does not display the same in Firefox and in IE. I believe the fault is in Firefox. 

If you want to I can send you the whole page and a picture of it in IE and Firefox. 

Reproducible: Always

Steps to Reproduce:
1.
2.
3.

Comment 1

10 years ago
(In reply to comment #0)
> If you want to I can send you the whole page and a picture of it in IE and
> Firefox. 

Yes, please upload the files using the "Add an attachment" link on the bug report.

Comment 2

10 years ago
> dd b { margin-right: 1ex; width: 8ex; text-align: right; }

Unless you set the 'b' element to 'display:block', the 'width' won't be applied. '<b>' is an inline element.
http://www.w3.org/TR/CSS21/visudet.html#propdef-width
http://www.w3.org/TR/html401/present/graphics.html#edef-B

IE 6 is wrong (and IE 7 in Quirks mode).
(Reporter)

Comment 3

10 years ago
Created attachment 288813 [details]
A screen dump of the problem
(Reporter)

Comment 4

10 years ago
Created attachment 288814 [details]
The source file of the page that is displayed wrong in Firefox but OK in IE

Updated

10 years ago
Attachment #288814 - Attachment mime type: text/plain → text/html

Comment 5

10 years ago
philippe is right. The bug is in IE which allows 'width' for inlines.

I guess you could add "display:-moz-inline-block; display:inline-block;"
to that rule, or simply use a table instead...

-> INVALID
Status: UNCONFIRMED → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.