473,396 Members | 2,115 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

underline artifact

I have a form submit button that has a line under it that I'd like to
remove. Can't find its source. Reduced to its basics, here's the
markup. I added margin-left to reveal the troublesome line.

<style type="text/css">
#subt { margin-left: 40px; }
</style>

<form>
<ins>
<input type="submit" id="sub" />
</ins>
</form>

How do I get rid of this line? I put it on line:
http://www.hartford-hwp.com/sandbox/test.html

--
Haines Brown

Jul 20 '05 #1
12 2075
Haines Brown wrote:
I have a form submit button that has a line under it that I'd like to
remove.

http://www.hartford-hwp.com/sandbox/test.html


The line is unrelated to the form, it is applied to the <ins> element.

ins {text-decoration: none}

Keep in mind, though, that different browsers may have different default
styling for <ins>.

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Jul 20 '05 #2
On Tue, 05 Oct 2004 19:12:00 GMT, Haines Brown
<br****@teufel.hartford-hwp.com> wrote:
I have a form submit button that has a line under it that I'd like to
remove. Can't find its source. Reduced to its basics, here's the
markup. I added margin-left to reveal the troublesome line.

<style type="text/css">
#subt { margin-left: 40px; }
</style>

<form>
<ins>
<input type="submit" id="sub" />
</ins>
</form>

How do I get rid of this line? I put it on line:
http://www.hartford-hwp.com/sandbox/test.html


ins is often underlined. What I'm curious about is why you put the button
inside ins? ins implies this content was added after initial publishing of
the page. I can't see how this is correct markup.

If you're just trying to avoid putting input directly into form, use a div
instead.
Jul 20 '05 #3
Haines Brown <br****@teufel.hartford-hwp.com> wrote:
I have a form submit button that has a line under it that I'd like to
remove. Can't find its source. Reduced to its basics, here's the
markup. I added margin-left to reveal the troublesome line.

<style type="text/css">
#subt { margin-left: 40px; }
</style>

<form>
<ins>
<input type="submit" id="sub" />
</ins>
</form>

How do I get rid of this line? I put it on line:
http://www.hartford-hwp.com/sandbox/test.html


If you don't know what INS is or what its treatment in the browser is
likely to be, why are you using it?

--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ôter le premier point de mon adresse de courriel.
Jul 20 '05 #4
Neal <ne*****@yahoo.com> writes:
On Tue, 05 Oct 2004 19:12:00 GMT, Haines Brown
<br****@teufel.hartford-hwp.com> wrote:
I have a form submit button that has a line under it that I'd like to
remove. Can't find its source. Reduced to its basics, here's the
markup. I added margin-left to reveal the troublesome line.
How do I get rid of this line? I put it on line:
http://www.hartford-hwp.com/sandbox/test.html


ins is often underlined. What I'm curious about is why you put the
button inside ins? ins implies this content was added after initial
publishing of the page. I can't see how this is correct markup.

If you're just trying to avoid putting input directly into form, use a
div instead.


My reply to the group seems to have gone astray. In short, the <ins>
was originally an effort to get W3C validation. I change to <div> and
that works fine.

Thanks.

--
Haines Brown

Jul 20 '05 #5
oo-

"Harlan Messinger" <hm*******************@comcast.net> wrote in message
news:pe********************************@4ax.com...
Haines Brown <br****@teufel.hartford-hwp.com> wrote:
I have a form submit button that has a line under it that I'd like to
remove. Can't find its source. Reduced to its basics, here's the
markup. I added margin-left to reveal the troublesome line.

<style type="text/css">
#subt { margin-left: 40px; }
</style>

<form>
<ins>
<input type="submit" id="sub" />
</ins>
</form>

How do I get rid of this line? I put it on line:
http://www.hartford-hwp.com/sandbox/test.html
If you don't know what INS is or what its treatment in the browser is
likely to be, why are you using it?


I suspect its because the w3c validator has flagged up an error saying that
the <input /> needs to be contained within something else and will have
listed a whole load of useless tags such as <ins>, <del> along with the more
useful <fieldset>.

--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ôter le premier point de mon adresse de courriel.

Jul 20 '05 #6
On Wed, 6 Oct 2004 14:12:20 +0100, oo- <oo*@spam.doubleonegative.com>
wrote:

"Harlan Messinger" <hm*******************@comcast.net> wrote in message
news:pe********************************@4ax.com...
If you don't know what INS is or what its treatment in the browser is
likely to be, why are you using it?


I suspect its because the w3c validator has flagged up an error saying
that
the <input /> needs to be contained within something else and will have
listed a whole load of useless tags such as <ins>, <del> along with the
more
useful <fieldset>.


As the problem has been resolved, this is largely academic. But if the
validator is suggesting ins as useful here, it is in error.

According to the HTML 4.01 DTD, FORM can contain:

script
p
dl
div
noscript
blockquote
hr
table
fieldset
address
h1-h6
ul
ol
pre

Fieldset might be appropriate, but any of the above is better than ins,
which should NOT validate according to the DTD. So why ins was chosen is a
bit mysterious to me.
Jul 20 '05 #7
Neal wrote:
As the problem has been resolved, this is largely academic. But if the
validator is suggesting ins as useful here, it is in error.
Is it?
According to the HTML 4.01 DTD, FORM can contain:

script [...]
Fieldset might be appropriate, but any of the above is better than ins,
which should NOT validate according to the DTD.


The question is not "Which child is allowed for form?" but "Which parent
is allowed for input?"

--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Jul 20 '05 #8

"Johannes Koch" <ko**@w3development.de> wrote in message
news:2s*************@uni-berlin.de...
Neal wrote:
As the problem has been resolved, this is largely academic. But if the
validator is suggesting ins as useful here, it is in error.


Is it?
According to the HTML 4.01 DTD, FORM can contain:

script

[...]

Fieldset might be appropriate, but any of the above is better than ins,
which should NOT validate according to the DTD.


The question is not "Which child is allowed for form?" but "Which parent
is allowed for input?"


When you're inserting a level between the FORM element and the INPUT
element, the element chosen has to be included in the response to BOTH
questions.

Jul 20 '05 #9
Harlan Messinger wrote:
"Johannes Koch" <ko**@w3development.de> wrote in message
news:2s*************@uni-berlin.de...
Neal wrote:
As the problem has been resolved, this is largely academic. But if the
validator is suggesting ins as useful here, it is in error.
Is it?

According to the HTML 4.01 DTD, FORM can contain:

script


[...]
Fieldset might be appropriate, but any of the above is better than ins,
which should NOT validate according to the DTD.


The question is not "Which child is allowed for form?" but "Which parent
is allowed for input?"

When you're inserting a level


one? yes. more than one? no.
between the FORM element and the INPUT
element, the element chosen has to be included in the response to BOTH
questions.


No, ins cannot be a child, but may be a descendant of form.

form
|-p
|-ins
|-input

is valid
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Jul 20 '05 #10

"Johannes Koch" <ko**@w3development.de> wrote in message
news:2s*************@uni-berlin.de...
Harlan Messinger wrote:
"Johannes Koch" <ko**@w3development.de> wrote in message
news:2s*************@uni-berlin.de...
Neal wrote:

As the problem has been resolved, this is largely academic. But if the
validator is suggesting ins as useful here, it is in error.

Is it?
According to the HTML 4.01 DTD, FORM can contain:

script

[...]

Fieldset might be appropriate, but any of the above is better than ins,
which should NOT validate according to the DTD.

The question is not "Which child is allowed for form?" but "Which parent
is allowed for input?"

When you're inserting a level


one? yes. more than one? no.
between the FORM element and the INPUT
element, the element chosen has to be included in the response to BOTH
questions.


No, ins cannot be a child, but may be a descendant of form.


Irrelevant,since we were all talking about the user's situation where it was
a child of form.

