470,849 Members | 941 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,849 developers. It's quick & easy.

Netscape / IE Syntax problem or just differences?

Syntax problem

Link works w/ Netscape

<a href="passwdhlp.html">
<button type="button" name="Help" style="font: 11pt arial bold;
background white;color:red">Help!</button>
</a>

But not with IE

Any corrective suggestion or workaround

Thanks

-- Adam --
Jul 23 '05 #1
2 1468
> <a href="passwdhlp.html">
<button type="button" name="Help" style="font: 11pt arial bold;
background white;color:red">Help!</button>
</a>


I'm no expert on this but I noticed the colon is missing between
'background' and 'white'. Also, you could try 'background-color' instead of
'background'. I'm making the assumption that an error in the style section
could affect functionality.

Trevor
Jul 23 '05 #2
in comp.infosystems.www.authoring.html, Trevor Orton wrote:
<a href="passwdhlp.html">
<button type="button" name="Help" style="font: 11pt arial bold;
background white;color:red">Help!</button>
</a>

It is bad idea to make link look button, much better use plain link.
I'm no expert on this but I noticed the colon is missing between
'background' and 'white'.
Sure. Most likely because op didn't get it right, and didn't send URL to
us check it.
Also, you could try 'background-color' instead of
'background'.
That is always bad idea. What if user has
button { background-image: url(foobar)}

(somewhat unlikely though. But some browsers have such option on skinning
- not sure if it causes problems though)
I'm making the assumption that an error in the style section
could affect functionality.


Button element is useless on practically all purposes, not only because
IE doesn't support it.

Better:
If it needs to look button for some unobvious reason:

[value="help"] {color:red;background:#fff;}

<form method="get" action="passwdhlp.html"><input type="submit"
value="help"></form>

Even better:

a {color:red;border:solid 2px;background:#fff;border-color:#fff #999 #999
#fff;}

<a href="passwordhlp.html">Help</a>

Best:

<a href="passwordhlp.html">Help</a>

(whiout buttonlike style)

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by R. Russell Kinter | last post: by
9 posts views Thread by Randall Sell | last post: by
4 posts views Thread by Vik | last post: by
20 posts views Thread by W Karas | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.