[ 2 posts ]

jbchurn

  • Username: jbchurn
  • Joined: Fri Aug 21, 2009 12:42 am
  • Posts: 67
  • Offline
  • Profile
Tags:

Do I override menubutton css correctly?

Post Posted: Thu Nov 19, 2009 2:45 pm
+0-
Hi,

I'm using YUI 2.7.0.

I'm using menubutton widget to create a icon with drop down menu but trying to override it's interface so that i doesn't looks like a menubutton. The drop down menu that I'm describing is like the icon in normal windows title where if click, will show the restore, move, size etc operations.

My menubutton id is menubuttonNav.

Code:
#menubuttonNav {
border-style : hidden;
border-width : 0 0;
background-image : none;
}
#menubuttonNav.yui-button .first-child {
border-style : hidden;
border-width : 0 0;
}
#menubuttonNav.yui-button button {
padding : 0 0;
background-image : none;
}


I seems to get what I want after doing the following CSS. But thought if someone experience can comment if I'm doing it the right way.

Thanks.

Dav Glass

  • Username: davglass
  • Joined: Thu Aug 28, 2008 9:28 am
  • Posts: 2088
  • Location: Marion, IL, US
  • Twitter: davglass
  • GitHub: davglass
  • Gists: davglass
  • IRC: davglass
  • Offline
  • Profile
Tags:

Re: Do I override menubutton css correctly?

Post Posted: Fri Nov 20, 2009 10:35 am
+0-
That will work fine, except when you want more than one ;)

You might want to consider classnames, but it's up to you.
  [ 2 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum