{"id":2612382,"date":"2024-12-05T05:00:35","date_gmt":"2024-12-05T13:00:35","guid":{"rendered":"https:\/\/www.esri.com\/arcgis-blog\/?post_type=blog&#038;p=2612382"},"modified":"2024-12-23T14:12:10","modified_gmt":"2024-12-23T22:12:10","slug":"spruce-up-your-pop-ups-with-css","status":"publish","type":"blog","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/spruce-up-your-pop-ups-with-css","title":{"rendered":"Spruce up your pop-ups with CSS"},"author":58731,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"_searchwp_excluded":""},"categories":[22941],"tags":[29081,777522,34561,366492,776962],"industry":[],"product":[36551],"class_list":["post-2612382","blog","type-blog","status-publish","format-standard","hentry","category-mapping","tag-css","tag-flexbox","tag-grid","tag-pop-up","tag-whats-new-november-2024","product-arcgis-online"],"acf":{"authors":[{"ID":58731,"user_firstname":"Lauren","user_lastname":"Ballantyne","nickname":"Lauren Ballantyne","user_nicename":"lballantyne","display_name":"Lauren Ballantyne","user_email":"lballantyne@esri.com","user_url":"","user_registered":"2020-06-30 19:39:04","user_description":"Lauren Ballantyne is a Product Engineer on the ArcGIS Online team and has a background in environmental science and conservation ecology. Her feature areas include Map Viewer, Arcade, and hosted feature layer views. Lauren is passionate about developing intuitive tools that help create engaging, informative, and data-rich web maps.","user_avatar":"<img data-del=\"avatar\" src='https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2020\/07\/IMG_0214-213x200.jpg' class='avatar pp-user-avatar avatar-96 photo ' height='96' width='96'\/>"}],"short_description":"Elevate your pop-ups with flexbox and grid CSS","flexible_content":[{"acf_fc_layout":"content","content":"<p><span data-contrast=\"auto\">My colleague, Bern Szukalski, says it well in his <\/span><a href=\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/configure-pop-ups-basics\/\"><b><span data-contrast=\"none\">Pop-ups: the essentials<\/span><\/b><\/a><span data-contrast=\"auto\"> blog: \u201c<\/span><i><span data-contrast=\"auto\">Authoring web maps is easy, although authoring a truly great map requires a bit of additional thought and tradecraft<\/span><\/i><span data-contrast=\"auto\">\u201d. Customized pop-ups are one of the key pieces to creating great maps. Planning the layout of your pop-up, including the type of content to use is half the battle. For many, a text element is all that\u2019s needed to build an informative and visually appealing pop-up. You can summarize attributes and key information in a blurb, table, list, or a combination of those. This can be accomplished with the rich text editor in Map Viewer, but often refinement requires working with Hypertext Markup Language (HTML).\u00a0<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">HTML is the language used to define the content, structure, and design of web content. Because HTML is such an important tool for creating great content, the development team is always looking to expand ArcGIS Online\u2019s list of <a href=\"https:\/\/doc.arcgis.com\/en\/arcgis-online\/reference\/supported-html.htm\">supported HTML<\/a> to make it easier to achieve your design goals. In the November 2024 update, we made some exciting additions, specifically support for <\/span><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/CSS_flexible_box_layout\"><span data-contrast=\"none\">flexbox<\/span><\/a><span data-contrast=\"auto\"> and <\/span><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/CSS_grid_layout\"><span data-contrast=\"none\">grid<\/span><\/a><span data-contrast=\"auto\">.\u00a0<\/span><\/p>\n<h2>What are flexbox and grid CSS?<\/h2>\n<p><span class=\"TextRun SCXW5380785 BCX0\" lang=\"EN-CA\" xml:lang=\"EN-CA\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW5380785 BCX0\">When talking about the look of web content, Cascading Style Sheet (CSS) is often brought up. Flexbox and grid are both CSS layout systems<\/span><span class=\"NormalTextRun SCXW5380785 BCX0\">. <\/span><span class=\"NormalTextRun SCXW5380785 BCX0\">They\u2019re<\/span><span class=\"NormalTextRun SCXW5380785 BCX0\"> essential building blocks for modern web <\/span><span class=\"NormalTextRun SCXW5380785 BCX0\">page<\/span><span class=\"NormalTextRun SCXW5380785 BCX0\">s because t<\/span><span class=\"NormalTextRun SCXW5380785 BCX0\">hey make it easier to create responsive, flexible, and complex layouts<\/span><span class=\"NormalTextRun CommentStart SCXW5380785 BCX0\">.<\/span><span class=\"NormalTextRun SCXW5380785 BCX0\"> This makes <\/span><span class=\"NormalTextRun SCXW5380785 BCX0\">flexbox and grid<\/span><span class=\"NormalTextRun SCXW5380785 BCX0\">\u00a0a powerful tool for building <\/span><span class=\"NormalTextRun CommentStart SCXW5380785 BCX0\">e<\/span><span class=\"NormalTextRun SCXW5380785 BCX0\">laborate<\/span> <span class=\"NormalTextRun SCXW5380785 BCX0\">pop-ups that work everywhere in the ArcGIS ecosystem. Before divi<\/span><span class=\"NormalTextRun SCXW5380785 BCX0\">ng into <\/span><span class=\"NormalTextRun SCXW5380785 BCX0\">how to<\/span> <span class=\"NormalTextRun SCXW5380785 BCX0\">leverag<\/span><span class=\"NormalTextRun SCXW5380785 BCX0\">e<\/span><span class=\"NormalTextRun SCXW5380785 BCX0\"> flexbox and grid in<\/span><span class=\"NormalTextRun SCXW5380785 BCX0\"> your<\/span><span class=\"NormalTextRun SCXW5380785 BCX0\"> pop-ups,<\/span> <span class=\"NormalTextRun SCXW5380785 BCX0\">let\u2019<\/span><span class=\"NormalTextRun SCXW5380785 BCX0\">s<\/span><span class=\"NormalTextRun SCXW5380785 BCX0\"> review each layout system and their key concepts.<\/span><\/span><span class=\"EOP SCXW5380785 BCX0\" data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n<h3>Flexbox<\/h3>\n<p><span class=\"TextRun SCXW208409959 BCX0\" lang=\"EN-CA\" xml:lang=\"EN-CA\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW208409959 BCX0\">Flexbox is a one-dimensional layout system. By one-dimensional, I mean that you can create either a column or row layout. In the diagram below, <\/span><span class=\"NormalTextRun SCXW208409959 BCX0\">you\u2019ll<\/span><span class=\"NormalTextRun SCXW208409959 BCX0\"> see a container with items inside. A flexbox container is defined by setting the display property to <\/span><\/span><em><span class=\"TextRun SCXW208409959 BCX0\" lang=\"EN-CA\" xml:lang=\"EN-CA\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW208409959 BCX0\">f<\/span><span class=\"NormalTextRun SCXW208409959 BCX0\">lex<\/span><\/span><\/em><span class=\"TextRun SCXW208409959 BCX0\" lang=\"EN-CA\" xml:lang=\"EN-CA\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW208409959 BCX0\">. The content within a flex container become flex items. The orientation of the flex items is <\/span><span class=\"NormalTextRun SCXW208409959 BCX0\">determined<\/span><span class=\"NormalTextRun SCXW208409959 BCX0\"> by the <\/span><\/span><span class=\"TextRun SCXW208409959 BCX0\" lang=\"EN-CA\" xml:lang=\"EN-CA\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW208409959 BCX0\">flex-direction<\/span><\/span><span class=\"TextRun SCXW208409959 BCX0\" lang=\"EN-CA\" xml:lang=\"EN-CA\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW208409959 BCX0\"> property, which can either be <\/span><\/span><em><span class=\"TextRun SCXW208409959 BCX0\" lang=\"EN-CA\" xml:lang=\"EN-CA\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW208409959 BCX0\">column <\/span><\/span><\/em><span class=\"TextRun SCXW208409959 BCX0\" lang=\"EN-CA\" xml:lang=\"EN-CA\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW208409959 BCX0\">or <\/span><\/span><em><span class=\"TextRun SCXW208409959 BCX0\" lang=\"EN-CA\" xml:lang=\"EN-CA\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW208409959 BCX0\">row<\/span><\/span><\/em><span class=\"TextRun SCXW208409959 BCX0\" lang=\"EN-CA\" xml:lang=\"EN-CA\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW208409959 BCX0\">. An important concept relating to flex direction are axes. There are two axes, a main <\/span><span class=\"NormalTextRun SCXW208409959 BCX0\">axis<\/span><span class=\"NormalTextRun SCXW208409959 BCX0\"> and a cross axis. For example, when the flex direction is set to column, the main axis is vertical, and the cross axis is horizontal. Axes are important to consider when setting the alignment of your content.<\/span><\/span><span class=\"EOP SCXW208409959 BCX0\" data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n"},{"acf_fc_layout":"image","image":{"ID":2612152,"id":2612152,"title":"Flexbox diagram - background","filename":"Flexbox-diagram-background.png","filesize":153433,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Flexbox-diagram-background.png","link":"https:\/\/www.esri.com\/arcgis-blog\/flexbox-diagram-background","alt":"Labelled flexbox diagram.","author":"58731","description":"","caption":"","name":"flexbox-diagram-background","status":"inherit","uploaded_to":0,"date":"2024-12-04 16:46:44","modified":"2024-12-04 16:52:18","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":3799,"height":2178,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Flexbox-diagram-background-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Flexbox-diagram-background.png","medium-width":455,"medium-height":261,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Flexbox-diagram-background.png","medium_large-width":768,"medium_large-height":440,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Flexbox-diagram-background.png","large-width":1884,"large-height":1080,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Flexbox-diagram-background-1536x881.png","1536x1536-width":1536,"1536x1536-height":881,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Flexbox-diagram-background-2048x1174.png","2048x2048-width":2048,"2048x2048-height":1174,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Flexbox-diagram-background-811x465.png","card_image-width":811,"card_image-height":465,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Flexbox-diagram-background-1884x1080.png","wide_image-width":1884,"wide_image-height":1080}},"image_position":"center","orientation":"horizontal","hyperlink":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Flexbox-diagram-background.png"},{"acf_fc_layout":"content","content":"<h3>Grid<\/h3>\n<p><span data-contrast=\"auto\">Grid is a two-dimensional layout system that allows you to work with columns and rows together. This makes it easy to create complex but manageable layouts. Grids are made up of a container and items where items act like cells in a table. However, grid layouts should not be confused with tables. Tables are used to display tabular data whereas grid CSS is a system used to design the layout of HTML elements in a container. A container could represent an entire web page.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">The grid container is defined by setting the display property to <\/span><i><span data-contrast=\"auto\">grid<\/span><\/i><span data-contrast=\"auto\">. The number and width of columns and rows within the grid are defined using the <\/span><i><span data-contrast=\"auto\">grid-template-columns<\/span><\/i><span data-contrast=\"auto\"> and <\/span><i><span data-contrast=\"auto\">grid-template-rows<\/span><\/i><span data-contrast=\"auto\"> properties. The property values are a space-separated list with each value defining the width of the respective column\/row. The number of values dictates the number of columns\/rows.<\/span><\/p>\n<p><span data-contrast=\"auto\">Let\u2019s apply these grid concepts in a simple example. Say you want to build a grid in your pop-up with 2 columns and you have 3 items to include in the grid. In your scenario you want the columns to be 200 pixels wide. The HTML and pop-up would look something like this:<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n"},{"acf_fc_layout":"content","content":"<pre><code style=\"color: #24292e;background: #ffffff;padding: 1em\">\r\n<span>&lt;<span style=\"color: #22863a\">div<\/span> <span style=\"color: #005cc5\">style<\/span>=<span style=\"color: #032f62\">&quot;display: grid; grid-template-columns: 200px 200px; grid-template-rows: auto; gap: 5px;&quot;<\/span>&gt;<\/span>\r\n\t<span>&lt;<span style=\"color: #22863a\">div<\/span> <span style=\"color: #005cc5\">style<\/span>=<span style=\"color: #032f62\">&quot;border-style: solid;&quot;<\/span>&gt;<\/span>Item 1<span>&lt;\/<span style=\"color: #22863a\">div<\/span>&gt;<\/span>\r\n\t<span>&lt;<span style=\"color: #22863a\">div<\/span> <span style=\"color: #005cc5\">style<\/span>=<span style=\"color: #032f62\">&quot;border-style: solid;&quot;<\/span>&gt;<\/span>Item 2<span>&lt;\/<span style=\"color: #22863a\">div<\/span>&gt;<\/span>\r\n\t<span>&lt;<span style=\"color: #22863a\">div<\/span> <span style=\"color: #005cc5\">style<\/span>=<span style=\"color: #032f62\">&quot;border-style: solid;&quot;<\/span>&gt;<\/span>Item 3<span>&lt;\/<span style=\"color: #22863a\">div<\/span>&gt;<\/span>\r\n<span>&lt;\/<span style=\"color: #22863a\">div<\/span>&gt;<\/span>\r\n<\/code><\/pre>\n"},{"acf_fc_layout":"image","image":{"ID":2640422,"id":2640422,"title":"Simple grid example","filename":"Simple-grid-example-2.jpg","filesize":12856,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Simple-grid-example-2.jpg","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/spruce-up-your-pop-ups-with-css\/simple-grid-example-3","alt":"Grid CSS displayed in pop-up","author":"58731","description":"","caption":"","name":"simple-grid-example-3","status":"inherit","uploaded_to":2612382,"date":"2024-12-23 22:11:08","modified":"2024-12-23 22:11:38","menu_order":0,"mime_type":"image\/jpeg","type":"image","subtype":"jpeg","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":458,"height":161,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Simple-grid-example-2-213x161.jpg","thumbnail-width":213,"thumbnail-height":161,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Simple-grid-example-2.jpg","medium-width":458,"medium-height":161,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Simple-grid-example-2.jpg","medium_large-width":458,"medium_large-height":161,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Simple-grid-example-2.jpg","large-width":458,"large-height":161,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Simple-grid-example-2.jpg","1536x1536-width":458,"1536x1536-height":161,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Simple-grid-example-2.jpg","2048x2048-width":458,"2048x2048-height":161,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Simple-grid-example-2.jpg","card_image-width":458,"card_image-height":161,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Simple-grid-example-2.jpg","wide_image-width":458,"wide_image-height":161}},"image_position":"center","orientation":"horizontal","hyperlink":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Simple-grid-example-2.jpg"},{"acf_fc_layout":"content","content":"<h3>Flexbox vs. grid<\/h3>\n<p><span class=\"TextRun SCXW13249310 BCX0\" lang=\"EN-CA\" xml:lang=\"EN-CA\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW13249310 BCX0\">At this point you might be wondering when to use flexbox over grid and vice versa. The simplest answer is to use flexbox if you want to create a single dimension layout. These could be things like headers, footers, lists, or to simply arrange multiple items inline. Alternatively, use grid if you want to create complex, grid-like layouts where you have complete control over column and row properties and item placement.<\/span><\/span><\/p>\n<h2>CSS properties<\/h2>\n<p><span class=\"TextRun SCXW70542603 BCX0\" lang=\"EN-CA\" xml:lang=\"EN-CA\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW70542603 BCX0\">ArcGIS Online supports<\/span><span class=\"NormalTextRun SCXW70542603 BCX0\"> inline CSS. <\/span><span class=\"NormalTextRun SCXW70542603 BCX0\">This means that CSS<\/span><span class=\"NormalTextRun SCXW70542603 BCX0\"> properties<\/span> <span class=\"NormalTextRun SCXW70542603 BCX0\">are<\/span><span class=\"NormalTextRun SCXW70542603 BCX0\"> set in the style attribute of a<\/span><span class=\"NormalTextRun SCXW70542603 BCX0\">n<\/span><span class=\"NormalTextRun SCXW70542603 BCX0\"> HTML tag<\/span><span class=\"NormalTextRun SCXW70542603 BCX0\">. <\/span><span class=\"NormalTextRun SCXW70542603 BCX0\">The<\/span><span class=\"NormalTextRun SCXW70542603 BCX0\"> following <\/span><span class=\"NormalTextRun SCXW70542603 BCX0\">list outlines the <\/span><span class=\"NormalTextRun SCXW70542603 BCX0\">CSS properties <\/span><span class=\"NormalTextRun SCXW70542603 BCX0\">available for <\/span><span class=\"NormalTextRun SCXW70542603 BCX0\">controlling the look of your<\/span> <span class=\"NormalTextRun SCXW70542603 BCX0\">flexbox and grid <\/span><span class=\"NormalTextRun SCXW70542603 BCX0\">layout<\/span><span class=\"NormalTextRun SCXW70542603 BCX0\">s<\/span><span class=\"NormalTextRun SCXW70542603 BCX0\">.<\/span><\/span><\/p>\n<ul>\n<li>Align-items<\/li>\n<li>Align-self<\/li>\n<li>Gap<\/li>\n<li>Grid<\/li>\n<li>Grid-area<\/li>\n<li>Grid-auto-columns<\/li>\n<li>Grid-auto-flow<\/li>\n<li>Grid-auto-rows<\/li>\n<li>Grid-column<\/li>\n<li>Grid-column-end<\/li>\n<li>Grid-column-start<\/li>\n<li>Grid-row<\/li>\n<li>Grid-row-end<\/li>\n<li>Grid-row-start<\/li>\n<li>Grid-template<\/li>\n<li>Grid-template-areas<\/li>\n<li>Grid-template-columns<\/li>\n<li>Grid-template-rows<\/li>\n<li>Justify-content<\/li>\n<li>Justify-items<\/li>\n<li>Justify-self<\/li>\n<li>Margin<\/li>\n<li>Padding<\/li>\n<\/ul>\n<h2>Practical examples<\/h2>\n<p><span data-contrast=\"auto\">Your mind is likely buzzing with all the CSS concepts covered. The best way to ground concepts is by applying them to real-world examples. This section shows a variety of ways that flexbox and grid can be used to enhance or build pop-ups. <\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">The flexbox examples build upon the existing pop-up designed for the <\/span><a href=\"https:\/\/www.arcgis.com\/home\/item.html?id=8dcf5d4e124f480fa8c529fbe25ba04e&amp;sublayer=0\"><span data-contrast=\"none\">OpenAQ Recent Conditions in Air Quality PM2.5 layer<\/span><\/a><span data-contrast=\"auto\">. The grid examples are two-fold. The first examples are grid layouts that can easily be transferred to your pop-ups. The second utilizes the data-rich <\/span><a href=\"https:\/\/www.arcgis.com\/home\/item.html?id=99e3e9ccfaec422db6d4266569aa19d7&amp;sublayer=0\"><span data-contrast=\"none\">iNaturalist Observations layer<\/span><\/a><span data-contrast=\"auto\"> to build a dynamic, informative, and visually appealing pop-up. For a closer look and to access the code, check out the <\/span><a href=\"https:\/\/jsapi.maps.arcgis.com\/apps\/mapviewer\/index.html?webmap=b558bcb7197644e0b982b8cddcea7277\"><span data-contrast=\"none\">flexbox example map<\/span><\/a><span data-contrast=\"auto\"> and the <\/span><a href=\"https:\/\/jsapi.maps.arcgis.com\/apps\/mapviewer\/index.html?webmap=9a1f758f02c24ee1928ac71d97a9d406\"><span data-contrast=\"none\">grid example map<\/span><\/a><span data-contrast=\"auto\">.<\/span><\/p>\n<h3>Example 1: Create a footer with flexbox<\/h3>\n<p><span class=\"TextRun SCXW86699348 BCX0\" lang=\"EN-CA\" xml:lang=\"EN-CA\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW86699348 BCX0\">This example <\/span><span class=\"NormalTextRun SCXW86699348 BCX0\">demonstrates<\/span><span class=\"NormalTextRun SCXW86699348 BCX0\"> how simple it is to add a dynamic footer to existing pop-ups. Th<\/span><span class=\"NormalTextRun SCXW86699348 BCX0\">e footer provides key site and source information while keeping the spotlight on the main content.<\/span><\/span><\/p>\n"},{"acf_fc_layout":"image","image":{"ID":2612252,"id":2612252,"title":"Flexbox footer example","filename":"Simple-flexbox-example.jpg","filesize":17402,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Simple-flexbox-example.jpg","link":"https:\/\/www.esri.com\/arcgis-blog\/simple-flexbox-example","alt":"Pop-up with text and footer.","author":"58731","description":"","caption":"","name":"simple-flexbox-example","status":"inherit","uploaded_to":0,"date":"2024-12-04 17:02:48","modified":"2024-12-04 17:03:16","menu_order":0,"mime_type":"image\/jpeg","type":"image","subtype":"jpeg","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":454,"height":318,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Simple-flexbox-example-213x200.jpg","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Simple-flexbox-example.jpg","medium-width":373,"medium-height":261,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Simple-flexbox-example.jpg","medium_large-width":454,"medium_large-height":318,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Simple-flexbox-example.jpg","large-width":454,"large-height":318,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Simple-flexbox-example.jpg","1536x1536-width":454,"1536x1536-height":318,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Simple-flexbox-example.jpg","2048x2048-width":454,"2048x2048-height":318,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Simple-flexbox-example.jpg","card_image-width":454,"card_image-height":318,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Simple-flexbox-example.jpg","wide_image-width":454,"wide_image-height":318}},"image_position":"center","orientation":"horizontal","hyperlink":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Simple-flexbox-example.jpg"},{"acf_fc_layout":"content","content":"<h3>Example 2: Create a gauge with flexbox<\/h3>\n<p><span class=\"NormalTextRun SCXW142907649 BCX0\">In this example, an air quality gauge is built using flexbox. <\/span><span class=\"NormalTextRun SCXW142907649 BCX0\">The gauge reinforces the <\/span><span class=\"NormalTextRun SCXW142907649 BCX0\">other pop-up content and the layer style.<\/span><\/p>\n"},{"acf_fc_layout":"image","image":{"ID":2612272,"id":2612272,"title":"Flexbox gauge example","filename":"Complex-flexbox-example.gif","filesize":275934,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Complex-flexbox-example.gif","link":"https:\/\/www.esri.com\/arcgis-blog\/complex-flexbox-example","alt":"Clicking features in map to show different pop-up configurations based on feature data.","author":"58731","description":"","caption":"","name":"complex-flexbox-example","status":"inherit","uploaded_to":0,"date":"2024-12-04 17:04:51","modified":"2024-12-04 17:06:29","menu_order":0,"mime_type":"image\/gif","type":"image","subtype":"gif","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":1143,"height":776,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Complex-flexbox-example-213x200.gif","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Complex-flexbox-example.gif","medium-width":384,"medium-height":261,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Complex-flexbox-example.gif","medium_large-width":768,"medium_large-height":521,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Complex-flexbox-example.gif","large-width":1143,"large-height":776,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Complex-flexbox-example.gif","1536x1536-width":1143,"1536x1536-height":776,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Complex-flexbox-example.gif","2048x2048-width":1143,"2048x2048-height":776,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Complex-flexbox-example-685x465.gif","card_image-width":685,"card_image-height":465,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Complex-flexbox-example.gif","wide_image-width":1143,"wide_image-height":776}},"image_position":"center","orientation":"horizontal","hyperlink":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Complex-flexbox-example.gif"},{"acf_fc_layout":"content","content":"<h3>Example 3: Reuseable grid layouts<\/h3>\n<p><span class=\"TextRun SCXW204735773 BCX0\" lang=\"EN-CA\" xml:lang=\"EN-CA\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW204735773 BCX0\">The <\/span><span class=\"NormalTextRun SCXW204735773 BCX0\">following <\/span><span class=\"NormalTextRun SCXW204735773 BCX0\">images <\/span><span class=\"NormalTextRun SCXW204735773 BCX0\">show a variety of grid layouts within the pop-up. <\/span><span class=\"NormalTextRun SCXW204735773 BCX0\">Each grid has been constructed in a generic way to help<\/span><span class=\"NormalTextRun SCXW204735773 BCX0\"> you visualize your content within the layout. The code is also general, to streamline adding it to your maps.<\/span><\/span><\/p>\n"},{"acf_fc_layout":"image","image":{"ID":2612312,"id":2612312,"title":"General grid layouts","filename":"Example-3-variations.png","filesize":1236747,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Example-3-variations.png","link":"https:\/\/www.esri.com\/arcgis-blog\/example-3-variations","alt":"Grid layouts in pop-up.","author":"58731","description":"","caption":"","name":"example-3-variations","status":"inherit","uploaded_to":0,"date":"2024-12-04 17:07:28","modified":"2024-12-04 17:08:04","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":2626,"height":1664,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Example-3-variations-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Example-3-variations.png","medium-width":412,"medium-height":261,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Example-3-variations.png","medium_large-width":768,"medium_large-height":487,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Example-3-variations.png","large-width":1704,"large-height":1080,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Example-3-variations-1536x973.png","1536x1536-width":1536,"1536x1536-height":973,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Example-3-variations-2048x1298.png","2048x2048-width":2048,"2048x2048-height":1298,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Example-3-variations-734x465.png","card_image-width":734,"card_image-height":465,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Example-3-variations-1704x1080.png","wide_image-width":1704,"wide_image-height":1080}},"image_position":"center","orientation":"horizontal","hyperlink":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Example-3-variations.png"},{"acf_fc_layout":"content","content":"<h3>Example 4: Create a grid layout for iNaturalist observations<\/h3>\n<p><span class=\"TextRun SCXW219777711 BCX0\" lang=\"EN-CA\" xml:lang=\"EN-CA\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW219777711 BCX0\">The final example<\/span><span class=\"NormalTextRun SCXW219777711 BCX0\"> combines<\/span><span class=\"NormalTextRun SCXW219777711 BCX0\">\u00a0all the grid concepts to build a <\/span><span class=\"NormalTextRun SCXW219777711 BCX0\">rich <\/span><span class=\"NormalTextRun SCXW219777711 BCX0\">grid layout<\/span><span class=\"NormalTextRun SCXW219777711 BCX0\">. <\/span><span class=\"NormalTextRun SCXW219777711 BCX0\">This layout exemplifies how you can mix and match different content, like text, tables, images, and links, to build a great pop-up.<\/span><\/span><\/p>\n"},{"acf_fc_layout":"image","image":{"ID":2612332,"id":2612332,"title":"iNaturalist observation grid pop-up","filename":"Complec-grid-example.jpg","filesize":68613,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Complec-grid-example.jpg","link":"https:\/\/www.esri.com\/arcgis-blog\/complec-grid-example","alt":"Grid layout displaying species observation information.","author":"58731","description":"","caption":"","name":"complec-grid-example","status":"inherit","uploaded_to":0,"date":"2024-12-04 17:09:09","modified":"2024-12-04 17:10:13","menu_order":0,"mime_type":"image\/jpeg","type":"image","subtype":"jpeg","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":472,"height":630,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Complec-grid-example-213x200.jpg","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Complec-grid-example.jpg","medium-width":196,"medium-height":261,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Complec-grid-example.jpg","medium_large-width":472,"medium_large-height":630,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Complec-grid-example.jpg","large-width":472,"large-height":630,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Complec-grid-example.jpg","1536x1536-width":472,"1536x1536-height":630,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Complec-grid-example.jpg","2048x2048-width":472,"2048x2048-height":630,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Complec-grid-example-348x465.jpg","card_image-width":348,"card_image-height":465,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Complec-grid-example.jpg","wide_image-width":472,"wide_image-height":630}},"image_position":"center","orientation":"horizontal","hyperlink":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Complec-grid-example.jpg"},{"acf_fc_layout":"content","content":"<p><span class=\"TextRun SCXW56183948 BCX0\" lang=\"EN-CA\" xml:lang=\"EN-CA\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW56183948 BCX0\">You might have noticed that some of the examples <\/span><span class=\"NormalTextRun SCXW56183948 BCX0\">us<\/span><span class=\"NormalTextRun SCXW56183948 BCX0\">e<\/span><span class=\"NormalTextRun SCXW56183948 BCX0\"> Arcade content elements rather than <\/span><span class=\"NormalTextRun SCXW56183948 BCX0\">simple text<\/span><span class=\"NormalTextRun SCXW56183948 BCX0\"> elements. Arcade content elements allow you to <\/span><span class=\"NormalTextRun CommentStart SCXW56183948 BCX0\">perform <\/span><span class=\"NormalTextRun SCXW56183948 BCX0\">logical<\/span><span class=\"NormalTextRun SCXW56183948 BCX0\"> evaluations<\/span><span class=\"NormalTextRun SCXW56183948 BCX0\">, calculate values, format data, and pass those values into your return. This is all done within a single expression. Arcade content elements simplify authoring and <\/span><span class=\"NormalTextRun SCXW56183948 BCX0\">maintaining<\/span><span class=\"NormalTextRun SCXW56183948 BCX0\"> intricate pop-ups. For more information on Arcade content elements, check out <\/span><\/span><a class=\"Hyperlink SCXW56183948 BCX0\" href=\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/part-1-introducing-arcade-pop-up-content-elements\/\" target=\"_blank\" rel=\"noreferrer noopener\"><span class=\"TextRun Underlined SCXW56183948 BCX0\" lang=\"EN-CA\" xml:lang=\"EN-CA\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW56183948 BCX0\" data-ccp-charstyle=\"Hyperlink\">Paul\u2019s blog<\/span><\/span><\/a><span class=\"TextRun SCXW56183948 BCX0\" lang=\"EN-CA\" xml:lang=\"EN-CA\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW56183948 BCX0\">.<\/span><\/span><\/p>\n<h2>Final thoughts<\/h2>\n<p><span class=\"TextRun SCXW122207749 BCX0\" lang=\"EN-CA\" xml:lang=\"EN-CA\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW122207749 BCX0\">I hope <\/span><span class=\"NormalTextRun SCXW122207749 BCX0\">you\u2019re<\/span><span class=\"NormalTextRun SCXW122207749 BCX0\"> inspired to take your maps to the next level by creating <\/span><span class=\"NormalTextRun SCXW122207749 BCX0\">truly great<\/span><span class=\"NormalTextRun SCXW122207749 BCX0\"> pop-ups with flexbox and grid layouts. The dynamic functionality of flexbox and grid can give you confidence that your pop-ups will shine wherever <\/span><span class=\"NormalTextRun SCXW122207749 BCX0\">they\u2019re<\/span><span class=\"NormalTextRun SCXW122207749 BCX0\"> viewed. In future ArcGIS Online updates, you can look forward to HTML templates that will streamline authoring <\/span><span class=\"NormalTextRun SCXW122207749 BCX0\">pop-ups with <\/span><span class=\"NormalTextRun SCXW122207749 BCX0\">flexbox and gr<\/span><span class=\"NormalTextRun SCXW122207749 BCX0\">id<\/span><span class=\"NormalTextRun SCXW122207749 BCX0\">.<\/span><\/span><span class=\"EOP SCXW122207749 BCX0\" data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n"}],"related_articles":"","show_article_image":true,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Conifer-forest-card.jpg","wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Conifer-forest-banner.jpg"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v25.9) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Spruce up your pop-ups with CSS<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/spruce-up-your-pop-ups-with-css\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Spruce up your pop-ups with CSS\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/spruce-up-your-pop-ups-with-css\" \/>\n<meta property=\"og:site_name\" content=\"ArcGIS Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/esrigis\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-23T22:12:10+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@ESRI\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":[\"Article\",\"BlogPosting\"],\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/spruce-up-your-pop-ups-with-css#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/spruce-up-your-pop-ups-with-css\"},\"author\":{\"name\":\"Lauren Ballantyne\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/1cc4439ee11a7261ab467b4a8212a066\"},\"headline\":\"Spruce up your pop-ups with CSS\",\"datePublished\":\"2024-12-05T13:00:35+00:00\",\"dateModified\":\"2024-12-23T22:12:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/spruce-up-your-pop-ups-with-css\"},\"wordCount\":6,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\"},\"keywords\":[\"CSS\",\"flexbox\",\"Grid\",\"pop-up\",\"what's new November 2024\"],\"articleSection\":[\"Mapping\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/spruce-up-your-pop-ups-with-css#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/spruce-up-your-pop-ups-with-css\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/spruce-up-your-pop-ups-with-css\",\"name\":\"Spruce up your pop-ups with CSS\",\"isPartOf\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#website\"},\"datePublished\":\"2024-12-05T13:00:35+00:00\",\"dateModified\":\"2024-12-23T22:12:10+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/spruce-up-your-pop-ups-with-css#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/spruce-up-your-pop-ups-with-css\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/spruce-up-your-pop-ups-with-css#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.esri.com\/arcgis-blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Spruce up your pop-ups with CSS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#website\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/\",\"name\":\"ArcGIS Blog\",\"description\":\"Get insider info from Esri product teams\",\"publisher\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.esri.com\/arcgis-blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\",\"name\":\"Esri\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png\",\"contentUrl\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png\",\"width\":400,\"height\":400,\"caption\":\"Esri\"},\"image\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/esrigis\/\",\"https:\/\/x.com\/ESRI\",\"https:\/\/www.linkedin.com\/company\/5311\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/1cc4439ee11a7261ab467b4a8212a066\",\"name\":\"Lauren Ballantyne\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2020\/07\/IMG_0214-213x200.jpg\",\"contentUrl\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2020\/07\/IMG_0214-213x200.jpg\",\"caption\":\"Lauren Ballantyne\"},\"description\":\"Lauren Ballantyne is a Product Engineer on the ArcGIS Online team and has a background in environmental science and conservation ecology. Her feature areas include Map Viewer, Arcade, and hosted feature layer views. Lauren is passionate about developing intuitive tools that help create engaging, informative, and data-rich web maps.\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/author\/lballantyne\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Spruce up your pop-ups with CSS","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/spruce-up-your-pop-ups-with-css","og_locale":"en_US","og_type":"article","og_title":"Spruce up your pop-ups with CSS","og_url":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/spruce-up-your-pop-ups-with-css","og_site_name":"ArcGIS Blog","article_publisher":"https:\/\/www.facebook.com\/esrigis\/","article_modified_time":"2024-12-23T22:12:10+00:00","twitter_card":"summary_large_image","twitter_site":"@ESRI","twitter_misc":{"Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["Article","BlogPosting"],"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/spruce-up-your-pop-ups-with-css#article","isPartOf":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/spruce-up-your-pop-ups-with-css"},"author":{"name":"Lauren Ballantyne","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/1cc4439ee11a7261ab467b4a8212a066"},"headline":"Spruce up your pop-ups with CSS","datePublished":"2024-12-05T13:00:35+00:00","dateModified":"2024-12-23T22:12:10+00:00","mainEntityOfPage":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/spruce-up-your-pop-ups-with-css"},"wordCount":6,"commentCount":0,"publisher":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization"},"keywords":["CSS","flexbox","Grid","pop-up","what's new November 2024"],"articleSection":["Mapping"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/spruce-up-your-pop-ups-with-css#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/spruce-up-your-pop-ups-with-css","url":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/spruce-up-your-pop-ups-with-css","name":"Spruce up your pop-ups with CSS","isPartOf":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#website"},"datePublished":"2024-12-05T13:00:35+00:00","dateModified":"2024-12-23T22:12:10+00:00","breadcrumb":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/spruce-up-your-pop-ups-with-css#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/spruce-up-your-pop-ups-with-css"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/spruce-up-your-pop-ups-with-css#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.esri.com\/arcgis-blog\/"},{"@type":"ListItem","position":2,"name":"Spruce up your pop-ups with CSS"}]},{"@type":"WebSite","@id":"https:\/\/www.esri.com\/arcgis-blog\/#website","url":"https:\/\/www.esri.com\/arcgis-blog\/","name":"ArcGIS Blog","description":"Get insider info from Esri product teams","publisher":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.esri.com\/arcgis-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization","name":"Esri","url":"https:\/\/www.esri.com\/arcgis-blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png","contentUrl":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png","width":400,"height":400,"caption":"Esri"},"image":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/esrigis\/","https:\/\/x.com\/ESRI","https:\/\/www.linkedin.com\/company\/5311\/"]},{"@type":"Person","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/1cc4439ee11a7261ab467b4a8212a066","name":"Lauren Ballantyne","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/image\/","url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2020\/07\/IMG_0214-213x200.jpg","contentUrl":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2020\/07\/IMG_0214-213x200.jpg","caption":"Lauren Ballantyne"},"description":"Lauren Ballantyne is a Product Engineer on the ArcGIS Online team and has a background in environmental science and conservation ecology. Her feature areas include Map Viewer, Arcade, and hosted feature layer views. Lauren is passionate about developing intuitive tools that help create engaging, informative, and data-rich web maps.","url":"https:\/\/www.esri.com\/arcgis-blog\/author\/lballantyne"}]}},"text_date":"December 5, 2024","author_name":"Lauren Ballantyne","author_page":"https:\/\/www.esri.com\/arcgis-blog\/author\/lballantyne","custom_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2024\/12\/Conifer-forest-banner.jpg","primary_product":"ArcGIS Online","tag_data":[{"term_id":29081,"name":"CSS","slug":"css","term_group":0,"term_taxonomy_id":29081,"taxonomy":"post_tag","description":"","parent":0,"count":3,"filter":"raw"},{"term_id":777522,"name":"flexbox","slug":"flexbox","term_group":0,"term_taxonomy_id":777522,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"},{"term_id":34561,"name":"Grid","slug":"grid","term_group":0,"term_taxonomy_id":34561,"taxonomy":"post_tag","description":"","parent":0,"count":9,"filter":"raw"},{"term_id":366492,"name":"pop-up","slug":"pop-up","term_group":0,"term_taxonomy_id":366492,"taxonomy":"post_tag","description":"","parent":0,"count":13,"filter":"raw"},{"term_id":776962,"name":"what's new November 2024","slug":"whats-new-november-2024","term_group":0,"term_taxonomy_id":776962,"taxonomy":"post_tag","description":"","parent":0,"count":26,"filter":"raw"}],"category_data":[{"term_id":22941,"name":"Mapping","slug":"mapping","term_group":0,"term_taxonomy_id":22941,"taxonomy":"category","description":"","parent":0,"count":2683,"filter":"raw"}],"product_data":[{"term_id":36551,"name":"ArcGIS Online","slug":"arcgis-online","term_group":0,"term_taxonomy_id":36551,"taxonomy":"product","description":"","parent":0,"count":2419,"filter":"raw"}],"primary_product_link":"https:\/\/www.esri.com\/arcgis-blog\/?s=#&products=arcgis-online","_links":{"self":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog\/2612382","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog"}],"about":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/types\/blog"}],"author":[{"embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/users\/58731"}],"replies":[{"embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/comments?post=2612382"}],"version-history":[{"count":0,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog\/2612382\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/media?parent=2612382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/categories?post=2612382"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/tags?post=2612382"},{"taxonomy":"industry","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/industry?post=2612382"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/product?post=2612382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}