Closed Bug 67631 Opened 24 years ago Closed 24 years ago

text INPUT elements are not accecpting CSS border attributes

Categories

(Core :: Layout: Form Controls, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 55336

People

(Reporter: ryan, Assigned: rods)

Details

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Macintosh; N; PPC; en-US; m18) Gecko/20010202 BuildID: 2001020208 If you apply css border attrutes to a input text element, they are ignored. For example this code: <input type="text" style="border: 0px;" name="test" value="foo"> will still have a beveled border around the control. Textfeilds and selects can be borderless. I have not yet tried checkboxes or radio buttons. Reproducible: Always Steps to Reproduce: Apply border attributes to a text input control. Actual Results: Border widths cannot be modified but colors can to some extent Expected Results: One would expect a border value of 0px or none to yeild a text element with no border.
Knowing your pain I can agree. If your page is in quirk mode it will invoke this css rule: /* Quirk: text input has fixed look in compat mode (b=25580) */ input[type="text"] { border: 2px inset ! important; padding: 1px 0 0 0; } I wish that this course had never been taken. You will never beleive how often in NG's that this is complained about along with sizing because of sans-serif fonts. If you must take off the borders for form text inputs you could always try attaching !important. Or design your form in strict DTD format. :-) I'll leave unconfirmed but i'm sure rod will say the same.
Indeed. In fact, none of the input elements (including textareas and selects) should be accepting CSS border attributes in quirks mode according to the latest comments in bug 55336. I suggest making your page a 4.01 Transitional DTD with a URI; that will enforce strict layout and allow use of Transitional 4.01 HTML. *** This bug has been marked as a duplicate of 55336 ***
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
More info: My page is displayed by Mozilla in quirks mode (intentionally - I have my reasons). textarea elements have CSS border style-rules applied exactly as IE does it - input elements do not. You just said that in quirks mode, textareas would not display with borders properly, yet mine do. The input type=text elements do not show up as they would in standards mode, but input type=submit element do. Is this as quirks mode should behave? I have mozilla 0.9 (2001050518) on Mac OS 9. The page I noticed this on is http://otherworld.aphid.net/comments.php4?item=71
Please read bug 55336. This should no longer be an issue since we have decided to change quirks to be more like standard mode here. But yes, before the change quirks mode _did_ behave as you describe.
You need to log in before you can comment on or make changes to this bug.