{"id":5978,"date":"2025-07-29T13:31:59","date_gmt":"2025-07-29T17:31:59","guid":{"rendered":"https:\/\/opentextbooks.concordia.ca\/pressbooksuserguide\/?post_type=chapter&#038;p=5978"},"modified":"2025-12-13T15:02:45","modified_gmt":"2025-12-13T20:02:45","slug":"complex-css-appendix","status":"publish","type":"chapter","link":"https:\/\/opentextbooks.concordia.ca\/pressbooksuserguide\/chapter\/complex-css-appendix\/","title":{"raw":"Complex CSS Appendix","rendered":"Complex CSS Appendix"},"content":{"raw":"<div class=\"textbox outer\">\r\n<h2>Showcasing Complex CSS Designs in<\/h2>\r\n<div class=\"textbox inner\">\r\n<h2>Pressbooks<\/h2>\r\n<\/div>\r\n<\/div>\r\nIn this chapter, we will present CSS designs developed by our OER Team at Concordia University Library, showcasing how we have implemented them. Complex CSS designs can be used to increase accessibility features, improve navigation between and within pages, or enhance the visual look of an open textbook. These designs are primarily intended for experienced CSS users, as they involve advanced techniques and concepts. To begin understanding these concepts, it is helpful to be familiar with the <a href=\"https:\/\/opentextbooks.concordia.ca\/pressbooksuserguide\/chapter\/html-and-css-basics\/\">basics of CSS<\/a>.\r\n\r\n&nbsp;\r\n<div class=\"menu-table h5p-display\"><span class=\"menu-table-title\">Three ways to implement these designs:<\/span>\r\n<a class=\"menu-table-panel\" href=\"#menu-table\">Menu Table for In-Page Navigation<\/a>\r\n<a class=\"menu-table-panel\" href=\"#enlarge-bar\">Enlarge the Navigation Bar<\/a>\r\n<a class=\"menu-table-panel\" href=\"#css-for-h5p\">Custom CSS for H5P Elements<\/a><\/div>\r\n<h2 id=\"menu-table\">Menu Table for In-Page Navigation<\/h2>\r\nTo help keep a chapter organized when it contains lots of information, implement a menu table at the top of a page. The table allows for easy navigation to the different sections or headers. Below are three examples of what menu tables can look like:\r\n&nbsp;\r\n[h5p id=\"77\"]\r\n\r\nBy dragging the slider above, you will notice three menu table options that appear in our <em>Guide to Pressbooks.<\/em> The first contains three vertical sections, the second shows two panels, and the third is a grid of panels in three rows.\u00a0 We are providing the code for the menu table with three vertical sections, allowing it to be recreated and adapted. The other menu table examples featured in the slider above can be inferred from the code of the first one.\r\n\r\nThe code below shows you how to implement three vertical panels named Section 1, Section 2, and Section 3.\u00a0 Add the following HTML to the Text (HTML) tab of your Chapter\/Part:\r\n<div class=\"code-textbox-outer\">\r\n<pre class=\"code-textbox-title\">  HTML:\r\n<\/pre>\r\n<pre class=\"code-textbox-inner\">&lt;div <span class=\"red-text\">class=<\/span><span class=\"blue-text\">\"menu-table\"<\/span>&gt;\r\n  &lt;span <span class=\"red-text\">class=<\/span><span class=\"blue-text\">\"menu-table-title\"<\/span>&gt; <span class=\"black-text\">Menu Table<\/span> &lt;\/span&gt;\r\n  &lt;a <span class=\"red-text\">href=<\/span><span class=\"blue-text\">\"#section-1\"<\/span> <span class=\"red-text\">class=<\/span><span class=\"blue-text\">\"menu-table-panel\"<\/span>&gt;<span class=\"black-text\"> Section 1 <\/span>&lt;\/a&gt;\r\n  &lt;a <span class=\"red-text\">href=<\/span><span class=\"blue-text\">\"#section-2\"<\/span> <span class=\"red-text\">class=<\/span><span class=\"blue-text\">\"menu-table-panel\"<\/span>&gt;<span class=\"black-text\"> Section 2 <\/span>&lt;\/a&gt;\r\n  &lt;a <span class=\"red-text\">href=<\/span><span class=\"blue-text\">\"#section-3\"<\/span> <span class=\"red-text\">class=<\/span><span class=\"blue-text\">\"menu-table-panel\"<\/span>&gt;<span class=\"black-text\"> Section 3 <\/span>&lt;\/a&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\r\n<\/div>\r\nNotice the <span class=\"inline-code red-text\">href<\/span> attribute in each panel. This attribute links the element to a specific point on the page with an <span class=\"inline-code red-text\">id<\/span> attribute of the same name.\r\n\r\nFor example, the <span class=\"inline-code green-text\">a<\/span> element above (which is a panel) with <span class=\"inline-code red-text\">href=<span class=\"blue-text\">\"#section-1\"<\/span><\/span> will link to an <span class=\"inline-code green-text\">h2<\/span> element on the same page that has the <span class=\"inline-code red-text\">id=<span class=\"blue-text\">\"section-1\"<\/span><\/span>, as shown below.\r\n\r\n<strong>Note:<\/strong> The value of the <span class=\"inline-code red-text\">href<\/span> attribute begins with a <span class=\"inline-code blue-text\">#<\/span>.\r\n<div class=\"code-textbox-outer\">\r\n<pre class=\"code-textbox-title\">  HTML:\r\n<\/pre>\r\n<pre> &lt;h2 <span class=\"red-text\">id=<\/span><span class=\"blue-text\">\"section-1\"<\/span>&gt;<span class=\"black-text\"> Section 1 <\/span>&lt;\/h2&gt;\r\n<\/pre>\r\n<\/div>\r\nThen add the following CSS to the Web Styles in Custom Styles:\r\n<div class=\"code-textbox-outer\">\r\n<pre class=\"code-textbox-title\">  CSS:<\/pre>\r\n<pre class=\"code-textbox-inner black-text\"><span class=\"blue-text\">.menu-table<\/span> {\r\n  display: flex;\r\n  flex-direction: column;\r\n}\r\n\r\n<span class=\"yellow-text\">\/* Styles the Title of Your Menu Table (The Beige Section). *\/<\/span>\r\n<span class=\"blue-text\">.menu-table-title<\/span> {\r\n  width: <span class=\"green-text\">100%<\/span>;\r\n  height: <span class=\"green-text\">2.5em<\/span>;\r\n  background: <span class=\"blue-text\">#e9e3d3<\/span>;\r\n  text-align: <span class=\"blue-text\">center<\/span>;\r\n  align-content: <span class=\"blue-text\">center<\/span>;\r\n  font-size: <span class=\"green-text\">1.1em<\/span>;\r\n  font-weight: <span class=\"green-text\">600<\/span>;\r\n}\r\n\r\n<span class=\"yellow-text\">\/* Styles Each Section Box. *\/<\/span>\r\n<span class=\"blue-text\">.menu-table-panel<\/span> {\r\n  display: <span class=\"blue-text\">block<\/span>;\r\n  align-content: <span class=\"blue-text\">center<\/span>;\r\n  text-align: <span class=\"blue-text\">center<\/span>;\r\n  width: <span class=\"green-text\">100%<\/span>; \r\n  height: <span class=\"green-text\">3.125em<\/span>; \r\n  background: <span class=\"blue-text\">#912338<\/span>;\r\n  colour: <span class=\"red-text\">white !important<\/span>;\r\n  text-decoration: <span class=\"red-text\">none !important<\/span>;\r\n  font-size: <span class=\"green-text\">1.2em<\/span>;\r\n  font-weight: <span class=\"green-text\">600<\/span>;\r\n}\r\n\r\n<span class=\"yellow-text\">\/* Styles Each Section box When Hovered (On Desktop). *\/<\/span>\r\n<span class=\"blue-text\">.menu-table-panel<\/span><span class=\"green-text\">:hover<\/span> {\r\n  background: <span class=\"blue-text\">#004085<\/span>;\r\n  text-decoration: <span class=\"red-text\">underline !important<\/span>;\r\n  text-decoration-thickness: <span class=\"green-text\">0.04em !important<\/span>;\r\n}\r\n<\/pre>\r\n<\/div>\r\nThe CSS would produce a menu table that looks exactly like the menu table with three vertical sections above. However, you can add your own customization in CSS according to the needs of your open textbook, such as changing the panel colour with <span class=\"inline-code\">background<\/span>, changing the text colour with <span class=\"inline-code\">colour<\/span>, or the boldness of the text with <span class=\"inline-code\">font-weight<\/span>.\r\n<h3>HTML and CSS Exercise<\/h3>\r\nAttempt to create the two other variations of menu tables (two panels <strong>versus<\/strong> multiple panels with a grid of three rows).\r\n\r\n<strong>Hint:<\/strong> The HTML elements make use of the same classes; you can experiment with their arrangement and add panel elements as needed!\r\n<h2 id=\"enlarge-bar\">Enlarge the Navigation Bar<\/h2>\r\nBy default, the navigation bar at the bottom of each page is small. To enlarge the bar, add <span class=\"inline-code\">padding<\/span> and increase the <span class=\"inline-code\">font-size<\/span>. The image slider below shows the before and after of the navigation bar when the additional CSS is implemented.\r\n&nbsp;\r\n[h5p id=\"75\"]\r\n\r\nTo implement this change, add the following CSS to your Web Styles in Custom Styles:\r\n<div class=\"code-textbox-outer\">\r\n<pre class=\"code-textbox-title\">  CSS:<\/pre>\r\n<pre class=\"code-textbox-inner\"><span class=\"yellow-text\">\/* Customizes the Next and Previous Navigation Buttons. *\/<\/span>\r\n<span class=\"blue-text\">.nav-reading__next<\/span> a<span class=\"black-text\">,<\/span> <span class=\"blue-text\">.nav-reading__previous<\/span> a <span class=\"black-text\">{\r\n  padding: <span class=\"green-text\">14px<\/span>;\r\n  font-size: <span class=\"green-text\">1.5em<\/span>;\r\n  background-color: <span class=\"blue-text\">blue<\/span>;\r\n}<\/span>\r\n\r\n<span class=\"yellow-text\">\/* Customizes the Buttons When Hovered. *\/<\/span>\r\n<span class=\"blue-text\">.nav-reading__next<\/span> a:hover<span class=\"black-text\">,<\/span> <span class=\"blue-text\">.nav-reading__previous<\/span> a:hover <span class=\"black-text\">{\r\n  background-color: <span class=\"blue-text\">red<\/span>;\r\n  color: <span class=\"blue-text\">white<\/span>;\r\n}<\/span>\r\n<\/pre>\r\n<\/div>\r\n<h2 id=\"css-for-h5p\">Custom CSS for H5P Elements<\/h2>\r\nIf H5P elements are implemented in your open textbook, it is possible to customize the H5P elements using our Custom Styles H5P Pressbooks Plugin. Student assistants on the Library's OER Team, Asifur Rahman and Chhayhee Sok, developed our plugin. See an example of a customized H5P Accordion element below, using the slider:\r\n&nbsp;\r\n[h5p id=\"76\"]\r\n\r\n<strong>To install this Plugin:<\/strong>\r\n<ol>\r\n \t<li>Visit the <a href=\"https:\/\/github.com\/asifur-rahman9\/custom-h5p-plugin\" target=\"_blank\" rel=\"noopener\">GitHub website<\/a> and download the Custom H5P Plugin file by navigating to Code &gt;&gt; Download Zip.<\/li>\r\n \t<li>On the left-hand menu bar of Pressbooks, navigate to Plugins &gt;&gt; Network Plugins &gt;&gt; Add New Plugins &gt;&gt; Upload Plugin, then upload the Custom H5P .zip file that you downloaded.<\/li>\r\n \t<li>To activate the plugin in your open textbook, navigate to \"Dashboard\" of the specific textbook and click on \"Plugins\".<\/li>\r\n \t<li>Find your plugin name and notice an \"Activate\" button underneath. Activate the Plugin. Now, any custom CSS will only apply to that specific textbook.<\/li>\r\n<\/ol>\r\n<strong>To add your Custom CSS:<\/strong>\r\n\r\nAfter installing the Custom H5P plugin, you can now customize the H5P content types with your own CSS (and, additionally, JavaScript). To add this customization:\r\n<ol>\r\n \t<li>Navigate back to \"Plugins\". Select \"Plugin File Editor\" underneath the tab.<\/li>\r\n \t<li>On the upper right corner, notice a dropdown menu. Select your plugin.<\/li>\r\n \t<li>Notice the three Plugin files. Select \"h5p-styles.css\" and add your custom CSS in the editor. Some selectors have been added for you.<\/li>\r\n<\/ol>\r\n<strong>Note:<\/strong> Pressbooks Plugin only includes the selectors for the H5P Accordion element. However, any H5P element can be customized. To find their selectors, right-click on the H5P element on your page, then go to \"Inspect\" to find the class name selector.\r\n\r\nFor more information, consult the <a href=\"https:\/\/help.h5p.com\/hc\/en-us\/articles\/7507840755485-Custom-styling-CSS\" target=\"_blank\" rel=\"noopener\">Custom styling (CSS)<\/a> article on the H5P Help Center website.","rendered":"<div class=\"textbox outer\">\n<h2>Showcasing Complex CSS Designs in<\/h2>\n<div class=\"textbox inner\">\n<h2>Pressbooks<\/h2>\n<\/div>\n<\/div>\n<p>In this chapter, we will present CSS designs developed by our OER Team at Concordia University Library, showcasing how we have implemented them. Complex CSS designs can be used to increase accessibility features, improve navigation between and within pages, or enhance the visual look of an open textbook. These designs are primarily intended for experienced CSS users, as they involve advanced techniques and concepts. To begin understanding these concepts, it is helpful to be familiar with the <a href=\"https:\/\/opentextbooks.concordia.ca\/pressbooksuserguide\/chapter\/html-and-css-basics\/\">basics of CSS<\/a>.<\/p>\n<p>&nbsp;<\/p>\n<div class=\"menu-table h5p-display\"><span class=\"menu-table-title\">Three ways to implement these designs:<\/span><br \/>\n<a class=\"menu-table-panel\" href=\"#menu-table\">Menu Table for In-Page Navigation<\/a><br \/>\n<a class=\"menu-table-panel\" href=\"#enlarge-bar\">Enlarge the Navigation Bar<\/a><br \/>\n<a class=\"menu-table-panel\" href=\"#css-for-h5p\">Custom CSS for H5P Elements<\/a><\/div>\n<h2 id=\"menu-table\">Menu Table for In-Page Navigation<\/h2>\n<p>To help keep a chapter organized when it contains lots of information, implement a menu table at the top of a page. The table allows for easy navigation to the different sections or headers. Below are three examples of what menu tables can look like:<br \/>\n&nbsp;<\/p>\n<div id=\"h5p-77\">\n<div class=\"h5p-iframe-wrapper\"><iframe id=\"h5p-iframe-77\" class=\"h5p-iframe\" data-content-id=\"77\" style=\"height:1px\" src=\"about:blank\" frameBorder=\"0\" scrolling=\"no\" title=\"Menu Table for In-Page Navigation\"><\/iframe><\/div>\n<\/div>\n<p>By dragging the slider above, you will notice three menu table options that appear in our <em>Guide to Pressbooks.<\/em> The first contains three vertical sections, the second shows two panels, and the third is a grid of panels in three rows.\u00a0 We are providing the code for the menu table with three vertical sections, allowing it to be recreated and adapted. The other menu table examples featured in the slider above can be inferred from the code of the first one.<\/p>\n<p>The code below shows you how to implement three vertical panels named Section 1, Section 2, and Section 3.\u00a0 Add the following HTML to the Text (HTML) tab of your Chapter\/Part:<\/p>\n<div class=\"code-textbox-outer\">\n<pre class=\"code-textbox-title\">  HTML:\r\n<\/pre>\n<pre class=\"code-textbox-inner\">&lt;div <span class=\"red-text\">class=<\/span><span class=\"blue-text\">\"menu-table\"<\/span>&gt;\r\n  &lt;span <span class=\"red-text\">class=<\/span><span class=\"blue-text\">\"menu-table-title\"<\/span>&gt; <span class=\"black-text\">Menu Table<\/span> &lt;\/span&gt;\r\n  &lt;a <span class=\"red-text\">href=<\/span><span class=\"blue-text\">\"#section-1\"<\/span> <span class=\"red-text\">class=<\/span><span class=\"blue-text\">\"menu-table-panel\"<\/span>&gt;<span class=\"black-text\"> Section 1 <\/span>&lt;\/a&gt;\r\n  &lt;a <span class=\"red-text\">href=<\/span><span class=\"blue-text\">\"#section-2\"<\/span> <span class=\"red-text\">class=<\/span><span class=\"blue-text\">\"menu-table-panel\"<\/span>&gt;<span class=\"black-text\"> Section 2 <\/span>&lt;\/a&gt;\r\n  &lt;a <span class=\"red-text\">href=<\/span><span class=\"blue-text\">\"#section-3\"<\/span> <span class=\"red-text\">class=<\/span><span class=\"blue-text\">\"menu-table-panel\"<\/span>&gt;<span class=\"black-text\"> Section 3 <\/span>&lt;\/a&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<\/div>\n<p>Notice the <span class=\"inline-code red-text\">href<\/span> attribute in each panel. This attribute links the element to a specific point on the page with an <span class=\"inline-code red-text\">id<\/span> attribute of the same name.<\/p>\n<p>For example, the <span class=\"inline-code green-text\">a<\/span> element above (which is a panel) with <span class=\"inline-code red-text\">href=<span class=\"blue-text\">&#8220;#section-1&#8221;<\/span><\/span> will link to an <span class=\"inline-code green-text\">h2<\/span> element on the same page that has the <span class=\"inline-code red-text\">id=<span class=\"blue-text\">&#8220;section-1&#8221;<\/span><\/span>, as shown below.<\/p>\n<p><strong>Note:<\/strong> The value of the <span class=\"inline-code red-text\">href<\/span> attribute begins with a <span class=\"inline-code blue-text\">#<\/span>.<\/p>\n<div class=\"code-textbox-outer\">\n<pre class=\"code-textbox-title\">  HTML:\r\n<\/pre>\n<pre> &lt;h2 <span class=\"red-text\">id=<\/span><span class=\"blue-text\">\"section-1\"<\/span>&gt;<span class=\"black-text\"> Section 1 <\/span>&lt;\/h2&gt;\r\n<\/pre>\n<\/div>\n<p>Then add the following CSS to the Web Styles in Custom Styles:<\/p>\n<div class=\"code-textbox-outer\">\n<pre class=\"code-textbox-title\">  CSS:<\/pre>\n<pre class=\"code-textbox-inner black-text\"><span class=\"blue-text\">.menu-table<\/span> {\r\n  display: flex;\r\n  flex-direction: column;\r\n}\r\n\r\n<span class=\"yellow-text\">\/* Styles the Title of Your Menu Table (The Beige Section). *\/<\/span>\r\n<span class=\"blue-text\">.menu-table-title<\/span> {\r\n  width: <span class=\"green-text\">100%<\/span>;\r\n  height: <span class=\"green-text\">2.5em<\/span>;\r\n  background: <span class=\"blue-text\">#e9e3d3<\/span>;\r\n  text-align: <span class=\"blue-text\">center<\/span>;\r\n  align-content: <span class=\"blue-text\">center<\/span>;\r\n  font-size: <span class=\"green-text\">1.1em<\/span>;\r\n  font-weight: <span class=\"green-text\">600<\/span>;\r\n}\r\n\r\n<span class=\"yellow-text\">\/* Styles Each Section Box. *\/<\/span>\r\n<span class=\"blue-text\">.menu-table-panel<\/span> {\r\n  display: <span class=\"blue-text\">block<\/span>;\r\n  align-content: <span class=\"blue-text\">center<\/span>;\r\n  text-align: <span class=\"blue-text\">center<\/span>;\r\n  width: <span class=\"green-text\">100%<\/span>; \r\n  height: <span class=\"green-text\">3.125em<\/span>; \r\n  background: <span class=\"blue-text\">#912338<\/span>;\r\n  colour: <span class=\"red-text\">white !important<\/span>;\r\n  text-decoration: <span class=\"red-text\">none !important<\/span>;\r\n  font-size: <span class=\"green-text\">1.2em<\/span>;\r\n  font-weight: <span class=\"green-text\">600<\/span>;\r\n}\r\n\r\n<span class=\"yellow-text\">\/* Styles Each Section box When Hovered (On Desktop). *\/<\/span>\r\n<span class=\"blue-text\">.menu-table-panel<\/span><span class=\"green-text\">:hover<\/span> {\r\n  background: <span class=\"blue-text\">#004085<\/span>;\r\n  text-decoration: <span class=\"red-text\">underline !important<\/span>;\r\n  text-decoration-thickness: <span class=\"green-text\">0.04em !important<\/span>;\r\n}\r\n<\/pre>\n<\/div>\n<p>The CSS would produce a menu table that looks exactly like the menu table with three vertical sections above. However, you can add your own customization in CSS according to the needs of your open textbook, such as changing the panel colour with <span class=\"inline-code\">background<\/span>, changing the text colour with <span class=\"inline-code\">colour<\/span>, or the boldness of the text with <span class=\"inline-code\">font-weight<\/span>.<\/p>\n<h3>HTML and CSS Exercise<\/h3>\n<p>Attempt to create the two other variations of menu tables (two panels <strong>versus<\/strong> multiple panels with a grid of three rows).<\/p>\n<p><strong>Hint:<\/strong> The HTML elements make use of the same classes; you can experiment with their arrangement and add panel elements as needed!<\/p>\n<h2 id=\"enlarge-bar\">Enlarge the Navigation Bar<\/h2>\n<p>By default, the navigation bar at the bottom of each page is small. To enlarge the bar, add <span class=\"inline-code\">padding<\/span> and increase the <span class=\"inline-code\">font-size<\/span>. The image slider below shows the before and after of the navigation bar when the additional CSS is implemented.<br \/>\n&nbsp;<\/p>\n<div id=\"h5p-75\">\n<div class=\"h5p-iframe-wrapper\"><iframe id=\"h5p-iframe-75\" class=\"h5p-iframe\" data-content-id=\"75\" style=\"height:1px\" src=\"about:blank\" frameBorder=\"0\" scrolling=\"no\" title=\"Enlarge the Navigation Bar\"><\/iframe><\/div>\n<\/div>\n<p>To implement this change, add the following CSS to your Web Styles in Custom Styles:<\/p>\n<div class=\"code-textbox-outer\">\n<pre class=\"code-textbox-title\">  CSS:<\/pre>\n<pre class=\"code-textbox-inner\"><span class=\"yellow-text\">\/* Customizes the Next and Previous Navigation Buttons. *\/<\/span>\r\n<span class=\"blue-text\">.nav-reading__next<\/span> a<span class=\"black-text\">,<\/span> <span class=\"blue-text\">.nav-reading__previous<\/span> a <span class=\"black-text\">{\r\n  padding: <span class=\"green-text\">14px<\/span>;\r\n  font-size: <span class=\"green-text\">1.5em<\/span>;\r\n  background-color: <span class=\"blue-text\">blue<\/span>;\r\n}<\/span>\r\n\r\n<span class=\"yellow-text\">\/* Customizes the Buttons When Hovered. *\/<\/span>\r\n<span class=\"blue-text\">.nav-reading__next<\/span> a:hover<span class=\"black-text\">,<\/span> <span class=\"blue-text\">.nav-reading__previous<\/span> a:hover <span class=\"black-text\">{\r\n  background-color: <span class=\"blue-text\">red<\/span>;\r\n  color: <span class=\"blue-text\">white<\/span>;\r\n}<\/span>\r\n<\/pre>\n<\/div>\n<h2 id=\"css-for-h5p\">Custom CSS for H5P Elements<\/h2>\n<p>If H5P elements are implemented in your open textbook, it is possible to customize the H5P elements using our Custom Styles H5P Pressbooks Plugin. Student assistants on the Library&#8217;s OER Team, Asifur Rahman and Chhayhee Sok, developed our plugin. See an example of a customized H5P Accordion element below, using the slider:<br \/>\n&nbsp;<\/p>\n<div id=\"h5p-76\">\n<div class=\"h5p-iframe-wrapper\"><iframe id=\"h5p-iframe-76\" class=\"h5p-iframe\" data-content-id=\"76\" style=\"height:1px\" src=\"about:blank\" frameBorder=\"0\" scrolling=\"no\" title=\"Custom CSS for H5P Elements\"><\/iframe><\/div>\n<\/div>\n<p><strong>To install this Plugin:<\/strong><\/p>\n<ol>\n<li>Visit the <a href=\"https:\/\/github.com\/asifur-rahman9\/custom-h5p-plugin\" target=\"_blank\" rel=\"noopener\">GitHub website<\/a> and download the Custom H5P Plugin file by navigating to Code &gt;&gt; Download Zip.<\/li>\n<li>On the left-hand menu bar of Pressbooks, navigate to Plugins &gt;&gt; Network Plugins &gt;&gt; Add New Plugins &gt;&gt; Upload Plugin, then upload the Custom H5P .zip file that you downloaded.<\/li>\n<li>To activate the plugin in your open textbook, navigate to &#8220;Dashboard&#8221; of the specific textbook and click on &#8220;Plugins&#8221;.<\/li>\n<li>Find your plugin name and notice an &#8220;Activate&#8221; button underneath. Activate the Plugin. Now, any custom CSS will only apply to that specific textbook.<\/li>\n<\/ol>\n<p><strong>To add your Custom CSS:<\/strong><\/p>\n<p>After installing the Custom H5P plugin, you can now customize the H5P content types with your own CSS (and, additionally, JavaScript). To add this customization:<\/p>\n<ol>\n<li>Navigate back to &#8220;Plugins&#8221;. Select &#8220;Plugin File Editor&#8221; underneath the tab.<\/li>\n<li>On the upper right corner, notice a dropdown menu. Select your plugin.<\/li>\n<li>Notice the three Plugin files. Select &#8220;h5p-styles.css&#8221; and add your custom CSS in the editor. Some selectors have been added for you.<\/li>\n<\/ol>\n<p><strong>Note:<\/strong> Pressbooks Plugin only includes the selectors for the H5P Accordion element. However, any H5P element can be customized. To find their selectors, right-click on the H5P element on your page, then go to &#8220;Inspect&#8221; to find the class name selector.<\/p>\n<p>For more information, consult the <a href=\"https:\/\/help.h5p.com\/hc\/en-us\/articles\/7507840755485-Custom-styling-CSS\" target=\"_blank\" rel=\"noopener\">Custom styling (CSS)<\/a> article on the H5P Help Center website.<\/p>\n","protected":false},"author":94,"menu_order":4,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[48],"contributor":[],"license":[],"class_list":["post-5978","chapter","type-chapter","status-publish","hentry","chapter-type-numberless"],"part":2587,"_links":{"self":[{"href":"https:\/\/opentextbooks.concordia.ca\/pressbooksuserguide\/wp-json\/pressbooks\/v2\/chapters\/5978","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/opentextbooks.concordia.ca\/pressbooksuserguide\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/opentextbooks.concordia.ca\/pressbooksuserguide\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/opentextbooks.concordia.ca\/pressbooksuserguide\/wp-json\/wp\/v2\/users\/94"}],"version-history":[{"count":27,"href":"https:\/\/opentextbooks.concordia.ca\/pressbooksuserguide\/wp-json\/pressbooks\/v2\/chapters\/5978\/revisions"}],"predecessor-version":[{"id":6534,"href":"https:\/\/opentextbooks.concordia.ca\/pressbooksuserguide\/wp-json\/pressbooks\/v2\/chapters\/5978\/revisions\/6534"}],"part":[{"href":"https:\/\/opentextbooks.concordia.ca\/pressbooksuserguide\/wp-json\/pressbooks\/v2\/parts\/2587"}],"metadata":[{"href":"https:\/\/opentextbooks.concordia.ca\/pressbooksuserguide\/wp-json\/pressbooks\/v2\/chapters\/5978\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/opentextbooks.concordia.ca\/pressbooksuserguide\/wp-json\/wp\/v2\/media?parent=5978"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/opentextbooks.concordia.ca\/pressbooksuserguide\/wp-json\/pressbooks\/v2\/chapter-type?post=5978"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/opentextbooks.concordia.ca\/pressbooksuserguide\/wp-json\/wp\/v2\/contributor?post=5978"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/opentextbooks.concordia.ca\/pressbooksuserguide\/wp-json\/wp\/v2\/license?post=5978"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}