posted
I'm building a spry nav bar with submenus. I am trying to insert a background image (As per Essential Guide to DW CS3, CSS, Ajax, PHP). When I insert in ul.MenuBarHorizontal a, it accepts in main bar without submenus, however in items with submenus, however in iems WITH submenus, it only shows on the submenu items, not the main. Where can I insert to show on the main menu items uniformly including the items that have submenus? Any ideas would be appreciatedPosts:
3 | From:
aichi | Registered: 10-31-07
posted
Sorry you feel neglected, Simon. You mention one of my books in your question, but my book doesn't cover the addition of background images to a Spry navigation bar. Consequently, the only way I could answer this question would be to sit down and run a series of tests. If I'm lucky, it might take me half an hour. It might take me considerably longer.
If there's a problem with instructions that I've given in a book, I give that top priority. However, it's unreasonable to expect me to work out the answer to everybody's problems. Grateful though I am that you have bought three of my books, my time is limited. It may seem that I give very detailed help to some people, but that's usually because I have the answer to their problem already up my sleeve.
In the case of customizing a Spry menu the way that you want to, I don't have a ready-made answer. Except, perhaps, to suggest that you're taking the wrong approach. Spry menus are meant to be a replacement for the old Dreamweaver Pop-Up Menus, which don't use images. To build a menu with images, you should consider using the CSS menus created by Fireworks.
In the CSS, file about line 95 you will want to Modify the following lines:
HERE IS THE ORIGINAL BLOCK OF CODE ul.MenuBarHorizontal a { display: block; cursor: pointer; background-color: #CCCCCC; padding: 0.5em 1.25em; color: #000000; text-decoration: none;
AND MODIFY IT WITH
ul.MenuBarHorizontal a, li /*NOTICE ADDITION of LI Tag*/ { display: block; cursor: pointer; background-image:url(../assets/menugradient.gif); /*PATH TO IMAGE FILE*/ background-repeat:repeat; /*REMEMBER TO REPEAT IMAGE*/ padding: 0.5em 1.25em; color: #000000; text-decoration: none;
}Posts:
1 | From:
United States | Registered: 11-11-07
posted
Thankyou Shane for your response. I actually fixed the problem as a "fix" that all the menu buttons need to be uniform as either with drop downs or no drop down menus. Sorry for my slow response as I was hoping for a response from David Powers before I actually got pissed off with him for yet again a 'nothing' response all too slow... sadly, I expected better.... However, I WILL succeed in becoming a proffessional designer regardless of Mr power' s lack of communication skills toward those he deems 'beneath' him. How I wish we could all be as smart as he. I will not be returning to this forum as I find Mr Powers to be somewhat belittling through this contact and others in the past. Regards, One of the 'Little people'Posts:
3 | From:
aichi | Registered: 10-31-07
posted
If I have made a mistake in my book, or if people find it difficult to follow the instructions, I feel obliged to offer such people help. However, buying a book (or even three) isn't a ticket to unlimited free support.
I hope you succeed in your efforts to become a professional designer. The way to do it is to experiment - as you have done. One thing you might also learn along the way is that being offensive to people you want to help you usually doesn't produce the results you're hoping for.
posted
Oh yeah Shane ! Way to go ! But I found that to make it work with IE, I needed to add code to the hacked section of the SpryMenuBarHorizontal.css (at the very end).
I agree with you David.... I'm happy I bought your book, I got it from Amazon this morning, and it brings me here now to this forum. LOLPosts:
1 | Registered: 09-16-04