{"id":53,"date":"2024-09-30T16:51:48","date_gmt":"2024-10-01T00:51:48","guid":{"rendered":"https:\/\/dulce.matmcc.org\/creative-journal\/?p=53"},"modified":"2024-12-11T18:25:16","modified_gmt":"2024-12-12T02:25:16","slug":"dusting-off-html-css","status":"publish","type":"post","link":"https:\/\/dulce.matmcc.org\/creative-journal\/dusting-off-html-css\/","title":{"rendered":"Dusting Off HTML &amp; CSS"},"content":{"rendered":"\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\">\n<p class=\"wp-block-paragraph\">This is the link to download the documents with all the code I used for this page and in class:<\/p>\n\n\n\n<div class=\"wp-block-file\"><a id=\"wp-block-file--media-1a50b2e2-ca7d-4bd7-94d1-2542e2255310\" href=\"https:\/\/cortez.matmcc.org\/wp-content\/uploads\/2024\/09\/8-27.zip\" target=\"_blank\" rel=\"noreferrer noopener\">8-27<\/a><a href=\"https:\/\/cortez.matmcc.org\/wp-content\/uploads\/2024\/09\/8-27.zip\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-1a50b2e2-ca7d-4bd7-94d1-2542e2255310\">Download<\/a><\/div>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-dots\"\/>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\">\n<h2 class=\"wp-block-heading has-text-align-left\">Rem vs Ems<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Ems used to be the norm in web development, but frankly, when rems joined the party, people started to use them because they made more sense and also made the math <em>a lot <\/em>easier. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ems have a complicated existence. They get their name from the letter &#8216;M&#8217; because the size of an &#8216;M&#8217; in width is the largest in the alphabet. So, using an em is like using 100% of the font size. To do this, Ems target their parent element. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By contrast, Rems target the root element hence their name &#8216;root ems.&#8217;<\/p>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\">\n<h3 class=\"wp-block-heading has-text-align-left has-large-font-size\">Example<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Take a look at the code below:<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-f56f613f wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<pre class=\"wp-block-code wp-container-content-d0f1e62e\"><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#4ad7d2\" class=\"has-inline-color\">&lt;main&gt;\n  &lt;section <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#e89292\" class=\"has-inline-color\">class<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">=<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffaa35\" class=\"has-inline-color\">\"em\"<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#4ad7d2\" class=\"has-inline-color\">&gt;\n    &lt;article <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#e89292\" class=\"has-inline-color\">class<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">=<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffaa35\" class=\"has-inline-color\">\"em\"<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#4ad7d2\" class=\"has-inline-color\">&gt;\n      &lt;p&gt;<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">Lorem ipsum\n      dolor sit amet<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#4ad7d2\" class=\"has-inline-color\">&lt;\/p&gt;\n    &lt;\/article&gt;\n  &lt;\/section&gt;\n          \n  &lt;section <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#e89292\" class=\"has-inline-color\">class<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">=<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffaa35\" class=\"has-inline-color\">\"rem\"<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#4ad7d2\" class=\"has-inline-color\">&gt;\n    &lt;article <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#e89292\" class=\"has-inline-color\">class<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">=<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffaa35\" class=\"has-inline-color\">\"rem\"<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#4ad7d2\" class=\"has-inline-color\">&gt;\n      &lt;p&gt;<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">Lorem ipsum\n      dolor sit amet<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#4ad7d2\" class=\"has-inline-color\">&lt;\/p&gt;\n    &lt;\/article&gt;\n  &lt;\/section&gt;\n&lt;\/main&gt;<\/mark><\/code><\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<pre class=\"wp-block-code wp-container-content-d0f1e62e\"><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#58ff88\" class=\"has-inline-color\">main <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">{<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#58ff88\" class=\"has-inline-color\">\n    <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-primary-color\">font-size<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">:<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#58ff88\" class=\"has-inline-color\"> <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#cdcdcd\" class=\"has-inline-color\">10px<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">;<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#58ff88\" class=\"has-inline-color\">\n<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">}<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#58ff88\" class=\"has-inline-color\">\n\nsection.em <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">{<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#58ff88\" class=\"has-inline-color\">\n    <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-primary-color\">font-size<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">:<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#58ff88\" class=\"has-inline-color\"> <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#cdcdcd\" class=\"has-inline-color\">2em<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">;<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#58ff88\" class=\"has-inline-color\">\n<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">}<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#58ff88\" class=\"has-inline-color\">\n\narticle.em <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">{\n<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#58ff88\" class=\"has-inline-color\">    <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-primary-color\">font-size<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">:<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#58ff88\" class=\"has-inline-color\"> <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#cdcdcd\" class=\"has-inline-color\">2em<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">;<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#58ff88\" class=\"has-inline-color\">\n<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">}<\/mark>\n\n\n\n\n<\/code><\/pre>\n<\/div>\n<\/div>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">As a result of this code, the <code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">&lt;article&gt;<\/mark><\/code> will result in a font size of 40px. This is because ems look to their parent element for the size. If section is set to 2em, then it looks to it&#8217;s parent, <code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">&lt;main&gt;<\/mark><\/code><\/code><\/code> whose font size is 10px. Two of those is 20px. <code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">&lt;article&gt;<\/mark><\/code><\/code> is also set to 2rem so the browser looks to it&#8217;s parent, <code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">&lt;section&gt;<\/mark><\/code><\/code> <code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">&lt;section&gt;<\/mark><\/code><\/code>&#8216;s font size is 20px so two of those would make it 40px. <\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-f56f613f wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<pre class=\"wp-block-code wp-container-content-d0f1e62e\"><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#58ff88\" class=\"has-inline-color\">:root <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">{<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#58ff88\" class=\"has-inline-color\">\n    <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-primary-color\">font-size<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">:<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#58ff88\" class=\"has-inline-color\"> <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#cdcdcd\" class=\"has-inline-color\">10px<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">;<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#58ff88\" class=\"has-inline-color\">\n<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">}<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#58ff88\" class=\"has-inline-color\">\n\nsection.rem <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">{<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#58ff88\" class=\"has-inline-color\">\n    <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-primary-color\">font-size<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">:<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#58ff88\" class=\"has-inline-color\"> <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#cdcdcd\" class=\"has-inline-color\">2rem<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">;<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#58ff88\" class=\"has-inline-color\">\n<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">}<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#58ff88\" class=\"has-inline-color\">\n\narticle.rem <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">{\n<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#58ff88\" class=\"has-inline-color\">    <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-primary-color\">font-size<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">:<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#58ff88\" class=\"has-inline-color\"> <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#cdcdcd\" class=\"has-inline-color\">2rem<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">;<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#58ff88\" class=\"has-inline-color\">\n<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">}<\/mark>\n\n<\/code><\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"wp-container-content-d0f1e62e wp-block-paragraph\">However, replacing the above CSS with this code, would result in the text being 20px. When the font size of <code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">&lt;section&gt;<\/mark><\/code><\/code> is set to 2rem, it looks to the root whose font size is 10px, making it 20px. <code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">&lt;article&gt;<\/mark><\/code><\/code>&#8216;s font size is also set to 2rem which makes it look to the root as well. Despite it&#8217;s parent being set to 2rem, it makes no difference. On a related note, <code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">:root<\/mark><\/code><\/code><\/code> refers to the root of the document or the <code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">&lt;html&gt;<\/mark><\/code><\/code> element which is represented by the html selector in CSS. It&#8217;s a pseudo-class so it has a higher specificity. <\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-dots\"\/>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\">\n<h2 class=\"wp-block-heading\">Block vs Inline Elements<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Block elements span the entire width of the viewport which makes elements that come after it appear under it because there is no space next to them. Examples of these elements are headers, paragraphs, and lists<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Inline elements do not take the entire width of the viewport. They only take up the space they need to based on their content. These can appear inside block elements. Some examples are span, a, and em. <\/p>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-dots\"\/>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\">\n<h2 class=\"wp-block-heading\">Semantic Tags<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Semantic elements are elements that give the browser some meaning as to what content will be going inside it. They don&#8217;t use up space on the screen and are for the developer to organize their code and content in a much easier manner both for them and anyone they want to share their code with. Semantic elements also make it easier to target a large block of code to style and then find it later because there aren&#8217;t a million divs. Before semantic elements, divs and spans were overwhelmingly used and classes and ids were used to differentiate them, but that quickly became extremely confusing. These are the most common semantic tags:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">&lt;header&gt;<\/mark><\/code><\/code><\/code> &#8211; A header is like an introduction to the website. It appears at the top and is usually the first element in the body. It can contain hero images, the message of the brand, or a logo. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">&lt;nav&gt;<\/mark><\/code><\/code><\/code> &#8211; In here goes any type of navigation. Most of the time, unordered lists and list items are found inside this tag. Navigation also appears at the top of the webpage. There are many types of navigation such as global navigation which is always present or navigation that maybe specific to a certain page. These can be differentiated with classes or ids, but navigation always goes inside a nav tag. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">&lt;main&gt;<\/mark><\/code><\/code><\/code> &#8211; Main contains all the main content of the document. This can be made up of multiple sections and articles. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">&lt;section&gt;<\/mark><\/code><\/code><\/code> &#8211; A section typically contains a heading inside it and it defines a section of the document. Each section contains a different topic like how each paragraph in an essay contains a new idea.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">&lt;article&gt;<\/mark><\/code><\/code><\/code> &#8211; Articles are like sections of a section. They can go alone, but can also be nested within a section. They are used to differentiate subtopics of the same topic.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">&lt;aside&gt;<\/mark><\/code><\/code><\/code> &#8211; An aside is used for content that is related to the website, but separate from the content inside &lt;main&gt;. Usually, this content appears on the side of the screen. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">&lt;footer&gt;<\/mark><\/code><\/code><\/code> &#8211; This goes at the bottom of a webpage. It typically has contact information, links to other resources, and copyright information.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here are some more <a href=\"https:\/\/www.w3schools.com\/html\/html5_semantic_elements.asp\" target=\"_blank\" rel=\"noreferrer noopener\">semantic tags<\/a>.<\/p>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-dots\"\/>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\">\n<h2 class=\"wp-block-heading\">Viewport Units<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">There are four viewport units: vh, vw, vmin, vmax. They are units of measurement used in CSS based on the viewport size. These units are responsive since they change with the size of the viewport. This is a <a href=\"https:\/\/www.sitepoint.com\/css-viewport-units-quick-start\/\" target=\"_blank\" rel=\"noreferrer noopener\">helpful website<\/a> to understand these units.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Vh stands for viewport height. 1vh is 1% of the viewport while 100vh is 100% of the viewport.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Vw stands for viewport width. 1vw is 1% of the viewport while 100vw is 100% of the viewport. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Vmin stands for viewport minimum. This is based off of the smallest dimension of the viewport. 1vmin would be 1% of the width if it was smaller than the length. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Vmax stands for viewport maximum. This is based off of the largest dimension of the viewport. 100vmax would be 100% of the length if it was larger than the width.<\/p>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-dots\"\/>\n\n\n\n<div class=\"wp-block-group alignwide is-layout-constrained wp-block-group-is-layout-constrained\" style=\"padding-top:0;padding-bottom:0\">\n<h2 class=\"wp-block-heading\">Emmet<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Emmet is a toolkit that makes it easier to write HTML and CSS. This is the link to the emmet <a href=\"https:\/\/docs.emmet.io\/cheat-sheet\/\">cheat sheet<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The following are shortcuts that I believe are the most helpful as well as the ones I use\/have used the most: <\/p>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\">\n<h3 class=\"wp-block-heading has-large-font-size\">Typing In Multiple Spots<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Holding down Command while clicking multiple places in the code allows for the user to type the same thing in multiple spots. This is useful for adding things like classes or ids to multiple elements or indenting multiple elements. Press command again in the same spots to remove the effect. <\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\">\n<h3 class=\"wp-block-heading has-large-font-size\">Creating Long Blocks of Code With One Line<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This line, <code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">nav#global&gt;ul&gt;li*5&gt;a[href=#]<\/mark><\/code>, creates the code below:<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-f56f613f wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<pre class=\"wp-block-code wp-container-content-af9c59cb\"><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#4ad7d2\" class=\"has-inline-color\">&lt;nav <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#e89292\" class=\"has-inline-color\">id<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">=<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffaa35\" class=\"has-inline-color\">\"global\"<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#4ad7d2\" class=\"has-inline-color\">&gt;\n  &lt;ul&gt;\n    &lt;li&gt;&lt;a <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#e89292\" class=\"has-inline-color\">href<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">=<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffaa35\" class=\"has-inline-color\">\"#\"<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#4ad7d2\" class=\"has-inline-color\">&gt;&lt;\/a&gt;&lt;\/li&gt;\n    &lt;li&gt;&lt;a <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#e89292\" class=\"has-inline-color\">href<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">=<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffaa35\" class=\"has-inline-color\">\"#\"<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#4ad7d2\" class=\"has-inline-color\">&gt;&lt;\/a&gt;&lt;\/li&gt;\n    &lt;li&gt;&lt;a <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#e89292\" class=\"has-inline-color\">href<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">=<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffaa35\" class=\"has-inline-color\">\"#\"<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#4ad7d2\" class=\"has-inline-color\">&gt;&lt;\/a&gt;&lt;\/li&gt;<\/mark>\n    <mark style=\"background-color:rgba(0, 0, 0, 0);color:#4ad7d2\" class=\"has-inline-color\">&lt;li&gt;&lt;a <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#e89292\" class=\"has-inline-color\">href<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">=<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffaa35\" class=\"has-inline-color\">\"#\"<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#4ad7d2\" class=\"has-inline-color\">&gt;&lt;\/a&gt;&lt;\/li&gt;\n    &lt;li&gt;&lt;a <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#e89292\" class=\"has-inline-color\">href<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">=<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffaa35\" class=\"has-inline-color\">\"#\"<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#4ad7d2\" class=\"has-inline-color\">&gt;&lt;\/a&gt;&lt;\/li&gt;\n  &lt;\/ul&gt;\n&lt;\/nav&gt;<\/mark><\/code><\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"wp-container-content-61e9ec63 wp-block-paragraph\">Now, let&#8217;s break it apart. The <code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">#<\/mark><\/code><\/code><\/code> specifies an id. So <code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">nav#global<\/mark><\/code><\/code><\/code> is a nav tag with the id &#8220;global&#8221; Anything following a <code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">&gt;<\/mark><\/code><\/code><\/code> is a child element and goes down a layer in the hierarchy. To go back up, you use <code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">^<\/mark><\/code><\/code><\/code>. Inside our nav goes an unordered list and inside that are list items. <code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">*<\/mark><\/code><\/code><\/code> represents multiplication so <code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">li*5<\/mark><\/code><\/code><\/code> makes 5 list items. Inside each of those list items is an anchor. By default, when Emmet creates an anchor, the href attribute is already there, but there is nothing inside the quotation marks. To place a <mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\"><code>#<\/code><\/mark> inside the quotation marks (which in this context is used as a placeholder), use <code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">[]<\/mark><\/code><\/code><\/code>. Inside them, specify the attribute and<\/p>\n<\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"margin-top:0;margin-bottom:0\">set them equal to something: <code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">[href=#]<\/mark><\/code><\/code><\/code>. Press tab and voila.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group alignwide is-layout-constrained wp-block-group-is-layout-constrained\">\n<h3 class=\"wp-block-heading has-large-font-size\">Other Useful Short Cuts<\/h3>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-f56f613f wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"has-text-align-center has-large-font-size wp-block-paragraph\">Siblings<br><br><\/p>\n\n\n\n<p class=\"has-text-align-center has-medium-font-size wp-block-paragraph\"><code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">header&gt;h2^img+p<\/mark><\/code><\/code><\/code><br><\/p>\n\n\n\n<pre class=\"wp-block-code wp-container-content-69bc4bdf\"><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#4ad7d2\" class=\"has-inline-color\">&lt;header>\n  &lt;h2>&lt;\/h2>\n&lt;\/header>\n&lt;img <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#e89292\" class=\"has-inline-color\">src<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">=<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffaa35\" class=\"has-inline-color\">\"\"<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#e89292\" class=\"has-inline-color\"> alt<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">=<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffaa35\" class=\"has-inline-color\">\"\"<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#4ad7d2\" class=\"has-inline-color\">>\n&lt;p>&lt;\/p><\/mark>\n\n\n\n\n\n\n<\/code><\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"has-text-align-center has-large-font-size wp-block-paragraph\">Text &amp; Item Numbering <\/p>\n\n\n\n<p class=\"has-text-align-center has-medium-font-size wp-block-paragraph\"><code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">ul&gt;li*5{Item $}<\/mark><\/code><\/code><\/code><br><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#4ad7d2\" class=\"has-inline-color\">&lt;ul&gt;\n  &lt;li&gt;<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">Item 1<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#4ad7d2\" class=\"has-inline-color\">&lt;\/li&gt;\n  &lt;li&gt;<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">Item 2<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#4ad7d2\" class=\"has-inline-color\">&lt;\/li&gt;\n  &lt;li&gt;<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">Item 3<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#4ad7d2\" class=\"has-inline-color\">&lt;\/li&gt;\n  &lt;li&gt;<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">Item 4<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#4ad7d2\" class=\"has-inline-color\">&lt;\/li&gt;\n  &lt;li&gt;<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-foreground-color\">Item 5<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#4ad7d2\" class=\"has-inline-color\">&lt;\/li&gt;\n&lt;\/ul&gt;<\/mark><\/code><\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"has-text-align-center has-large-font-size wp-block-paragraph\">Grouping<br><\/p>\n\n\n\n<p class=\"has-text-align-center has-medium-font-size wp-container-content-69bc4bdf wp-block-paragraph\"><code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">section>(header>h2+p)+p<\/mark><\/code><\/code><\/code><br><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#4ad7d2\" class=\"has-inline-color\">&lt;section>\n  &lt;header>\n    &lt;h2>&lt;\/h2>\n      &lt;p>&lt;\/p>\n  &lt;\/header>\n  &lt;p>&lt;\/p>\n&lt;\/section><\/mark>\n\n\n\n\n\n<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-dots\"\/>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\">\n<h2 class=\"wp-block-heading\">Developer Tools<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To open the Developer Tools in Chrome: <em>3 dots in the corner &gt; More Tools &gt; Developer Tools <\/em>or use the shortcut command + control + I. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the developer tools, developers can click line by line on their html and see what styles are placed on it. Styles can be altered in real time temporarily in the Styles section on the right pane. However, if the page is refreshed, the styles are reset to how they are written on the style sheet.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Furthermore, next to the Styles tab on the right pane is a pane called &#8216;Computed.&#8217; Here, a developer can view how much space an element is taking up such as its border, margin, padding, and content. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Next to that is &#8216;Layout,&#8217; which is used when flexbox or grid is placed on elements. A developer can select elements that have<code> <code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">display: grid<\/mark><\/code><\/code><\/code> <\/code>or<code> <code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">display: flex<\/mark><\/code> <\/code><\/code><\/code>on them, and they&#8217;ll be highlighted in a color. Track sizes can be seen as well as numbers for use with grid. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A button to the left of &#8216;Elements&#8217; is called &#8220;Toggle Device Toolbar.&#8221; When that is pressed, the width and height of the viewport and can be altered by dragging it. This is especially useful for media queries. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The developer tools can also be docked against different sides of the screen by clicking the 3 dots on the bottom right next to the &#8216;x.&#8217; Docking them against the left or right sides allows for a developer to see the downward flow of their webpage as they build or style it in the beginning stages(like when they&#8217;re building the mobile version). It&#8217;s also easier to see all of the code at once without having to scroll. However, because of this, the amount of pixels in width is limited if the developer tools are docks on the sides, so when building tablet or computer version of the site, it may be easier to see how they&#8217;ll look if the developer tools are docked to the bottom.<\/p>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-dots\"\/>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\">\n<h2 class=\"wp-block-heading\">Flexbox<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Flex box is a one-dimensional responsive layout. There are flex containers and flex items. The flex container is the element that display: flex is placed upon. Flex is inherited so everything inside the flex container become flex items. <\/p>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\">\n<h3 class=\"wp-block-heading has-large-font-size\">Flex Container<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">These are the properties that can be placed on the flex container: <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code><code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">justify-content<\/mark><\/code><\/code><\/code><\/code> &#8211; aligns flex items horizontally within the flex container like aligning text. They can be aligned on either side of the viewport, in the center, with equal amounts of space between them, or equal amounts of space both around and between them. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code><code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">align-items<\/mark><\/code><\/code><\/code><\/code> &#8211; aligns flex items vertically within the flex container. They can be aligned on either side of the viewport, in the center, with equal amounts of space between them, or equal amounts of space both around and between them. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code><code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">flex-direction<\/mark><\/code><\/code><\/code><\/code> &#8211; controls the direction in which the flex items go. By default, it is set to &#8216;row,&#8217; so the items appear beside each other. This can be changed to column in which they&#8217;ll be arrange from top to bottom or in the reverse, where they&#8217;ll  be arranged from bottom to top  (column-reverse) or right to left (row-reverse). <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">flex-wrap<\/mark><\/code><\/code><\/code> &#8211; controls if the flex items will spill onto a new line or squish themselves in a singular one. By default, this property is set to nowrap, meaning they&#8217;ll squish themselves, but it can be changed to wrap and wrap-reverse where they&#8217;ll wrap, but backwards. This allows for better readability, especially on smaller screens. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">flex-flow<\/mark><\/code><\/code><\/code> &#8211; short hand for flex-direction and flex-wrap<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">gap<\/mark><\/code><\/code><\/code> &#8211; controls how much space is between the flex items<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-large-font-size\">Flex Items<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">These are the properties that can be placed on the items:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">order<\/mark><\/code><\/code><\/code> &#8211; sets the order in which elements appear even if they are written differently in the html<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">flex-grow<\/mark><\/code><\/code><\/code> &#8211; determines how much a flex item will grow or stretch compared to the rest of the items. By default, it&#8217;s set to 0. If it&#8217;s set to 2, then that item will grow twice as fast as the others. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">align-self<\/mark><\/code><\/code><\/code> &#8211; overrides <code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">align-items<\/mark><\/code><\/code><\/code> that is placed on the flex container<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">flex-shrink<\/mark><\/code><\/code><\/code> &#8211; determines how much a flex item will shrink compared to the rest of the items. By default, it&#8217;s set to 1, meaning it&#8217;ll shrink the same amount as the other items. If it&#8217;s set to 0, it won&#8217;t shrink at all. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">flex-basis<\/mark><\/code><\/code><\/code> &#8211; sets the initial length of a flex item<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">flex<\/mark><\/code><\/code><\/code> &#8211; shorthand for <code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">flex-grow<\/mark><\/code><\/code><\/code>, <code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">flex-shrink<\/mark><\/code><\/code><\/code>, and <code><code><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffe481\" class=\"has-inline-color\">flex-basis<\/mark><\/code><\/code><\/code><\/p>\n<\/div>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-dots\"\/>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\">\n<h2 class=\"wp-block-heading\">Media Queries<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Media queries add responsiveness to a website. They set conditions on the webpage to change things like layout, or font size when they are met. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"padding-bottom:0\"><em>Note: Media queries weren&#8217;t working until I added this meta tag in the head element:<\/em> <\/p>\n\n\n\n<pre class=\"wp-block-code\" style=\"border-style:none;border-width:0px;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0;font-size:0.9rem\"><code>&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"&gt;<\/code><\/pre>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-f56f613f wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:66.66%\">\n<pre class=\"wp-block-code wp-container-content-0a54d598\"><code><mark style=\"background-color:rgba(0, 0, 0, 0);color:#58ff88\" class=\"has-inline-color\">@media<\/mark> <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-primary-color\">screen<\/mark> <mark style=\"background-color:rgba(0, 0, 0, 0);color:#cdcdcd\" class=\"has-inline-color\">and<\/mark> (<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-primary-color\">min-width<\/mark>:<mark style=\"background-color:rgba(0, 0, 0, 0);color:#cdcdcd\" class=\"has-inline-color\">850px<\/mark>) {\n   <mark style=\"background-color:rgba(0, 0, 0, 0);color:#58ff88\" class=\"has-inline-color\">section<\/mark> {\n        <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-primary-color\">display<\/mark>: <mark style=\"background-color:rgba(0, 0, 0, 0);color:#cdcdcd\" class=\"has-inline-color\">flex<\/mark>;\n        <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-primary-color\">justify-content<\/mark>: <mark style=\"background-color:rgba(0, 0, 0, 0);color:#cdcdcd\" class=\"has-inline-color\">center<\/mark>;\n        <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-primary-color\">gap<\/mark>: <mark style=\"background-color:rgba(0, 0, 0, 0);color:#cdcdcd\" class=\"has-inline-color\">3rem<\/mark>;\n    }\n}<\/code><\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:33.33%\">\n<p class=\"wp-container-content-21c618ab wp-block-paragraph\">For example, here is a media query, that states that when the viewport is 850px in width, everything inside will take effect. <\/p>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-f56f613f wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"wp-block-paragraph\">This is at 411px in width. The text appears under the image because by default, they are block elements. <\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a0fe0ba03ba6&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a0fe0ba03ba6\" class=\"wp-block-image size-large is-resized is-style-default wp-duotone-default-filter wp-lightbox-container\"><img decoding=\"async\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/cortez.matmcc.org\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-08-at-8.26.50\u202fPM-1024x971.png\" alt=\"\" class=\"wp-image-162\" style=\"width:382px;height:auto\"\/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Below is at 1109px. It is over 850px so the conditions have taken effect. The display of the sections have been switched to flex so now they appear side by side. <\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a0fe0ba04314&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a0fe0ba04314\" class=\"wp-block-image size-large is-resized is-style-default wp-duotone-unset-1 wp-lightbox-container\"><img decoding=\"async\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/cortez.matmcc.org\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-08-at-8.26.06\u202fPM-1024x650.png\" alt=\"\" class=\"wp-image-163\" style=\"width:654px;height:auto\"\/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-dots\"\/>\n","protected":false},"excerpt":{"rendered":"<p>These are my notes on what was covered in class on 8\/27\/24 as well as some extra research. This includes notes and examples for rem vs ems, block vs inline elements, semantic tags, viewport units, emmet, flexbox, etc<\/p>\n","protected":false},"author":1,"featured_media":54,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,4],"tags":[46,45,42,44,51,41,47,43,49,50],"class_list":["post-53","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-class-work","category-notes","tag-block","tag-code","tag-css","tag-em","tag-emmet","tag-html","tag-inline","tag-rem","tag-semantic-tags","tag-viewport"],"_links":{"self":[{"href":"https:\/\/dulce.matmcc.org\/creative-journal\/wp-json\/wp\/v2\/posts\/53","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dulce.matmcc.org\/creative-journal\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dulce.matmcc.org\/creative-journal\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dulce.matmcc.org\/creative-journal\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dulce.matmcc.org\/creative-journal\/wp-json\/wp\/v2\/comments?post=53"}],"version-history":[{"count":11,"href":"https:\/\/dulce.matmcc.org\/creative-journal\/wp-json\/wp\/v2\/posts\/53\/revisions"}],"predecessor-version":[{"id":488,"href":"https:\/\/dulce.matmcc.org\/creative-journal\/wp-json\/wp\/v2\/posts\/53\/revisions\/488"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dulce.matmcc.org\/creative-journal\/wp-json\/wp\/v2\/media\/54"}],"wp:attachment":[{"href":"https:\/\/dulce.matmcc.org\/creative-journal\/wp-json\/wp\/v2\/media?parent=53"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dulce.matmcc.org\/creative-journal\/wp-json\/wp\/v2\/categories?post=53"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dulce.matmcc.org\/creative-journal\/wp-json\/wp\/v2\/tags?post=53"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}