Closed Bug 295957 Opened 20 years ago Closed 20 years ago

Unable to control a tag width attribute (with css and without)

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: itaym02, Assigned: dbaron)

References

()

Details

User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050526 Firefox/1.0+

I use css to give my a tags a backgrownd image the size of 150px, in IE it 
shows correctly, in FF I see only part of the image according to the text in 
the a tag. I tried using the width attribute of css - no help. Check the link 
with FF and with IE, it will be immediatly clear.

Reproducible: Always

Steps to Reproduce:
1.see the link with IE
2.see the link I gave you with FF
3.Now you know

Actual Results:  
na

Expected Results:  
open with IE to see expected results
Inline elements, such as span, cannot have a width/height. This is actually a
bug in IE. Use a block element instead.
Assignee: nobody → dbaron
Component: General → Style System (CSS)
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → Trunk
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
and get the code right.
You're crossing tags.
http://validator.w3.org/check?uri=http%3A//members.pundak.co.il/otherworlds/ListBehavior5.1.htm

the proper way to fix it to use the <div> for the background-image, which works fine
You need to log in before you can comment on or make changes to this bug.