Removing the group name and title space in a legend

860
3
Jump to solution
11-05-2013 11:14 AM
KenBuja
MVP Esteemed Contributor
I've been able to remove the group name and title from my legend, leaving only the swatches and labels using the CSS
.esriLegendLayerLabel {      visibility: hidden; }


However, this leaves me with a large empty space above the legend. How would I remove that in addition?

[ATTACH=CONFIG]28880[/ATTACH]
0 Kudos
1 Solution

Accepted Solutions
MattLane
Occasional Contributor II
yeah, you don't want visibility:hidden, you want display:none

View solution in original post

0 Kudos
3 Replies
NumaGremling
New Contributor
The way I understand hidden is that it hides it from displaying, but it is still there as a box.

Have you tried adjusting the height?  Such as: {height: 0px;}
0 Kudos
MattLane
Occasional Contributor II
yeah, you don't want visibility:hidden, you want display:none
0 Kudos
KenBuja
MVP Esteemed Contributor
Thanks, Matt!
0 Kudos