This is a discussion on "background color switch on button problem" within the Web Page Design section. This forum, and the thread "background color switch on button problem are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
background color switch on button problem
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
background color switch on button problem
Hi.. i have a small problem that i am struggling to resolve
i am using a png images with transparency for button rollovers with the background colors changing on hover etc..check it out here...(doesnt work in interent explorer 6 yet) http://www.matthewmoore.me.uk/testsite/ i have checked all conceivable borders/margins etc that there could be on "a img" or "a" tags, but the background color change for hover comes in 3 pixels too low...seems like on all browsers anybody got any ideas..and help is much appreciated.. Matt |
|
#2
|
||||
|
||||
|
Re: background color switch on button problem
Firstly, there aren't any "buttons" on your page at all, you have links; buttons are used in forms.
Here is some general advice. You are using images for text, this is usually a bad idea. For one, it doesn't help with SEO at all and it is far easier and faster to download using text. Additionally you are using an orange strip image for the background, instead of this you could just change the background-color property to the same colour of orange to get the same effect. To resolve that a bit of blue lies above the orange on rollover, you could try giving #navigation's padding property a zero value ( #navigation { padding: 0; } ) or adding some padding-top to your #navigation a's. I'm not too sure though as I haven't used CSS properly in months. I have feeling this should work though:
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Last edited by alexgeek; Aug 2nd, 2008 at 04:07. |
|
#3
|
|||
|
|||
|
Re: background color switch on button problem
thanks for the advice...
padding-top 3px worked the "#navigation a" but still has 3 pixels beneath that i cant seem to get rid of... ill work it out though, or just change the method a little... thanks |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Having a problem with background color? | jaambees | Web Page Design | 2 | Jan 4th, 2008 03:05 |
| background color in xml | kool77 | Other Programming Languages | 2 | Jul 7th, 2007 16:30 |
| Problem with a switch case | humnbird88 | JavaScript Forum | 2 | Sep 5th, 2005 08:04 |
| background color | kaz | Web Page Design | 1 | Apr 20th, 2005 12:43 |
| javascript button color | Monie | JavaScript Forum | 5 | Feb 11th, 2005 11:56 |