Hi guys - I need help again. I have a different client that purchased a template and likes the menu but wants a couple of the links to be dropdown style. I have added the code but it doesn’t look or work correctly. I do not want the images for the main nav to be included in the dropdown because it just wouldn’t look right considering how the images are put together. Just a background color or different image will be fine that matches the theme. However, since this is a purchased template I am working with, I am having trouble getting the code to work correctly. The dropdown is not hidden like it should be when the submenu is not hovered over.
#header .menu li li,#header .menu li li a{float:none; width:100px;} #header .menu li li{margin:0} #header .menu li li a{border:1px solid #ccc; margin:0 0 -1px; padding:5px; width:100px; background:#f2f2f2;}
the images expancd and contract according to the size of the text they cover. They are specifically designed to go with the template meaning they have a wite background that looks terrible if it is not directly in the menu part…I guess that I could adjust the images to be transparent so when the dropdown happens, there is not a white background piece showing. I just want to make sure this can either work or not work so I can tell the client this is as far as I can tweak it.
Your link doesn’t seem to be working anymore so I can’t test this for you.
You can have images for the drop downs but as you already said they would need to have transparent corners if they need to pass over different backgrounds. of course if the corners are transparent then you can’t have a background colour or image to the underlying element either because that would show through the transparent corners.
It means that the corners need to be in their own elements at each side and not overlap the background colour of the link.
You would be better off having a fixed width dropdown with a single round image and making sure the link content doesn’t wrap to another line. Using images in dropdowns is very slow in IE though and becomes very clunky to use.
Here is the link…http://www.foxdenwebsolutions.com/mitch/index.html. If I do use separate images for the dropdown as you stated above, which line of the CSS code do I put them in so they show properly? Would I have to change the images that are already included in the template? Might be more complicated than I thought if I have to create new images that look like what is already created but as a single image instead of 3 parts. Why do they make templates so difficult to tweak?!