{"id":1314,"date":"2022-04-05T01:49:52","date_gmt":"2022-04-05T01:49:52","guid":{"rendered":"https:\/\/appliedartand.design\/lj\/?p=1314"},"modified":"2022-04-05T01:49:52","modified_gmt":"2022-04-05T01:49:52","slug":"whats-a-media-query","status":"publish","type":"post","link":"https:\/\/appliedartand.design\/lj\/2022\/04\/05\/whats-a-media-query\/","title":{"rendered":"What&#8217;s A Media Query?"},"content":{"rendered":"\n<p>Understanding this key part of responsive web design is essential before learning how to use them in your CSS code. <\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Media queries allow a designer to create multiple layouts for their HTML code based on the size of the viewport. They can also be used to detect other parts of the viewer&#8217;s environment, for example, touchscreen or mouse. These queries are placed at the end of your stylesheet.<\/p>\n\n\n\n<p>A basic media query should look like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>@media media-type and (media-feature-rule) {\n  \/* CSS rules go here *\/\n}<\/code><\/pre>\n\n\n\n<p>This code consists of a media type (print, screen, or all), media expression (a rule that must be passed for CSS to apply), and the CSS rules you want applied. <\/p>\n\n\n\n<p>There you have it! A basic breakdown of media queries. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Understanding this key part of responsive web design is essential before learning how to use them in your CSS code.<\/p>\n","protected":false},"author":58,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[178],"tags":[172],"class_list":["post-1314","post","type-post","status-publish","format-standard","hentry","category-aad-086-sp22","tag-media-queries"],"_links":{"self":[{"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/posts\/1314","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\/58"}],"replies":[{"embeddable":true,"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/comments?post=1314"}],"version-history":[{"count":1,"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/posts\/1314\/revisions"}],"predecessor-version":[{"id":1315,"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/posts\/1314\/revisions\/1315"}],"wp:attachment":[{"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/media?parent=1314"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/categories?post=1314"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/tags?post=1314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}