Jump to content

button background image in safari ?


Guest jimbo

Recommended Posts

Guest jimbo

I there,I'm new here despite that i'm using w3school for a while. Looks like the forum is as good as the site! So here's my question: Can I change the appearance of a button (input type='button') in safari ?...Here's the code :

#overview #poll input.PollSubmit_12174 {  display: block;  width: 82px;  height: 27px;  position: relative;  left: -20px;  background: URL('***************************img/default/elections/poll_submit.gif') no-repeat; /*sorry guys, the url is not yet available and is somehow private for now...*/  border: 0;}

Looks fine in Firefox, Internet Explo(d)er 6 and 7 but not in Safari where the default button image is displayed. As I can't modify the HTML source (script returned form), and that this HTML has to be pure html, i'll have to get myself out of it only by CSS. This straight button could do the job, but I had to remove any text on it to display my personnal image (f****ng graphist's truths... :) ) so I doubt that the users will know or guess that this big solid iron button means the submit of their vote for the damn poll.I wondered if the whole problem was the positioning, the displaying or even the dimensioning issue but none of it were in cause...So is there a good Samaritan that got stuck the way i am this morning? And could he gets me out of it, having my best regards and a thousand of thanks in return ? :)Jimbo

Link to comment
Share on other sites

Im not sure but i think that thats a safari/mac aqua style thing. You could just use a plain <img> tag but use some simple javascript to submit the form.

<script>function submitForm(){document.getElementById('form1').submit();}</script><form id="form1" action="form/submit.html"><img src="***************************img/default/elections/poll_submit.gif" onclick="submitForm()"/></form>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...