<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>or_comma Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/or_comma/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/or_comma/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Wed, 13 Apr 2022 16:34:29 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>How to use Media Query in CSS for a responsive webpage?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-use-media-query-in-css-for-a-responsive-webpage/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-use-media-query-in-css-for-a-responsive-webpage/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Sat, 14 Aug 2021 13:05:27 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[media]]></category>
		<category><![CDATA[or_comma]]></category>
		<category><![CDATA[webpage]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7956</guid>

					<description><![CDATA[<p>A media query consists of an optional media type and zero or more expressions that limit the style sheets&#8217; scope by using [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-use-media-query-in-css-for-a-responsive-webpage/">How to use Media Query in CSS for a responsive webpage?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">A media query consists of an optional media type and zero or more expressions that limit the style sheets&#8217; scope by using media features, such as width, height, and color.</p>



<p class="wp-block-paragraph"><strong>Syntax: &#8211;</strong></p>



<p class="wp-block-paragraph">@media not|only mediatype and (expressions/ media features) {   CSS;  }</p>



<p class="wp-block-paragraph"><strong>Ex: &#8211;</strong></p>



<p class="wp-block-paragraph">@media screen and (min-width: 480px) {</p>



<p class="wp-block-paragraph">&nbsp;&nbsp;&nbsp; body {</p>



<p class="wp-block-paragraph">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; background-color: lightgreen;&nbsp;&nbsp;&nbsp; }</p>



<p class="wp-block-paragraph">}</p>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph">@media (min-width: 480px) {</p>



<p class="wp-block-paragraph">&nbsp;&nbsp;&nbsp; body {</p>



<p class="wp-block-paragraph">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; background-color: lightgreen;&nbsp;&nbsp;&nbsp; }</p>



<p class="wp-block-paragraph">}</p>



<script src="https://gist.github.com/ajcotocus/47fb80c155c71a4b92a764e73181cf0c.js"></script>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="860" height="756" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-101.png" alt="" class="wp-image-7960" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-101.png 860w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-101-300x264.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-101-768x675.png 768w" sizes="(max-width: 860px) 100vw, 860px" /></figure>



<ul class="wp-block-list"><li>all &#8211; Used for all media type devices</li><li>print &#8211; Used for printers</li><li>screen &#8211; Used for computer screens, tablets, smart-phones etc.</li><li>speech &#8211; Used for screenreaders that &#8220;reads&#8221; the page out loud</li></ul>



<p class="wp-block-paragraph"><em>If you use the not or only operators, you must specify an explicit media type.</em></p>



<h2 class="wp-block-heading">And-</h2>



<ul class="wp-block-list"><li>@media (min-width: 800px) { CSS }</li><li>@media (min-width: 800px) and (orientation: landscape) { CSS }</li><li>@media screen and (min-width: 800px) and (orientation: landscape) { CSS }</li></ul>



<h2 class="wp-block-heading">Or (Comma , )-</h2>



<ul class="wp-block-list"><li>@media (min-width: 800px), (orientation: landscape) { CSS }</li></ul>



<h2 class="wp-block-heading">Not-</h2>



<ul class="wp-block-list"><li>@media not all and (min-width: 800px) { CSS }</li><li>@media not (all and (min-width: 800px)) { CSS }</li><li>@media (not all) and (min-width: 800px) { CSS }</li><li>@media not screen and (color), print and (color) { CSS }</li><li>@media (not (screen and (color))), print and (color) { CSS }</li></ul>



<script src="https://gist.github.com/ajcotocus/4639e13126b44c6d573c433ad5119f27.js"></script>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="316" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-102-1024x316.png" alt="" class="wp-image-7961" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-102-1024x316.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-102-300x93.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-102-768x237.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-102-1536x474.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-102.png 1919w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="575" height="878" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-103.png" alt="" class="wp-image-7962" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-103.png 575w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-103-196x300.png 196w" sizes="(max-width: 575px) 100vw, 575px" /></figure>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-use-media-query-in-css-for-a-responsive-webpage/">How to use Media Query in CSS for a responsive webpage?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-use-media-query-in-css-for-a-responsive-webpage/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
