Search
 
SCRIPT & CODE EXAMPLE
 

CSS

responsive web design with html5 and css

// media queries example

	/* wide laptop */
@media screen and (max-width: 1200px) {
	.home-hero-image {
		height: 50vh;
	}
}

/* small laptop */
@media screen and (max-width: 900px) {
	.home-hero-image {
		height: 60vh;
	}
	.hero-text-home {
		margin-top: 25px;
	}
	.hero-school-home-image {
		width: 40%;
	}
}
Comment

responsive web design with html5 and css: develop future-proof responsive websites using the latest html5 and css techniques

/*Pro-tip: Use percentages while positioning or sizing elements 
	ex:*/

	.example {
    	width:100%;
      	height:50%;
		left: 10%;
    }
Comment

PREVIOUS NEXT
Code Example
::  
::  
Css ::  
::  
::  
::  
::  
::  
Css ::  
::  
Css ::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
Css ::  
:: apollo fetchpolicy 
::  
::  
::  
Typescript ::  
:: python requests header allow redirect false 
::  
::  
::  
ADD CONTENT
Topic
Content
Source link
Name
1+6 =