473,473 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Can you underline a button in Firefox without quirks mode?

2 New Member
Consider this code:

Expand|Select|Wrap|Line Numbers
  1. <input type="button" value="u" style="text-decoration: underline;" />
With a complete doctype definition, Firefox will not render the underline, but IE will. With an incomplete doctype definition, Firefox renders the page in quirks mode, and the underline is rendered. I want the underline to render, but I don't want the page to load in quirks mode. Is there a way to make this happen?
Oct 2 '07 #1
3 7171
drhowarddrfine
7,435 Recognized Expert Expert
What you are doing with that markup is actually trying to underline a value or property of the element, somethingi CSS doesn't do. The fact that it happens at all is just a matter of luck. You might look into 'button' since it's more flexible but I couldn't get 'underline' to work there either.

Most browsers are different on what they allow for styling in forms. You can frequently style the borders the text is in, and the colors or fonts, but little else.
Oct 2 '07 #2
DiMono
2 New Member
Actually, someone on another forum found a solution. For some reason (we honestly don't know why), if you apply any of the following (or some variants of them) to a button:

Expand|Select|Wrap|Line Numbers
  1. position: absolute;
  2. display: block;
  3. float: left;
the underline shows up. So my solution was to reverse the order of my buttons, float them all to the right, and now the underline shows up. I've updated this page with one of them, and you can see it works.

Any idea why this works?
Oct 2 '07 #3
drhowarddrfine
7,435 Recognized Expert Expert
There are many things that will work if you apply them but that doesn't mean they're standard or reliable. And this may be just one of those things.
Oct 2 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Csaba2000 | last post by:
How can I dynamically resize a button in Opera? The following code works for both IE 5.5 and NN 6.1, but Opera 7.01 is not budging. Any ideas? Thanks, Csaba Gabor from New York <!DOCTYPE...
5
by: Gustaf Liljegren | last post by:
I use to trust Firefox, but in this case, I don't know what to think. My test page: http://gusgus.cn/test/index.html IE6 does the right thing. The containting <div> is 600px, and within it,...
5
by: aznFETISH | last post by:
I have had this on a page for a long time <span style="text-align:left;text-indent: 0em;line-height:12pt;font-family: futura, helvetica, arial, sans-serif;font-weight: normal;font-size:...
8
by: lkrubner | last post by:
Am I wrong, or do paragraphs have extra space on top in FireFox, when compared to Microsoft IE. The top of this page is an example: http://www.publicdomainsoftware.org/index.php?pageId=299 The...
14
by: expertware | last post by:
Ok! to avoid confusion I will start a new argument. Thanks!! FIREFOX 1.0.7 AND IE6 viewed through DATATIME: a summary REPORT ===============================================================...
10
by: Chris Sharman | last post by:
See http://services.ccagroup.co.uk/testlink.html It's valid html 4.01 transitional. It contains 6 links: A1-A3, and B1-B3. A is with no (default) style, B has "a img.nound { text-decoration:...
17
by: Eric | last post by:
I'm new to JavaScript and I wrote this code to play with. Oddly, if I enter text in a box and then press the button, I only get the onChange event for the text box and not the button's onclick...
18
by: Diogenes | last post by:
Hi All; I, like others, have been frustrated with designing forms that look and flow the same in both IE and Firefox. They simply did not scale the same. I have discovered, to my chagrin,...
9
by: =?Utf-8?B?Sm9obiBCYWlsZXk=?= | last post by:
I have a ASP .Net page that allows moving around items on the page through javascript. This page works fine in IE. In FireFox however, I have found that if the page is using XHTML 1.0...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.