This is a discussion on "Having trouble tweaking Chrome Menu" within the Web Page Design section. This forum, and the thread "Having trouble tweaking Chrome Menu are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Having trouble tweaking Chrome Menu
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Having trouble tweaking Chrome Menu
I'm doing some more tweaking to my Chrome CSS Menu i got from Dynamic Drive, trying to get the width of the dropdown to match that of the item in the menu.
What i mean is, i know that it'll be a few pixels off depending on the font, so what i want to do is instead of having 2px and 15px padding on the top, bottom, and sides of the menu items, i want to just have them at a set width, so that the dropdown can match without me guessing. anyway, here's the page http://pyramidia.webs.com/index08.html and the css file http://pyramidia.webs.com/cssjs/chromestyle08.css |
|
|
|
|||
|
Re: Having trouble tweaking Chrome Menu
Well, to me it looks like the width of the dropdown is determined by the width of the menu item. Why would you want to change it?
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
|
|
|||
|
Re: Having trouble tweaking Chrome Menu
Quote:
this making any sense? |
|
|||
|
Re: Having trouble tweaking Chrome Menu
Oh, you mean the main menu items? Like "Artwork", "Comments", etc?
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
|
|
|||
|
Re: Having trouble tweaking Chrome Menu
yup, i want to try and have those have a set width, so that the dropdown width matches the main menu item width no matter what font or style it is, as it changes since all i have to give them space is some css padding.
|
|
|||
|
Re: Having trouble tweaking Chrome Menu
Simple enough. Add the following to .chromestyle ul li:
That should do it! Cheers
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
Last edited by Stuart; Dec 20th, 2007 at 02:16. |
|
|||
|
Re: Having trouble tweaking Chrome Menu
Quote:
EDIT: scratch that, it doesn't work in IE, back to square one. |
|
|||
|
Re: Having trouble tweaking Chrome Menu
So, is it working or not? And are you sure my solution didn't work? I tried it and it worked for me. You have to be sure to change the HTML like I did.
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
|
|
|||
|
Re: Having trouble tweaking Chrome Menu
Quote:
it would be easier if i could just center the dropdown menu, and i can't seem to get that to work either. Last edited by Zonglars; Dec 20th, 2007 at 22:35. |
|
|||
|
Re: Having trouble tweaking Chrome Menu
Woah! What browser are you using?!? It's working perfectly for me and the dropdown menu is centered. I'm on Firefox!
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
|
|
|||
|
Re: Having trouble tweaking Chrome Menu
Quote:
menu: the dark grey bar across the screen that contains the titles menu item: the titles that appear in the nav bar (i.e. Artwork, Video & Audio) dropdown: the list of links that appears when you hover over a menu item dropdown item: the links in the dropdown menu (i.e. CG Art, Bionicle Music Videos) in other words, are you sure its the dropdown thats centered and not the overall menu and/or the text in it? this is the dropdown on my screen click for screenshot see how the dropdown list is a few pixels short on the left of the highlight? i'd like to either center it or control the width of the highlight so it matches the dropdown, instead of guessing the other way around. Last edited by Zonglars; Dec 20th, 2007 at 23:58. |
|
|||
|
Re: Having trouble tweaking Chrome Menu
Woah! That is not XP!
Now to the menu. I see what you're saying. Let me see. OK. In the dropdown menus, the code has a style tag with a width specification. Change that width to the same as the main button. Here's one of the dropdowns:
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
|
|
|||
|
Re: Having trouble tweaking Chrome Menu
Quote:
the problem is i can't seem to be able to control the width of the main buttons, through the css for the list item or the anchor. |
|
|||
|
Re: Having trouble tweaking Chrome Menu
Come again?
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
|
|
|||
|
Re: Having trouble tweaking Chrome Menu
*sigh* talk about breakdown in communication
this is the main menu code
that helping? |
|
|||
|
Re: Having trouble tweaking Chrome Menu
But that's the problem! The HTML you posted is not the HTML on your site! The one on your site is:
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
|
|
|||
|
Re: Having trouble tweaking Chrome Menu
Yeah, but i just fixed that and it still won't do it. on top of that, i don't want all the buttons to be the same width.
lets take this from a different angle and see how to center the dropdown. like i said, in my screen shot, the menu's left side is lined up with that of the button, but it's a few px short on the right side. i would just trial&error it to work but i'd have to start from scratch if the font type or size was changed. so since i can't seem to give the buttons a set width, lets see if we can figure out how to center the dropdown so its left and right sides are equal distance from the buttons left and right sides. unless you want to show me your fix as a rendered page. thanks for helping though. |
|
|||
|
Re: Having trouble tweaking Chrome Menu
OK. Try this to stretch the dropdowns:
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
|
|
|||
|
Re: Having trouble tweaking Chrome Menu
*sigh*
sorry to sound ungreatfull but that's what i've been doing, its just the width of the buttons change if i change the font, so i'd have to adjust it over and over again, i guess it's just easier if i can center the dropdown. |
|
|||
|
Re: Having trouble tweaking Chrome Menu
You're entire code is a bit weird. I'm not sure how you could do all of this. You would need to get rid of all the width specifications on the page. They are overriding the ones set in the CSS...
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Login trouble | ziggi | PHP Forum | 2 | Dec 18th, 2007 02:38 |
| [SOLVED] flyout menu trouble | mykl | Web Page Design | 4 | Nov 16th, 2007 09:44 |
| Having trouble with PHP | voodoo465 | PHP Forum | 5 | Feb 20th, 2007 21:47 |
| Tweaking Adobe CS2 Flash Gallery Template | kenneth fix | Flash & Multimedia Forum | 1 | Oct 9th, 2006 17:40 |
| CGI Trouble | Maverick25r | Other Programming Languages | 0 | Jul 31st, 2006 18:24 |