Click to See Complete Forum and Search --> : What the???
Why dosen't this work in Mozilla:<input type="button" value="" style="width: 25px; background-image: url(smile.gif); background-repeat: no-repeat; background-position: center center; background-attachment: fixed;" />It works in IE and it validates! :(
PeOfEo
03-06-2004, 11:04 PM
I tested this, it works in moz if you put ' ' around the url inside of the (). But it wont work for ie like that. One solution would be to use owends hack. Ill post that in just a sec. Lol, now it works in mozilla but I cant get it to work in ie! Oh well, my ie is acting up... I think its because the proxie I been browsing through is slow and I was typeing in my server url (I use a proxie so I can mess with people when they think I am ip banned, juvenial, but what the heck.). Btw, owens hack is on the browser hack chart in my sig. http://centricle.com/ref/css/filters/tests/owen/
I just tried adding ' ' around it and nothing changed. I can still view it in IE but not Mozilla...? I checked out the owens thingy you posted and I don't really get what that does for me...? It dosn't even look like it is related to what I'm trying to do but mybe that's just my mis-inturpritation of it! :(
I still need the last question answered but I thought I would post this one too since it has to do with the same thing almost! I have this:<input type="button" value="Underline" style="text-decoration: underline;" />It displays the underline on it in IE but not in Mozilla! I also have another button that has a bold font and that works in both browsers so I don't understand why the underline wouldn't be working. I will appreciate the help with both questions! :)
PeOfEo
03-07-2004, 12:28 AM
owens hack will send a different value to ie from other browsers. The code you saw will send the value to the other browsers. You put the code for ie above it in something like
.urelement {
attribute:value;
}
You would give your input an id or class and not use the style attribute.
fredmv
03-07-2004, 12:50 AM
Originally posted by mjdimick
It displays the underline on it in IE but not in Mozilla!Sure? It should work fine.
Yeah! I checked it in both browsers... You can go here (http://mjdimick.zacknetwork.net/shout.php) to see for your self. You can also maybe look at the source to see if I have something wrong! Thanks. :)