开发者

Spacing between li - how to remove?

开发者 https://www.devze.com 2023-02-12 23:43 出处:网络
At this site and within the navigation are nav titles.As you can see there is an unnecessary space between each nav title and I am stumped as to why this is.Check out \"classes,\" nav to get开发者_如何

At this site and within the navigation are nav titles. As you can see there is an unnecessary space between each nav title and I am stumped as to why this is. Check out "classes," nav to get开发者_如何学编程 a good view of too much space.

I've been at this for a bit and to the point where I thought I'd ask around for a suggestion or tip.


li {
  margin-top:0;
  margin-bottom:0;
  padding-top:0;
  padding-bottom:0;
}

And for another <li> vertical spacing adjustment option:

li {
  line-height:1.2em;
}

Look for anything involving height (i.e. line 324):

li, li a{
  height:32px;
}

Note: I'm not sure what your xmargin or xheight in your CSS is for

0

精彩评论

暂无评论...
验证码 换一张
取 消