Search
 
SCRIPT & CODE EXAMPLE
 

CSS

responsive css

/* Smartphones (portrait) */
@media only screen and (max-width: 320px) {
  /* Styles */
}

/* iPads (portrait and landscape)  */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
  /* Styles */
}

/* Desktops and laptops  */
@media only screen and (min-width: 1224px) {
  /* Styles */
}
Comment

responsive sizes css

@media (min-width:320px)  { /* smartphones, iPhone, portrait 480x320 phones */ }
@media (min-width:481px)  { /* portrait e-readers (Nook/Kindle), smaller tablets @ 600 or @ 640 wide. */ }
@media (min-width:641px)  { /* portrait tablets, portrait iPad, landscape e-readers, landscape 800x480 or 854x480 phones */ }
@media (min-width:961px)  { /* tablet, landscape iPad, lo-res laptops ands desktops */ }
@media (min-width:1025px) { /* big landscape tablets, laptops, and desktops */ }
@media (min-width:1281px) { /* hi-res laptops and desktops */ }
Comment

responsive width 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

CSS RESPONSIVE

div {
  font-size: min(3vw, 36px);
}
Comment

PREVIOUS NEXT
Code Example
Css :: background-attachment 
Css :: what does em stand for in css 
Css :: scss generate random color 
Css :: textarea scale to content 
Css :: Add border to text - Css 
Css :: css disabled tag hover style 
Css :: make table resopnsive for mobile 
Css :: change background color on hover 
Css :: check ssh port 
Css :: css text shadow 
Css :: add profile picture to a form in html and css 
Css :: center image in css 
Css :: align absolute div center 
Css :: css to increase font size 
Css :: css code examples 
Css :: url css 
Css :: bootstrap mb 
Css :: display elements in column css 
Css :: progress bar bootstrap border 
Css :: white space in css 
Css :: bounced in css animation 
Css :: responsive flexbox 
Css :: flexbox space between 
Css :: css witdh 
Css :: apply style to all dives except one 
Css :: id ends with css 
Css :: remove black shadow from border 
Css :: how to get 2 words one left aligh and right align in css 
Css :: what to use instead of overflow overlay 
Css :: Set the style for links to pages you have visited to any color. 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =