|
| |
|
|
chobo321321
Posts: 70 Joined: 6/5/2004 Status: offline
|
Custom Submit button - 5/15/2009 15:25:41
Hi, I have created a custom background image for a form button, but when I apply it there is a white border that is added to it that I cannot get rid of. Thanks! Here's my html and css
<button id="somebutton"><img src="/Images/submit-button-bg.jpg" /></button>
.custom-button
{
width: 108px;
height: 38px;
padding: 0px;
margin: 0px;
border: none;
cursor: pointer;
}
|
|
|
|
chobo321321
Posts: 70 Joined: 6/5/2004 Status: offline
|
RE: Custom Submit button - 5/15/2009 17:42:15
Nvm... My image was causing the problem. I needed to save it as a png and make sure the background was transparent. It's all good now.
|
|
|
|
treetopsranch
Posts: 1527 From: Cottage Grove, OR, USA Status: offline
|
RE: Custom Submit button - 5/15/2009 17:47:07
Hmm....I thought that some versions of IE could not deal with PNG transparency.
_____________________________
Don from TreeTops Ranch, Oregon "I've got a taste for quality and luxury"
|
|
|
|
chobo321321
Posts: 70 Joined: 6/5/2004 Status: offline
|
RE: Custom Submit button - 5/15/2009 17:58:28
IE 6 and up works fine.
|
|
|
|
d a v e
Posts: 4342 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: Custom Submit button - 5/15/2009 23:53:29
ie6 can't natively handle alpha transparency in pngs, only in 'normal' tranpsarency in 8-bit pngs. which one did you use?
_____________________________
David Prescott Gekko web design
|
|
|
|
chobo321321
Posts: 70 Joined: 6/5/2004 Status: offline
|
RE: Custom Submit button - 5/16/2009 12:27:19
It is an 8-bit png file. What is the difference between normal and alpha transparency?
|
|
|
|
d a v e
Posts: 4342 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: Custom Submit button - 5/16/2009 13:07:00
as i said in my last post - IE6 can't display the full transparency of 24-bit pngs with alpha transparency (where there are 256 levels of transparency available) but it can display 8-bit pngs (where one colour is set as transparent, the same as gifs)
_____________________________
David Prescott Gekko web design
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|