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 |
|
#1
|
|||
|
|||
|
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 |
|
|
|
#2
|
|||
|
|||
|
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)
|
|
#3
|
|||
|
|||
|
Re: Having trouble tweaking Chrome Menu
Quote:
this making any sense? |
|
#4
|
|||
|
|||
|
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)
|
|
#5
|
|||
|
|||
|
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.
|
|
#6
|
|||
|
|||
|
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. |
|
#7
|
|||
|
|||
|
Re: Having trouble tweaking Chrome Menu
Quote:
EDIT: scratch that, it doesn't work in IE, back to square one. |
|
#8
|
|||
|
|||
|
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)
|
|
#9
|
|||
|
|||
|
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. |
|
#10
|
|||
|
|||
|
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)
|
|
#11
|
|||
|
|||
|
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. |
|
#12
|
|||
|
|||
|
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)
|
|
#13
|
|||
|
|||
|
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. |
|
#14
|
|||
|
|||
|
Re: Having trouble tweaking Chrome Menu
Come again?
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
|
|
#15
|
|||
|
|||
|
Re: Having trouble tweaking Chrome Menu
*sigh* talk about breakdown in communication
this is the main menu code
that helping? |
|
#16
|
|||
|
|||
|
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:
|