{"id":1125,"date":"2022-02-20T23:32:11","date_gmt":"2022-02-20T23:32:11","guid":{"rendered":"https:\/\/appliedartand.design\/lj\/?p=1125"},"modified":"2022-02-20T23:32:11","modified_gmt":"2022-02-20T23:32:11","slug":"css-refresh-and-font-size","status":"publish","type":"post","link":"https:\/\/appliedartand.design\/lj\/2022\/02\/20\/css-refresh-and-font-size\/","title":{"rendered":"CSS Refresh and font-size."},"content":{"rendered":"\n<p>These are two topic I have struggled with and one is resolved.  I have the answer, Your Welcome.   The other will probably be an ongoing learning battle.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>During the previous semester I had a lot of trouble getting my CSS to update on the school server.   Sometimes  I could refresh a few times and it would work.  I would clear my cache over and over but nothing.  Sometimes it resolved on its own overnight or after a few days.  There was one instance when it took weeks.   I was at a loss and very frustrated and wasting time trying to figure it out.  One time I deleted the entire assignment and started over.  I did not know the question to ask to get an answer.    This last week it started happening again.   This time I was able to locate a solution.  <\/p>\n\n\n\n<p><strong>Ctrl + F5 <\/strong>on PC or <strong>Cmd + Shft + R <\/strong>on Mac will force the browser to reload all the resources related to the website&#8217;s page.    I have found that if this does not work that I can open the inspector and with your cursor in the CSS panel  try again and it works.    This trick has been a lifesaver for me.   I use it almost every time I upload and preview.   You can also try <strong>Shft + Refresh<\/strong>.  This  is supposed to force the browser to download all the server files; clearing cache and updating with any newer versions. <strong>Shft + Refresh<\/strong> works for both  Mac &amp; PC,  any operating system, any browser.  I have not found this to be as effective as my first solution.  <\/p>\n\n\n\n<p>Ugh font-size!   There are so many things in CSS that I am dying to master.    This one is font-size.   If you use Dreamweaver there is a CSS options panel and it is very clever and helpful but sometimes too many choices are as good as none.   When you type font-size there is list as long as your arm with choices!<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"541\" height=\"1024\" data-id=\"1127\" src=\"https:\/\/appliedartand.design\/lj\/wp-content\/uploads\/2022\/02\/Screen-Shot-2022-02-20-at-2.24.29-PM-541x1024.png\" alt=\"\" class=\"wp-image-1127\" srcset=\"https:\/\/appliedartand.design\/lj\/wp-content\/uploads\/2022\/02\/Screen-Shot-2022-02-20-at-2.24.29-PM-541x1024.png 541w, https:\/\/appliedartand.design\/lj\/wp-content\/uploads\/2022\/02\/Screen-Shot-2022-02-20-at-2.24.29-PM-158x300.png 158w, https:\/\/appliedartand.design\/lj\/wp-content\/uploads\/2022\/02\/Screen-Shot-2022-02-20-at-2.24.29-PM.png 562w\" sizes=\"auto, (max-width: 541px) 85vw, 541px\" \/><\/figure>\n<\/figure>\n\n\n\n<p>I have sort of stuck with px because I understand it.   PX is absolute and not scalable. PX is predictable and doesn&#8217;t change, ever.   It might also be a good starting point, but what is the starting point? I think I am missing out on some styling tricks that would really help simplify things if I understood more about how they work and their relationships.  I really need to dive in and start trying.  <\/p>\n\n\n\n<p>I found this little gem on <a rel=\"noreferrer noopener\" href=\"https:\/\/css-tricks.com\/confused-rem-em\/\" data-type=\"URL\" data-id=\"https:\/\/css-tricks.com\/confused-rem-em\/\" target=\"_blank\">Confused About REM and\u00a0EM?<\/a> short and sweet and simple or too simple?<\/p>\n\n\n\n<p>While <code>em<\/code> is relative to the font-size of its direct or nearest parent (sort of), <code>rem<\/code> is only relative to the html (root) font-size.  Try this:  Us<strong>e px at the Root, use rem for components and use em for text elements<\/strong>.   Does this overly simplify?<\/p>\n\n\n\n<p>However things just get complicated and there are some very good reasons to really understand each one of these and when to use them.  <\/p>\n\n\n\n<p>This is another good article with very good descriptions <strong><a rel=\"noreferrer noopener\" href=\"https:\/\/medium.com\/@madhum86\/css-font-sizing-pixels-vs-em-vs-rem-vs-percent-vs-viewport-units-b1485716afe7\" data-type=\"URL\" data-id=\"https:\/\/medium.com\/@madhum86\/css-font-sizing-pixels-vs-em-vs-rem-vs-percent-vs-viewport-units-b1485716afe7\" target=\"_blank\">CSS Font Sizing: Pixels vs Em vs Rem vs Percent vs Viewport Units<\/a><\/strong>  Scroll down and you will find great definitions and explanations that are fairly easy to understand.  <\/p>\n\n\n\n<p>Then I got to this article which is actually an article and tutorial <a href=\"https:\/\/webdesign.tutsplus.com\/tutorials\/comprehensive-guide-when-to-use-em-vs-rem--cms-23984\" data-type=\"URL\" data-id=\"https:\/\/webdesign.tutsplus.com\/tutorials\/comprehensive-guide-when-to-use-em-vs-rem--cms-23984\">Comprehensive Guide: When to Use Em vs. Rem<\/a> .  I have to admit after going thru the whole thing I was still a bit confused BUT when I got about 2\/3 of the way thru it started to gel.   <\/p>\n\n\n\n<p>REM allows for scalability based on each user&#8217;s default browser font size.  I will forever think Root-em when I think rem.   <br>EM allows for scalability within the context of the specific design element.<\/p>\n\n\n\n<p>It is starting to make sense and I can see it is very important especially for responsive design.   <\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>These are two topic I have struggled with and one is resolved. I have the answer, Your Welcome. The other will probably be an ongoing learning battle.<\/p>\n","protected":false},"author":52,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[178],"tags":[4,9,195,196,35,15],"class_list":["post-1125","post","type-post","status-publish","format-standard","hentry","category-aad-086-sp22","tag-css","tag-css-reset","tag-em-vs-rem","tag-font-size","tag-responsive-design","tag-typography"],"_links":{"self":[{"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/posts\/1125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/users\/52"}],"replies":[{"embeddable":true,"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/comments?post=1125"}],"version-history":[{"count":2,"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/posts\/1125\/revisions"}],"predecessor-version":[{"id":1130,"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/posts\/1125\/revisions\/1130"}],"wp:attachment":[{"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/media?parent=1125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/categories?post=1125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/tags?post=1125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}