Search
 
SCRIPT & CODE EXAMPLE
 

CSS

responsive website CSS

/* Instead of using px measurements, use % when setting width or height.*/
/* The % is calculted from the width of the parent element.*/
#NonResponsiveWidth {
	width: 1080px;
    height: auto;
}
#responsiveWidth {
	width: 85%;
    height: auto;
}
/*For text, use vw (viewport-width) instead of px when setting font-width*/
#NonResponsiveText { font-size: 20px; }
#responsiveWidth { font-size: 10vw; }
Comment

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 :: color gradient 
Css :: change color select arrow css cf7 
Css :: css clearfix for floats with display table and clear both 
Css :: css loader with gradient 
Css :: flexbox elements 
Css :: html css templates for practice 
Css :: login page ui html css 
Css :: material design css 
Css :: vue scoped css child component 
Css :: how blend two backgrounds css and isolate content 
Css :: learn css animation 
Css :: media queries in scss 
Css :: letter spacing text 
Css :: padding makes div overflow 
Css :: moving cloud by css 
Css :: text vs font properties in css 
Css :: change disbled button background pyqt5 
Css :: highcharts change font family 
Css :: css color word multiple colors 
Css :: style checkmark css 
Css :: how to style links in css 
Css :: css hex to rgb 
Css :: drop down css 
Css :: 3d rotating text css 
Css :: restore mariadb from bz2 file cli 
Css :: css icons free 
Css :: how to select elements from a parrent element css 
Css :: scroll timeline css 
Css :: mainframe courses udemy 
Css :: display inline not alligned 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =