max-width: ***; min-width: ***;

  • IE
  • Cr
  • Sf
  • Fx
  • O

The max-width property specifies the maximum width of an element, and the min-width property specifies the minimum width of an element.

div {
max-width: 500px;
min-width: 400px;

Property Value Explanation
max-width length, %, or none the size of the maximum width (the default is none)
min-width length or % the size of the minimum width


<title>TAG index</title>

<style type="text/css">

div {
max-width: 600px;
min-width: 500px;
background-color: #85b9e9;



<div>minimum width:500px - maximum width:600px</div>


Example pagenew window