Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
First I would like to thank you for this cool theme.
I want to increase the width of primary drop down menu. I have attached image to make it clear.
When I use a large text for primary sub-menu, it breaks into few lines. I want to make width to auto. How do I do this.
Thanks in advance.
Comments
Comment #1
ravis CreditAttribution: ravis commentedHi,
any solution
Regards:
Comment #2
ollar CreditAttribution: ollar commentedWidth in primary drop down menu (.main-menu ul.menu ul.menu) is static. It was made to avoid a bug in ie6. To change it you need to change these selector's attributes:
-line 1287: .main-menu ul.menu li ul.menu {width: (????);} /* width(ul ul li a + paddings) + paddings(ul ul li) + ~5px*/
-line 1329: .main-menu ul.menu li ul.menu li a,
.main-menu ul.menu li ul.menu li a:link,
.main-menu ul.menu li ul.menu li a:visited{width: ???};
-line 1266: .main-menu ul.menu ul.menu li.expanded a span,
.main-menu ul.menu ul.menu li.collapsed a span {padding-right:23px+???;}
also you'll need to enlarge the main-menu-bg.gif...
ps my line numbers and yours could differ)
You're welcome)
Comment #3
ravis CreditAttribution: ravis commentedThanks a lot, will try it.
Regards:
Ravi
Comment #4
ae860300 CreditAttribution: ae860300 commented>w< help
This drop-down menu how to write code
Comment #5
restyler CreditAttribution: restyler commented