• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 8. Space Around Boxes > Minimum and Maximum Widths and Heights

Minimum and Maximum Widths and Heights

In typical style sheets, block elements have margins, but their width property is not set (i.e., it is auto). That allows the user to resize the window and the element with it. But, you can protect the element from becoming too narrow or too wide by setting the properties min-width and max-width, respectively.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint