Forum Moderators: open

Message Too Old, No Replies

XHTML validation problems with Nescape

image input problems.......

         

webgirl

11:14 am on Jul 10, 2003 (gmt 0)

10+ Year Member



Hi,

I'm probably doing something really stupid here but please bear with me :)

I have a submit button as an image. I set the style sheet to say border as 0 (for those lovely older netscape browsers), but it's ignoring it and putting a border round it. I put the border="0" back into the input tag instead and now obviously the xhtml validator is failing me saying it's not xhtml compliant.

Is there a really simple way round this that I'm missing?

Hope someone can help me.......

BlobFisk

11:25 am on Jul 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, webgirl!

Could you post the CSS for the border property? Does your CSS validate?

webgirl

11:34 am on Jul 10, 2003 (gmt 0)

10+ Year Member



Sure.....not much to see, but it's below.....

input.searchbtn {border: none;}

webgirl

11:36 am on Jul 10, 2003 (gmt 0)

10+ Year Member



Hi - sorry, just re-read your message.....yes, the CSS validates...

webgirl

11:42 am on Jul 10, 2003 (gmt 0)

10+ Year Member



Sorry, I probably should have explained it's working ok in IE and later versions of Netscape, but not Netscape 4.73.......

BlobFisk

1:25 pm on Jul 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ahhh.. then I think that this is due to Netscape 4.x pitiful CSS support.

I think that trying to cater for this may be more trouble than it's worth. The user still sees a button - if an unstyled one.

webgirl

1:32 pm on Jul 10, 2003 (gmt 0)

10+ Year Member



Hmmm, had a feeling that may be the verdict.....oh well, at least I know that I wasn't doing anything wrong!

Thanks for your help.....

tedster

1:56 pm on Jul 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I had an answer posted here, and then I realized I was not exactly on topic because I was talking about img borders on links, not on input elements.

Here's the deal. Netscape 4 is similarly cranky when trying to eliminate a border around a linked image. Styling the img tag doesn't get any respect at all. But if you also style the anchor tag as border:0 then it works.

However, I tried that approach with input inside a form, and it's a no-go. Netscape 4 is notorious for problems with all "box" related styles. I've totally given up on it and gone to standards, all except for one client.

hartlandcat

9:17 pm on Jul 11, 2003 (gmt 0)

10+ Year Member



I shouldn't worry about minor presentation details in Netscape 4.x -- it will never make the majority of today's web look good. Just make sure your site is functional in it, and everything's fine.