Safari rendering submit button as image incorrectly

Posted on 2009-03-31
Last Modified: 2012-05-06
I have used a image as a submit button and used CSS to style it, and everything looks OK in Firefox. However in Safari there is a box showing around the text and it will not center the text.

The attached image will show the "Update" button at the top in Firefox, and then lower it is in Safari, any ideas?
.MenuButton2 {
	background-image: url("/icns/span.png");
	height: 18px;
	width: 100px;
	font-size: 11px; 
	font-family: "Lucida Grande", "Lucida Sans Unicode", Arial, Verdana, sans-serif;
	text-decoration: none; 
	border-right: .1em solid #999;
	overflow: hidden; }
<input id="UpdateButton" name="MenuAction" type="image" value="Update" align="center" class="MenuButton2">

Open in new window

Question by:aeg1s
LVL 30

Expert Comment

ID: 24028695
Try removing the quotes from the image source.  
Let me know
LVL 11

Expert Comment

ID: 24028720
The quotes in the image source should stay - don't remove them.

Try changing:
<input id="UpdateButton" name="MenuAction" type="image" value="Update" align="center" class="MenuButton2">

<input id="UpdateButton" name="MenuAction" type="submit" value="Update" class="MenuButton2">

and control margin, padding, text alignment, and borders in your css:
borders: none;
margin: 0 auto;
padding: 2 px;
text-align: center;

Author Comment

ID: 24028807
Nope still has the image around it. The border looks like it is a missing image box.

Accepted Solution

aeg1s earned 0 total points
ID: 24305870
I have found the issue, please close the request

Expert Comment

ID: 24506283
Mind telling us how you fixed it so everyone else having this issue can benefit from what you learned?


Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
alert before form submission 6 41
Syntax Error 2 66
highcharts wont fix inside a bootstrap modal window 6 55
Change div area and length 1 28
"I want to put my photos online, but I don't want them stolen.  What settings should I use?" When You Put Photos Online First and foremost, any digital file published on the WWW can be copied, stored, modified, retransmitted, etc.  Remember Naps…
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question