Solved

Safari rendering submit button as image incorrectly

Posted on 2009-03-31
5
541 Views
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?
CSS:
 

.MenuButton2 {

	float:left;

	background-image: url("/icns/span.png");

	height: 18px;

	width: 100px;

	text-align:center;

	font-size: 11px; 

	font-family: "Lucida Grande", "Lucida Sans Unicode", Arial, Verdana, sans-serif;

	text-decoration: none; 

	border-right: .1em solid #999;

	overflow: hidden; }
 
 

HTML:
 

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

Open in new window

button.jpg
0
Comment
Question by:aeg1s
5 Comments
 
LVL 30

Expert Comment

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

Expert Comment

by:level9wizard
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">

To:
<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;
0
 

Author Comment

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

Accepted Solution

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

Expert Comment

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

Thanks!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

"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…
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

929 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now