Set the width of the superfish Control

Source: Internet
Author: User

Superfish is a Menu Control Based on jquery, which is easy to use and easy to configure.

For details, see: http://users.tpg.com.au/j_birch/plugins/superfish/#getting-started

 

When I was using superfish today, I felt that its menu items were somewhat wide and there was a visual conflict with my original page style. So I tried to change it.

 

The method is as follows:

1. Find the superfish.css file and open it.

2. Find

. SF-menu Li: hover ul, <br/>. SF-menu Li. sfhover ul {<br/> left: 0; <br/> top: 2.5em;/* match top ul list item height */<br/> Z-index: 99; <br/>} 

Modify the top value, which is the distance between the sub-menu and the parent menu.

3. Find

. SF-menu A {<br/> border-left: 1px solid # FFF; <br/> border-top: 1px solid # cfdeff; <br/> padding :. 75em 1em; <br/> text-Decoration: none; <br/>} 

Padding:. 75em this is the top filling height of the menu item. You can change it to a smaller value.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.