{"id":259,"date":"2024-01-09T12:30:18","date_gmt":"2024-01-09T17:30:18","guid":{"rendered":"https:\/\/pressbooks.bccampus.ca\/pbtips\/?post_type=chapter&#038;p=259"},"modified":"2024-01-17T17:39:22","modified_gmt":"2024-01-17T22:39:22","slug":"correcting-font-size-discrepancy-in-table","status":"publish","type":"chapter","link":"https:\/\/pressbooks.bccampus.ca\/pbtips\/chapter\/correcting-font-size-discrepancy-in-table\/","title":{"raw":"Correcting Font Size Discrepancy in Table","rendered":"Correcting Font Size Discrepancy in Table"},"content":{"raw":"Pressbooks themes provide a set of predefined font sizes for different elements such as body text, headings, footnotes and captions. These presets help maintain a cohesive and visually appealing design throughout the book while ensuring optimal readability on different devices.\r\n<div class=\"textbox textbox--exercises\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\">Resourcces<\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n\r\nTo learn more about Appearance settings in Pressbooks, review the following guide:\r\n<ul>\r\n \t<li><a href=\"https:\/\/guide.pressbooks.com\/chapter\/appearance\/\">Pressbooks User Guide - Appearance<\/a><\/li>\r\n<\/ul>\r\n<\/div>\r\n<\/div>\r\n<div style=\"font-weight: 400\">\r\n<div>\r\n<h2>Issue<\/h2>\r\nThe text within a table is displaying as different font sizes, despite all text being formatted as Paragraph.\r\n<h2>Solution<\/h2>\r\n<img class=\"aligncenter wp-image-237 size-full\" src=\"https:\/\/pressbooks.bccampus.ca\/pbtips\/wp-content\/uploads\/sites\/1918\/2023\/07\/PBTips_FontCSS.png\" alt=\"\" width=\"940\" height=\"586\" \/>\r\n\r\nAdd CSS to the <strong>Custom Style Sheet <\/strong>that will set the font size within a table to 1.125rem (the standard for size for Paragraph text).\r\n<ol>\r\n \t<li>On the Dashboard, select<strong> Appearance<\/strong> then<strong> Custom Styles<\/strong><\/li>\r\n \t<li>At the top of the page, select <strong>Web<\/strong> on the dropdown menu labelled -\u00a0 <strong>You are currently editing styles for: <\/strong><\/li>\r\n \t<li>In the <strong>Your Web Styles<\/strong> box, add the CSS shown below.<\/li>\r\n<\/ol>\r\n<\/div>\r\n<\/div>\r\n<div>\r\n<div class=\"textbox\">\r\n\r\n<strong>Custom CSS:<\/strong>\r\n\r\n.chapter table{\r\nfont-size:1.125rem;\r\n}\r\n\r\n<\/div>\r\n&nbsp;\r\n\r\n<\/div>\r\n<div>\r\n<div><\/div>\r\n<div>\r\n\r\n&nbsp;\r\n\r\n<\/div>\r\n<\/div>","rendered":"<p>Pressbooks themes provide a set of predefined font sizes for different elements such as body text, headings, footnotes and captions. These presets help maintain a cohesive and visually appealing design throughout the book while ensuring optimal readability on different devices.<\/p>\n<div class=\"textbox textbox--exercises\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\">Resourcces<\/p>\n<\/header>\n<div class=\"textbox__content\">\n<p>To learn more about Appearance settings in Pressbooks, review the following guide:<\/p>\n<ul>\n<li><a href=\"https:\/\/guide.pressbooks.com\/chapter\/appearance\/\">Pressbooks User Guide &#8211; Appearance<\/a><\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div style=\"font-weight: 400\">\n<div>\n<h2>Issue<\/h2>\n<p>The text within a table is displaying as different font sizes, despite all text being formatted as Paragraph.<\/p>\n<h2>Solution<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-237 size-full\" src=\"https:\/\/pressbooks.bccampus.ca\/pbtips\/wp-content\/uploads\/sites\/1918\/2023\/07\/PBTips_FontCSS.png\" alt=\"\" width=\"940\" height=\"586\" srcset=\"https:\/\/pressbooks.bccampus.ca\/pbtips\/wp-content\/uploads\/sites\/1918\/2023\/07\/PBTips_FontCSS.png 940w, https:\/\/pressbooks.bccampus.ca\/pbtips\/wp-content\/uploads\/sites\/1918\/2023\/07\/PBTips_FontCSS-300x187.png 300w, https:\/\/pressbooks.bccampus.ca\/pbtips\/wp-content\/uploads\/sites\/1918\/2023\/07\/PBTips_FontCSS-768x479.png 768w, https:\/\/pressbooks.bccampus.ca\/pbtips\/wp-content\/uploads\/sites\/1918\/2023\/07\/PBTips_FontCSS-65x41.png 65w, https:\/\/pressbooks.bccampus.ca\/pbtips\/wp-content\/uploads\/sites\/1918\/2023\/07\/PBTips_FontCSS-225x140.png 225w, https:\/\/pressbooks.bccampus.ca\/pbtips\/wp-content\/uploads\/sites\/1918\/2023\/07\/PBTips_FontCSS-350x218.png 350w\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" \/><\/p>\n<p>Add CSS to the <strong>Custom Style Sheet <\/strong>that will set the font size within a table to 1.125rem (the standard for size for Paragraph text).<\/p>\n<ol>\n<li>On the Dashboard, select<strong> Appearance<\/strong> then<strong> Custom Styles<\/strong><\/li>\n<li>At the top of the page, select <strong>Web<\/strong> on the dropdown menu labelled &#8211;\u00a0 <strong>You are currently editing styles for: <\/strong><\/li>\n<li>In the <strong>Your Web Styles<\/strong> box, add the CSS shown below.<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<div>\n<div class=\"textbox\">\n<p><strong>Custom CSS:<\/strong><\/p>\n<p>.chapter table{<br \/>\nfont-size:1.125rem;<br \/>\n}<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<\/div>\n<div>\n<div><\/div>\n<div>\n<p>&nbsp;<\/p>\n<\/div>\n<\/div>\n","protected":false},"author":1076,"menu_order":3,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-259","chapter","type-chapter","status-publish","hentry"],"part":249,"_links":{"self":[{"href":"https:\/\/pressbooks.bccampus.ca\/pbtips\/wp-json\/pressbooks\/v2\/chapters\/259","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pressbooks.bccampus.ca\/pbtips\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/pressbooks.bccampus.ca\/pbtips\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/pbtips\/wp-json\/wp\/v2\/users\/1076"}],"version-history":[{"count":1,"href":"https:\/\/pressbooks.bccampus.ca\/pbtips\/wp-json\/pressbooks\/v2\/chapters\/259\/revisions"}],"predecessor-version":[{"id":260,"href":"https:\/\/pressbooks.bccampus.ca\/pbtips\/wp-json\/pressbooks\/v2\/chapters\/259\/revisions\/260"}],"part":[{"href":"https:\/\/pressbooks.bccampus.ca\/pbtips\/wp-json\/pressbooks\/v2\/parts\/249"}],"metadata":[{"href":"https:\/\/pressbooks.bccampus.ca\/pbtips\/wp-json\/pressbooks\/v2\/chapters\/259\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.bccampus.ca\/pbtips\/wp-json\/wp\/v2\/media?parent=259"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/pbtips\/wp-json\/pressbooks\/v2\/chapter-type?post=259"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/pbtips\/wp-json\/wp\/v2\/contributor?post=259"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/pbtips\/wp-json\/wp\/v2\/license?post=259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}