{"id":5077,"date":"2018-12-19T18:32:42","date_gmt":"2018-12-19T18:32:42","guid":{"rendered":"https:\/\/in.nau.edu\/web\/?page_id=5077"},"modified":"2020-03-13T13:12:05","modified_gmt":"2020-03-13T20:12:05","slug":"tables-advanced","status":"publish","type":"page","link":"https:\/\/in.nau.edu\/web\/tables-advanced\/","title":{"rendered":"Tables Advanced"},"content":{"rendered":"<h1>Tables Advanced<\/h1>\n<!-- shortcode-tab -->\n<div class='shortcode-tab-container tab-count-4'>\n    <ul class='tabs'>\n                <li class=\"tab\">\n            <a class=\"shortcode-tab__trigger\" href=\"#\" data-header=\"Overview_1\">\n                <div class=\"shortcode-tab-header selected\">\n                    <h4>\n                        Overview <span class=\"screen-reader-text\">Tab Open<\/span>\n                    <\/h4>\n                <\/div>\n            <\/a>\n        <\/li>\n                <li class=\"tab\">\n            <a class=\"shortcode-tab__trigger\" href=\"#\" data-header=\"Initial Adjustments_2\">\n                <div class=\"shortcode-tab-header \">\n                    <h4>\n                        Initial Adjustments <span class=\"screen-reader-text\">Tab Closed<\/span>\n                    <\/h4>\n                <\/div>\n            <\/a>\n        <\/li>\n                <li class=\"tab\">\n            <a class=\"shortcode-tab__trigger\" href=\"#\" data-header=\"CSS Adjustments_3\">\n                <div class=\"shortcode-tab-header \">\n                    <h4>\n                        CSS Adjustments <span class=\"screen-reader-text\">Tab Closed<\/span>\n                    <\/h4>\n                <\/div>\n            <\/a>\n        <\/li>\n                <li class=\"tab\">\n            <a class=\"shortcode-tab__trigger\" href=\"#\" data-header=\"Troubleshooting_4\">\n                <div class=\"shortcode-tab-header \">\n                    <h4>\n                        Troubleshooting <span class=\"screen-reader-text\">Tab Closed<\/span>\n                    <\/h4>\n                <\/div>\n            <\/a>\n        <\/li>\n            <\/ul>\n        <!-- shortcode-accordion -->\n<div class=\"shortcode-accordion \" style=\"position: relative;\" >\n        <a class=\"shortcode-accordion__trigger\" data-header=\"Overview_1\" href=\"#\">\n      <div class=\"shortcode-accordion__header\">\n          <h4>Overview <span class=\"screen-reader-text\">Accordion Open<\/span><\/h4>\n          <span class=\"shortcode-accordion__header__arrow\"><\/span>\n      <\/div>\n    <\/a>\n    <div class=\"shortcode-accordion__body\">\n        <!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<html><body>\n\n<p>This guide will walk you through additional steps to help clean up an existing table. This solution aims to allows tables to expand as far as they need to horizontally to give all text enough space to appear properly. A horizontal scrollbar is added to allow users to move the table left and right to view all content.<\/p>\n\n\n    <\/body><\/html>\n\n    <\/div>\n<\/div>\n\n        <!-- shortcode-accordion -->\n<div class=\"shortcode-accordion shortcode-accordion--closed\" style=\"position: relative;\" >\n        <a class=\"shortcode-accordion__trigger\" data-header=\"Initial Adjustments_2\" href=\"#\">\n      <div class=\"shortcode-accordion__header\">\n          <h4>Initial Adjustments <span class=\"screen-reader-text\">Accordion Closed<\/span><\/h4>\n          <span class=\"shortcode-accordion__header__arrow\"><\/span>\n      <\/div>\n    <\/a>\n    <div class=\"shortcode-accordion__body\">\n        <!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<html><body>\n\n<p>Before moving forward please ensure that the JavaScript Library features are disabled in the editing view of the table<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-5083 size-uncropped-large\" src=\"https:\/\/in.nau.edu\/wp-content\/uploads\/sites\/170\/JavaScriptLibraries-600x205.png\" alt=\"\" width=\"600\" height=\"205\" srcset=\"https:\/\/in.nau.edu\/wp-content\/uploads\/sites\/170\/JavaScriptLibraries-600x205.png 600w, https:\/\/in.nau.edu\/wp-content\/uploads\/sites\/170\/JavaScriptLibraries-300x102.png 300w, https:\/\/in.nau.edu\/wp-content\/uploads\/sites\/170\/JavaScriptLibraries-768x262.png 768w, https:\/\/in.nau.edu\/wp-content\/uploads\/sites\/170\/JavaScriptLibraries.png 927w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>In preparation for the next steps, please adjust the table short-code found on the page where the table appears.<\/p>\n<p>Example:<\/p>\n<ul>\n<li>Before &ndash;&nbsp;[ table id=# \/]<\/li>\n<li>After &ndash;&nbsp;[ table id=# responsive=scroll \/]<\/li>\n<\/ul>\n<p>If you have long headers it is encourage to put &ldquo;breaks&rdquo; where it is most ideal for a new line to start.&nbsp;<strong>&lt;br&gt;<\/strong> tags will force the following text onto its own line, this is helpful to preemptively format headers.<\/p>\n<p>Example:<\/p>\n<ul>\n<li>Before &ndash; <strong>Administrative Office Members<\/strong><\/li>\n<li>After &ndash;&nbsp;<strong>Administrative&lt;br&gt;Office&lt;br&gt;Members<\/strong><\/li>\n<li>Visual &ndash;&nbsp;<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-landscape-image-sm wp-image-5086\" src=\"https:\/\/in.nau.edu\/wp-content\/uploads\/sites\/170\/BreakExample-232x129.png\" alt=\"\" width=\"232\" height=\"129\"><\/li>\n<\/ul>\n<p>Note* &ndash; The word &ldquo;Administrative&rdquo; is too long, but the words &ldquo;Office&rdquo; and &ldquo;Members&rdquo; is still legibly when we use break tags appropriately. To fix this issue please see the CSS Adjustments tab.<\/p>\n\n\n    <\/body><\/html>\n\n    <\/div>\n<\/div>\n\n        <!-- shortcode-accordion -->\n<div class=\"shortcode-accordion shortcode-accordion--closed\" style=\"position: relative;\" >\n        <a class=\"shortcode-accordion__trigger\" data-header=\"CSS Adjustments_3\" href=\"#\">\n      <div class=\"shortcode-accordion__header\">\n          <h4>CSS Adjustments <span class=\"screen-reader-text\">Accordion Closed<\/span><\/h4>\n          <span class=\"shortcode-accordion__header__arrow\"><\/span>\n      <\/div>\n    <\/a>\n    <div class=\"shortcode-accordion__body\">\n        <!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<html><body>\n\n<p>Navigate to the &ldquo;Plugin Options&rdquo; item under the TablePress Dashboard.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-5094 size-portrait-image-sm\" src=\"https:\/\/in.nau.edu\/wp-content\/uploads\/sites\/170\/PluginOptions-150x212.png\" alt=\"\" width=\"150\" height=\"212\"><\/p>\n<p>You should see a screen with an empty panel<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-5095 size-uncropped-large\" src=\"https:\/\/in.nau.edu\/wp-content\/uploads\/sites\/170\/CSS-Panel-600x139.png\" alt=\"\" width=\"600\" height=\"139\" srcset=\"https:\/\/in.nau.edu\/wp-content\/uploads\/sites\/170\/CSS-Panel-600x139.png 600w, https:\/\/in.nau.edu\/wp-content\/uploads\/sites\/170\/CSS-Panel-300x70.png 300w, https:\/\/in.nau.edu\/wp-content\/uploads\/sites\/170\/CSS-Panel-768x178.png 768w, https:\/\/in.nau.edu\/wp-content\/uploads\/sites\/170\/CSS-Panel-1024x237.png 1024w, https:\/\/in.nau.edu\/wp-content\/uploads\/sites\/170\/CSS-Panel.png 1048w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>We will then want to add the following snippet of code:<\/p>\n<p><code>.tablepress-id-N {<br>\nwidth: 1500px !important;<br>\n}<br>\n<\/code><\/p>\n<p>You will want to replace the &ldquo;N&rdquo; with the Table ID of your table that needs visual adjustments. This will expand your table to 1500 pixels horizontally adding enough space for most tables. The 1500px is split up evenly among all columns within a table.<\/p>\n<p>For example, if you have 5 columns in your table with a width of 1500px each column will have 300px.<\/p>\n<p>*Note &ndash; If 1500px is too much or too little of space for your table feel free to adjust the number by increments of 50px.<\/p>\n<h5>Adjusting a Single Column<\/h5>\n<p>When there is a specific column that has much less information than the rest of the columns you can adjust the less dense column to accommodate more of the table.<\/p>\n<p>Before:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-5099 size-uncropped-large\" src=\"https:\/\/in.nau.edu\/wp-content\/uploads\/sites\/170\/TableSpaceExample-600x290.png\" alt=\"\" width=\"600\" height=\"290\" srcset=\"https:\/\/in.nau.edu\/wp-content\/uploads\/sites\/170\/TableSpaceExample-600x290.png 600w, https:\/\/in.nau.edu\/wp-content\/uploads\/sites\/170\/TableSpaceExample-300x145.png 300w, https:\/\/in.nau.edu\/wp-content\/uploads\/sites\/170\/TableSpaceExample.png 651w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>After:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-uncropped-large wp-image-5101\" src=\"https:\/\/in.nau.edu\/wp-content\/uploads\/sites\/170\/TableSpaceExample2-600x291.png\" alt=\"\" width=\"600\" height=\"291\" srcset=\"https:\/\/in.nau.edu\/wp-content\/uploads\/sites\/170\/TableSpaceExample2-600x291.png 600w, https:\/\/in.nau.edu\/wp-content\/uploads\/sites\/170\/TableSpaceExample2-300x146.png 300w, https:\/\/in.nau.edu\/wp-content\/uploads\/sites\/170\/TableSpaceExample2.png 641w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>We were able to fit more content on the same amount of space by adjusting how much space specific columns take up.<\/p>\n<p>Before adjusting the size of specific column, adjust the size of the entire table (see top of this tab) to ensure the rest of the columns have enough space.<\/p>\n<p>To adjust the size of a specific column use the snippet below (placed underneath the snippet for the table width found above):<\/p>\n<p><code>.tablepress-id-N .column-Z {<br>\nwidth: 150px !important;<br>\n}<\/code><\/p>\n<p>Replace &ldquo;N&rdquo; with the Table ID and replace &ldquo;Z&rdquo; with the column number you wish to adjust.<\/p>\n<p>The width of a column is being adjusted in this instance. If the width of the entire 5 column table was set to 1500px and the width of column 1 was set to 150px that means that column 1 occupies 150px while the rest of the columns collectively and evenly occupy the remaining 1350px.<\/p>\n<p>If you wish to adjust specific columns in a table you can use the code above once per column. If the individual column sizes sum to more than the designated table size the individual column sizes will be ignored.<\/p>\n\n\n    <\/body><\/html>\n\n    <\/div>\n<\/div>\n\n        <!-- shortcode-accordion -->\n<div class=\"shortcode-accordion shortcode-accordion--closed\" style=\"position: relative;\" >\n        <a class=\"shortcode-accordion__trigger\" data-header=\"Troubleshooting_4\" href=\"#\">\n      <div class=\"shortcode-accordion__header\">\n          <h4>Troubleshooting <span class=\"screen-reader-text\">Accordion Closed<\/span><\/h4>\n          <span class=\"shortcode-accordion__header__arrow\"><\/span>\n      <\/div>\n    <\/a>\n    <div class=\"shortcode-accordion__body\">\n        <!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<html><body>\n\n<p>Due to all the possible variations and details that go into adjusting a table, please <a href=\"https:\/\/in.nau.edu\/web\/support-request\/\">reach out to us<\/a> for assistance.<br>\nWhen sending submitting a request, please attach screenshots of the CSS Panel and the front end so we may properly troubleshoot.<\/p>\n\n\n    <\/body><\/html>\n\n    <\/div>\n<\/div>\n\n    <\/div>\n\n<p>&nbsp;<\/p>\n<!-- shortcode-right-column -->\n<div class=\"shortcode-right-column\" >\n    <div class=\"shortcode-right-column__container\">\n<!-- shortcode-block -->\n<div class=\"shortcode-block\">\n      <div class=\"block-header\">\n        <h3>Academic unit site support<\/h3>\n    <\/div>\n          <div class=\"block-body\">\n      <div>\n<i class=\"fas fa-pen\"><\/i> <a href=\"https:\/\/nau.edu\/marketing\/resources\/request-support\/?landing=Digital%20support%20request%20%E2%80%93%20website%20edits%20and%20reporting\">Digital Marketing Support<\/a><\/p>\n<p><i class=\"fas fa-phone\"><\/i> <a href=\"tel:9285231741\">928-523-1741<\/a><\/p>\n<\/div>\n          <\/div>\n  <\/div>\n\n<!-- shortcode-block -->\n<div class=\"shortcode-block\">\n      <div class=\"block-header\">\n        <h3>Business unit site support<\/h3>\n    <\/div>\n          <div class=\"block-body\">\n      <div>\n<i class=\"fas fa-envelope\"><\/i> <a href=\"https:\/\/nau.edu\/servicenow\">ServiceNow<\/a><\/p>\n<p><i class=\"fas fa-phone\"><\/i> <a href=\"tel:9285231511\">928-523-1511<\/a><\/p>\n<\/div>\n          <\/div>\n  <\/div>\n\n<\/div>\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>Tables Advanced &nbsp;<\/p>\n","protected":false},"author":28,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_relevanssi_hide_post":"","_relevanssi_hide_content":"","_relevanssi_pin_for_all":"","_relevanssi_pin_keywords":"","_relevanssi_unpin_keywords":"","_relevanssi_related_keywords":"","_relevanssi_related_include_ids":"","_relevanssi_related_exclude_ids":"","_relevanssi_related_no_append":"","_relevanssi_related_not_related":"","_relevanssi_related_posts":"","_relevanssi_noindex_reason":"","ring_central_script_selection":"","footnotes":""},"class_list":["post-5077","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/in.nau.edu\/web\/wp-json\/wp\/v2\/pages\/5077","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/in.nau.edu\/web\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/in.nau.edu\/web\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/in.nau.edu\/web\/wp-json\/wp\/v2\/users\/28"}],"replies":[{"embeddable":true,"href":"https:\/\/in.nau.edu\/web\/wp-json\/wp\/v2\/comments?post=5077"}],"version-history":[{"count":1,"href":"https:\/\/in.nau.edu\/web\/wp-json\/wp\/v2\/pages\/5077\/revisions"}],"predecessor-version":[{"id":7375,"href":"https:\/\/in.nau.edu\/web\/wp-json\/wp\/v2\/pages\/5077\/revisions\/7375"}],"wp:attachment":[{"href":"https:\/\/in.nau.edu\/web\/wp-json\/wp\/v2\/media?parent=5077"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}