Search
 
SCRIPT & CODE EXAMPLE
 

HTML

Responsive container centered

.container {
  width: 400px;
  height: 300px;
  background-color: #ccc;
  position: absolute;
  /*it can be fixed too*/
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  /*this to solve "the content will not be cut when the window is smaller than the content": */
  max-width: 100%;
  max-height: 100%;
  overflow: auto;
}
Comment

PREVIOUS NEXT
Code Example
Html :: router link @click 
Html :: ion-item margin 
Html :: css force string to wrap 
Html :: safari input type number problem with decimals 
Html :: meta theme-color 
Html :: tailwind download button 
Html :: add a html form 
Html :: set default selected option in select form laravel 
Html :: How to prevent Netlify from treating warnings as errors because process.env.CI = true? 
Html :: font awesome cdn css 
Html :: html phone link 
Html :: how to formate text in div 
Html :: how to add a favicon to html 
Html :: iframe maps responsive 
Html :: link fa fa icon 
Html :: title attribute label tag html 
Html :: input submit icon 
Html :: font awesome css content not working 
Html :: embed link in markdown 
Html :: font awesome 6 pro 
Html :: td colspan all 
Html :: change choose file button text 
Html :: contact form html code 
Html :: rating star 
Html :: how to add text in html 
Html :: row merge 
Html :: breaks html 
Html :: angular add html attribute on condition 
Html :: html to powerpoint 
Html :: bootstrap input 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =