/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Firefox is giving pain in alignment

Guys!

I m following sliding doors technique for every possible button in my upcoming application, but here FF 3.0 & safari 4.0 is giving me pain in rendering buttons.

In FF there is one pixel problem coming from no where, and IE7+, chrome and
safari render is perfectly.. pls have a look on the code and attachment also.

Sorry the application is not online, cant post any link, But i ‘d really appreciate your quick help.

“Also, i don’t want to use 2 images for left,right corners due to speed and small jerk which comes while browsing the site first time”

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd“>
<html xmlns=”http://www.w3.org/1999/xhtml“>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<title>Untitled Document</title>
<style>
button.submitBtn {
background:url(images/Search_btnbg.png) no-repeat scroll right bottom;
margin-left:5px;
height:21px;
border:0 none;
padding:0 5px 0 0;
text-align:center;
border:0 none;
cursor:pointer;
}
button.submitBtn span {
background:url(images/Search_btnbg.png) no-repeat scroll left top;
height:21px;
line-height:21px;
padding:0 0 0 9px;
display:block;
color:#FFF;
position:relative;
font-size:10px;
text-transform:uppercase;
}
</style>
</head>
<body>
<form>
<div id=”searchbox”>
<input name=”search” />
</div>
<button value=”submit” class=”submitBtn”><span>Submit</span></button>
</form>
</body>
</html>

[upl-file uuid=76562c7b-0093-4860-8c52-695c3e1af6cd size=4kB]Search_btnbg.png[/upl-file]

[upl-file uuid=af794e76-0fe1-4e6f-97c8-17a3470435c5 size=2kB]error.png[/upl-file]

to post a comment
CSS

8 Comments(s)

Copy linkTweet thisAlerts:
@lohumihemauthorAug 12.2010 — my mistake :

Safari was typed by mistake in this para


In FF there is one pixel problem coming from no where, and IE7+, chrome and

[B]safari[/B] render is perfectly.. pls have a look on the code and attachment also.
Copy linkTweet thisAlerts:
@mikewgdAug 12.2010 — Can you perhaps put this online? So we can see it live.
Copy linkTweet thisAlerts:
@aj_nscAug 12.2010 — Can you perhaps put this online? So we can see it live.[/QUOTE]

The OP said they can't because it's not online.

It would help, though, if you could give us the background images that you reference in your code. We obviously have to have everything that you have in order to test it out ourselves.
Copy linkTweet thisAlerts:
@lohumihemauthorAug 12.2010 — The OP said they can't because it's not online.

It would help, though, if you could give us the background images that you reference in your code. We obviously have to have everything that you have in order to test it out ourselves.[/QUOTE]



yes, i cant put it online now..

@aj_nsc, i have already attached the images, pls check.....
Copy linkTweet thisAlerts:
@aj_nscAug 12.2010 — My bad.
Copy linkTweet thisAlerts:
@lohumihemauthorAug 12.2010 — did u get the image now
Copy linkTweet thisAlerts:
@aj_nscAug 12.2010 — did u get the image now[/QUOTE]

Yeah I did, and while I can get it reset so that it at least looks the same in firefox and the other browsers (remove the padding declaration on the button), I can't get it lined up properly.

I do these kinds of images quite often, but I usually just split it into two images, instead of using a sprite-like image like you, although honestly there should be no problem with doing that.

I may give it another go.
Copy linkTweet thisAlerts:
@lohumihemauthorAug 12.2010 — Thanks..... well i don't want 2 images, because when they load first time, they will make a bit jerk while rendering page.... i know it is also possible with single image....as it is not a very big problem ... but i don't know why it is not working


BTW thanks for ur prompts reply..
×

Success!

Help @lohumihem spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...