Webforumz's RSS FeedRSS Webforumz RegistrationRegister Contact Webforumz StaffContact

background color switch on button problem

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.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Aug 1st, 2008, 22:47
New Member
Join Date: Jul 2008
Location: Hinckley
Age: 27
Posts: 8
Thanks: 2
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old Aug 2nd, 2008, 04:05
alexgeek's Avatar
Moderator
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,814
Blog Entries: 9
Thanks: 2
Thanked 3 Times in 3 Posts
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:
Code: Select all
#navigation a
{
padding-top: 3px;
}
Good luck and nice design.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)

Last edited by alexgeek; Aug 2nd, 2008 at 04:07.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Aug 2nd, 2008, 13:42
New Member
Join Date: Jul 2008
Location: Hinckley
Age: 27
Posts: 8
Thanks: 2
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 19:02.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8