Search
 
SCRIPT & CODE EXAMPLE
 

CSS

responsive container css

// tailwind container css
.container {
  width: 100%;
  display: inline-block;
  margin: 0 auto;
  transition: width .1s;
}

@media (min-width: 640px) {
  .container {
    width: 640px;
  }
}
@media (min-width: 768px) {
  .container {
    width: 768px;
  }
}
@media (min-width: 1024px) {
  .container {
    width: 1024px;
  }
}
@media (min-width: 1280px) {
  .container {
    width: 1280px;
  }
}
@media (min-width: 1536px) {
  .container {
    width: 1536px;
  }
}
Comment

how to make a div responsive in css

Use %.
% takes the x% space of the parent element.
example:
This div will have the same width as the body, which is usually the whole page.
<style>
	div{
  	width:100%;
  	}
</style>
<body>
	<div></div>
</body>
Comment

PREVIOUS NEXT
Code Example
Css :: set border color of svg 
Css :: div circle 
Css :: ufw allow from subnet 
Css :: how to center items in css 
Css :: bootstrap badge color 
Css :: css center grid 
Css :: remove outline of input css 
Css :: position absolute center 
Css :: css set variable 
Css :: css ios disable zoom 
Css :: drop shadow css 
Css :: size carousel bootstrap 4 
Css :: css add required asterisk after 
Css :: css photo circle 
Css :: css unlock scroll 
Css :: remove line from a href css 
Css :: how to make smth be in the bottom of the page css 
Css :: html input search x cursor pointer 
Css :: gameloop programming language 
Css :: how to remove border of a specific side of td in css 
Css :: second child css 
Css :: mat slider custom color 
Css :: on hover chang only border color of a button css 
Css :: Add dark filter to an image - CSS 
Css :: css text fill all the width possible 
Css :: screen orientation css 
Css :: css content from data attribute 
Css :: border properties css 
Css :: var minus scss 
Css :: css inline text color 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =