This is a discussion on "CSS Menu" within the Web Page Design section. This forum, and the thread "CSS Menu are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
CSS Menu
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
CSS Menu
Ok so I have a problem. I am looking for a horizontal menu with a fixed height of about 60px, where the text is at the bottom of the division and the rollover background takes up the whole height of the div. An example of the type of menu I am looking for is the one at Griffin Web Design. If anyone could help me I would greatly appreciate it!
|
|
|
|
|||
|
Re: CSS Menu
Alright. I took a look at the stylesheet. Here is what I found:
![]() The first half is the original :: it is positioned left so that only that half is being displayed. The second half is the :hover class :: this appears when the mouse rolls over the div, changing the background position to right. In other words, the background image is moved around according to the position of the mouse. Am I making sense? Try looking through the CSS a bit, and see if you can figure it out. However, I would be glad to assist you further Cheers, SWagner
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
Last edited by Stuart; Oct 25th, 2007 at 01:48. |
|
|||
|
Re: CSS Menu
So do you think I could do this an easier way with lists or is that the best way?
I think I understand what you are saying but as far as photoshop or fireworks go, I can make images but I do not know how to slice them or make them into buttons. Last edited by defy; Oct 25th, 2007 at 02:03. |
|
|||
|
Re: CSS Menu
I have another easy example on this hover button, all you have to do is set a div width to the size of the button that you want to create. In this example, the width of the button is 157px.
as you see, the "menu a", is set to "0" "0" so that it will display the left most image, in this example, it's the yellow color button. when you hover the link, it will shift the image so that it will display the center image, and so on.. Here is the CSS:
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
|||
|
Re: CSS Menu
Quote:
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
|
|
||||
|
Re: CSS Menu
Another point is that you don't NEED images. If all you want is to change the background color, then just use CSS.
If you have a look at my portfolio, my menu doesn't use images at all. All css |
|
|||
|
Re: CSS Menu
Hi defy,
If you have any trouble setting up your navigation just give us a holla and I'll help you along the way. I think this is the best way to go with navigation when you change position rather than use a different image on hover because you get to lag/wait for the new image to appear. Regards Andy www.griffinwebdesign.co.uk |
|
|||
|
Re: CSS Menu
You might find this site helpful it has lots of examples of different menu styles
http://css.maxdesign.com.au/listamatic/ I find it very useful |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| css menu | csun | PHP Forum | 4 | Aug 1st, 2007 20:37 |
| I have a normal css menu, but want ot add drop down menu to it | multichild | Web Page Design | 7 | Jan 9th, 2007 16:07 |
| Add Sub Menu | DannyP43 | JavaScript Forum | 10 | Sep 3rd, 2006 19:47 |
| CSS menu | cbrams9 | Web Page Design | 1 | Aug 3rd, 2006 15:46 |
| Help with pop-up menu please!!!?? | aseriouslyfunkydiva | Graphics and 3D | 1 | Nov 16th, 2005 15:11 |