| 
									
										
										
										
											2018-10-12 15:37:13 -04:00
										 |  |  | --- | 
					
						
							|  |  |  | title: Create a Media Query | 
					
						
							|  |  |  | --- | 
					
						
							| 
									
										
										
										
											2019-07-24 00:59:27 -07:00
										 |  |  | # Create a Media Query
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | --- | 
					
						
							|  |  |  | ## Solutions
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <details><summary>Solution 1 (Click to Show/Hide)</summary> | 
					
						
							| 
									
										
										
										
											2018-10-12 15:37:13 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | Following the instructions: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Add a media query, so that the p tag has a font-size of 10px when the device's height is less than or equal to 800px. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | the media query is: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ```css | 
					
						
							|  |  |  |   /* Add media query below */ | 
					
						
							|  |  |  |   @media (max-height: 800px){  | 
					
						
							|  |  |  |     p { | 
					
						
							|  |  |  |     font-size: 10px; | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | and the size of the text will be 10px when the device's width is less than or equal to 800px. | 
					
						
							| 
									
										
										
										
											2019-07-24 00:59:27 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | </details> |