Community
All Communities
Products
ArcGIS Pro
ArcGIS Survey123
ArcGIS Online
ArcGIS Enterprise
Data Management
Geoprocessing
ArcGIS Web AppBuilder
ArcGIS Experience Builder
ArcGIS Dashboards
ArcGIS Spatial Analyst
ArcGIS CityEngine
All Products Communities
Industries
Education
Water Resources
State & Local Government
Transportation
Gas and Pipeline
Water Utilities
Roads and Highways
Telecommunications
Natural Resources
Electric
Public Safety
All Industries Communities
Developers
Python
JavaScript Maps SDK
Native Maps SDKs
ArcGIS API for Python
ArcObjects SDK
ArcGIS Pro SDK
Developers - General
ArcGIS REST APIs and Services
ArcGIS Online Developers
File Geodatabase API
Game Engine Maps SDKs
All Developers Communities
Global
Comunidad Esri Colombia - Ecuador - Panamá
ArcGIS 開発者コミュニティ
Czech GIS
ArcNesia
Esri India
GeoDev Germany
ArcGIS Content - Esri Nederland
Esri Italia Community
Comunidad GEOTEC
Esri Ireland
Používatelia ArcGIS
All Global Communities
All Communities
Developers
User Groups
Industries
Services
Community Resources
Global
Events
Learning
Networks
ArcGIS Topics
GIS Life
View All Communities
ArcGIS Ideas
GIS Life
Community Resources
Community Help Documents
Community Blog
Community Feedback
Member Introductions
Community Ideas
All Community Resources
Sign In
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Show
only
|
Search instead for
Did you mean:
Cancel
Home
:
All Communities
:
Developers
:
JavaScript Maps SDK
:
JavaScript Maps SDK Questions
:
Removing the group name and title space in a legen...
Options
Subscribe to RSS Feed
Mark Topic as New
Mark Topic as Read
Float this Topic for Current User
Bookmark
Subscribe
Mute
Printer Friendly Page
Select to view content in your preferred language
Translate Now
Removing the group name and title space in a legend
Subscribe
990
3
Jump to solution
11-05-2013 11:14 AM
by
KenBuja
MVP Esteemed Contributor
11-05-2013
11:14 AM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
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]
Solved!
Go to Solution.
Tags
(2)
Tags:
javascript
web_developers
Preview file
225 KB
Reply
0
Kudos
All Posts
Previous Topic
Next Topic
1 Solution
Accepted Solutions
by
MattLane
Frequent Contributor
11-05-2013
12:12 PM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
yeah, you don't want visibility:hidden, you want display:none
View solution in original post
Reply
0
Kudos
3 Replies
by
NumaGremling
Deactivated User
11-05-2013
11:38 AM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
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;}
Reply
0
Kudos
by
MattLane
Frequent Contributor
11-05-2013
12:12 PM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
yeah, you don't want visibility:hidden, you want display:none
Reply
0
Kudos
by
KenBuja
MVP Esteemed Contributor
11-06-2013
03:00 AM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
Thanks, Matt!
Reply
0
Kudos
Post Reply