However, I just discovered I was wrong, because I hadn't understood a
particular SGML construction. The

+(INS|DEL)

inside the BODY element declaration says that INS and DEL can appear
anywhere inside the body. So INS can appear directly inside a FORM.

Jul 20 '05 #11

"Neal" <ne*****@yahoo.com> wrote in message
news:op**************@news.individual.net...
On Wed, 6 Oct 2004 14:12:20 +0100, oo- <oo*@spam.doubleonegative.com>
wrote:

"Harlan Messinger" <hm*******************@comcast.net> wrote in message
news:pe********************************@4ax.com...
If you don't know what INS is or what its treatment in the browser is
likely to be, why are you using it?
I suspect its because the w3c validator has flagged up an error saying
that
the <input /> needs to be contained within something else and will have
listed a whole load of useless tags such as <ins>, <del> along with the
more
useful <fieldset>.


As the problem has been resolved, this is largely academic. But if the
validator is suggesting ins as useful here, it is in error.

According to the HTML 4.01 DTD, FORM can contain:

[list of elements excluding INS and DEL snipped]
Fieldset might be appropriate, but any of the above is better than ins,
which should NOT validate according to the DTD.


You're overlooking

<!ELEMENT BODY O O (%block;|SCRIPT)+ +(INS|DEL) -- document body -->

where the + in front of (INS|DEL) is an inclusion exception indicator: it
means that either INS or DEL can appear anywhere inside a BODY element at
any level.

Jul 20 '05 #12
On Wed, 6 Oct 2004 11:47:55 -0400, Harlan Messinger
<h.*********@comcast.net> wrote:

"Neal" <ne*****@yahoo.com> wrote in message
news:op**************@news.individual.net...
According to the HTML 4.01 DTD, FORM can contain:


[list of elements excluding INS and DEL snipped]
Fieldset might be appropriate, but any of the above is better than ins,
which should NOT validate according to the DTD.


You're overlooking

<!ELEMENT BODY O O (%block;|SCRIPT)+ +(INS|DEL) -- document body -->

where the + in front of (INS|DEL) is an inclusion exception indicator: it
means that either INS or DEL can appear anywhere inside a BODY element at
any level.


Well ain't that tricky.
Jul 20 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Tim Daneliuk | last post by:
I am currently underling the first character of a menu title (to indicate its shortcut/accelerator key) like this: self.WildBtn = Menubutton(self.mBar, text=WILDMENU, underline=0, state=DISABLED)...
2
by: Ed | last post by:
Don't even know if this is a javascrip thing...but how do I remove the underline from hyperlinks?
29
by: jmaxsherkimer | last post by:
the site we're working on has some anchor links, you click them they scroll to the bottom of the page with the answers to the questions linked on to. is there anyway to make it so that the links...
2
by: John A Grandy | last post by:
when using StringBuilder to build-up a block of text (which is then assigned to a Label control) is it possible to underline a portion of the text ? it would seem that...
2
by: Jeff | last post by:
hey asp.net 2.0 I have a HyperLink control on my webpage, I want this HyperLink to display a underline when mouse is hovering over it. This is NOT a html link, but a...
3
by: shapper | last post by:
Hello, How to make the underline of a link to be a dotted line like in this web site: http://www.iconbuffet.com/ Thanks, Miguel
4
by: Mr. Newt | last post by:
Hi y'all, I'm looking to put an underline under some links but not under others. I still want an underline when the link is hovered over. I've dabbled with classes for this, but all I can get...
3
by: DiMono | last post by:
Consider this code: <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...
2
by: Siv | last post by:
Hi, I want to print using the Graphics.Drawstring method but instead of using either bold or underline I want to combine both so the printed text is bold and underline?? The way I send the...
2
by: =?Utf-8?B?QmFydE1hbg==?= | last post by:
Greetings, I have a Label object defined in WPF xaml like the following: <Label Margin="0,5,0,17" Name="labelTestMsg"> <TextBlock > <Underline >My Test Message</Underline> </TextBlock>...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.