Search
 
SCRIPT & CODE EXAMPLE
 

CSS

bootstrap media queries

/* Large desktops and laptops */
@media (min-width: 1200px) {

}

/* Landscape tablets and medium desktops */
@media (min-width: 992px) and (max-width: 1199px) {

}

/* Portrait tablets and small desktops */
@media (min-width: 768px) and (max-width: 991px) {

}

/* Landscape phones and portrait tablets */
@media (max-width: 767px) {

}

/* Portrait phones and smaller */
@media (max-width: 480px) {

}
Comment

bootstrap media query

// `xs` returns only a ruleset and no media query
// ... { ... }

// `sm` applies to x-small devices (portrait phones, less than 576px)
@media (max-width: 575.98px) { ... }

// `md` applies to small devices (landscape phones, less than 768px)
@media (max-width: 767.98px) { ... }

// `lg` applies to medium devices (tablets, less than 992px)
@media (max-width: 991.98px) { ... }

// `xl` applies to large devices (desktops, less than 1200px)
@media (max-width: 1199.98px) { ... }

// `xxl` applies to x-large devices (large desktops, less than 1400px)
@media (max-width: 1399.98px) { ... }
Comment

bootstrap media queries

@include media-breakpoint-up(lg){
	.class {
		key: value;
	}
}
@include media-breakpoint-down(lg){
	.class {
		key: value;
	}
}
@include media-breakpoint-between(xs, xl) {
	.class {
		key: value;
	}
}
@include media-breakpoint-only(lg){
	.class {
		key: value;
	}
}
Comment

PREVIOUS NEXT
Code Example
Css :: border box reset 
Css :: css disable user interaction 
Css :: perfect circle css 
Css :: how to set media query for both width and height in css 
Css :: css safari conditional 
Css :: resize checkbox 
Css :: multiple text shadow 
Css :: give transition on box shadow 
Css :: remove highlight input css 
Css :: ufw allow from subnet 
Css :: how to change the page background in css 
Css :: remove outline of input css 
Css :: how to scroll fixed position 
Css :: background image css django 
Css :: less calc 
Css :: the other div inline-block is in bottom 
Css :: repeat with auto-fit 
Css :: css unlock scroll 
Css :: sass --watch 
Css :: css div bottom of parent 
Css :: How to remove the blueish background on a button when clicked 
Css :: rgb white 
Css :: white border css 
Css :: bootstrap scrollable modal 
Css :: enter in css 
Css :: hover effect on sibling element tailwind 
Css :: how to make all buttons same size css 
Css :: textarea resize only horizontal 
Css :: div centre 
Css :: import css in another css file 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =