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 :: css prevent margin collapsing 
Css :: text-align property in css 
Css :: button type submit css selector 
Css :: put gradient color over background image 
Css :: woocommerce align add to cart buttons css 
Css :: arrow up css 
Css :: change default arrow icon for accordion in bootstrap 
Css :: inset boxshadow 
Css :: line-weight css 
Css :: css hide mark border 
Css :: how to create a shape in css 
Css :: change mouse pointer on image hover 
Css :: css inverted border radius 
Css :: html css background linear-gradient 
Css :: css button pressed effect 
Css :: aspect ratio css 
Css :: add shadow to iframe 
Css :: css size 
Css :: css font family 
Css :: padding-block css 
Css :: css in django 
Css :: alternate css animation 
Css :: how to make fixed position responsive 
Css :: blue gradient background 
Css :: css background image not working 
Css :: box-sizing border-box vs content-box css 
Css :: box shadow all sides 
Css :: lightning color code 
Css :: place two div elements next to each other 
Css :: ckeditor push text in front of cursor 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =