This is a discussion on "Background colour rollover?" within the Web Page Design section. This forum, and the thread "Background colour rollover? are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Background colour rollover?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Background colour rollover?
Hi,
I have a vertical navigation menu, and on this navigation menu I have a number of links, which I want the background colour to change when rolled over. Currently I have this in place, but because of different sized texts the padding makes that one wider, so how can I change the width of the rollover background so that they are all the same? Thanks Cracka
__________________
Check out my Portfolio cfdesignz.co.uk and my blog at blog.cfdesignz.co.uk
|
|
|
|
#2
|
||||
|
||||
|
Re: Background colour rollover?
is it an image or just colour that is changing?
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 2008)
|
|
#3
|
|||
|
|||
|
Re: Background colour rollover?
Just a colour.
Why would it be easier if it was an image? because I could easily add that, just it has bugged me for a while, so just wanted to know how it is done.
__________________
Check out my Portfolio cfdesignz.co.uk and my blog at blog.cfdesignz.co.uk
|
|
#4
|
||||
|
||||
|
Re: Background colour rollover?
Can I see your code?
You could try giving the li display:block. But usually its best to apply padding. If I can see your code I can explain further what I mean lol.
__________________
Jack Franklin - Webforumz Moderator (x)HTML | CSS | PHP | MySQL | JQuery (Javascript) Contact: My Blog | Twitter | Delicious Want Lessons? PM me. If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
|
|
#5
|
|||
|
|||
|
Re: Background colour rollover?
Hi,
ok here is my code, I am using wordpress here by the way, so it has some php in it.
Thanks Cracka
__________________
Check out my Portfolio cfdesignz.co.uk and my blog at blog.cfdesignz.co.uk
|
|
#6
|
||||
|
||||
|
Re: Background colour rollover?
Ok. Give this a try, changes are in bold
__________________
Jack Franklin - Webforumz Moderator (x)HTML | CSS | PHP | MySQL | JQuery (Javascript) Contact: My Blog | Twitter | Delicious Want Lessons? PM me. If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
|
|
#7
|
|||
|
|||
|
Re: Background colour rollover?
Thanks alot for that Jack, that is working now
Cheers!
__________________
Check out my Portfolio cfdesignz.co.uk and my blog at blog.cfdesignz.co.uk
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Background colour change. | A800 | JavaScript Forum | 4 | Jun 6th, 2008 12:16 |
| Background colour for the whole coloumn | Deagle | Web Page Design | 5 | May 19th, 2008 14:53 |
| IE 6 background colour problem | jdrawmer | Web Page Design | 2 | Feb 6th, 2008 13:50 |
| Change Background colour based on input | smudge618 | JavaScript Forum | 2 | Feb 6th, 2008 11:55 |
| is there anyway to blend from one background colour to anoth | benbacardi | Web Page Design | 1 | Apr 23rd, 2004 17:47 |