≡
  • Home
    • About Us
    • Site Map
  • Resources
    • Resources for Website Design
    • HTML Document Structure
    • Genealogy Web Site Design
      • Planning a genealogy website?
      • Organize your genealogy website
      • Creating a New Website
      • Customizing Your Website
      • Publishing your Genealogy Website
      • Maintaining Your Genealogy Website
    • Publishing With FTP
    • RootsWeb WorldConnect Project
    • Validation Tools
    • Browser Web Developer Toolbar
    • Website Design and Search Engines
    • Saving and Using a Complete Web Page from the Internet
  • Articles
    • Snagit and Genealogy
    • Top 10 Genealogy Mistakes to Avoid
    • Quick Tips for Beginner and Amateur Web Designers
    • Tennessee Family Bible Records
  • Tutorials
    • Tutorials & Articles
    • Add Search Box
    • Converting a Theme Based Site to DWT
    • Converting a Table Based Layout
    • Create custom Error Pages
    • Create 301 Redirects
    • Creating a New Website
    • Creating a FrontPage Web
    • Create a Gradient Image
    • Creating Layered Backgrounds
    • Creating A Navigation Menu
    • Creating Website Navigation
    • Heading Tags - <h1> to <h6> tags
    • Server Side Includes
    • www versus non www
    • Using Bordered Backgrounds
  • Templates
    • Fixed Width Templates
    • Mobile Friendly Templates
    • Liquid Layout Templates
    • Christmas CSS Layout Templates
    • Instructions for Using Templates
  • Contact

CSS minimum and maximum sizes

If you are using a flexible width layout, you may want to add a maximum width to you page container so the page does not become to wide and make for difficult reading on a large screen monitor.

Example: The April Daisies template is a flexible width layout with the width of the container set at 80%. This means that on a 27" monitor, the page container will fill 80% of the available browser viewport. The same is true on a 15" monitor. The maximum width of the container on this template has been set at 1300px meaning the container will fill 80% of the browser viewport NOT TO EXCEED 1300px.

On the two screenshots shown below, the one on the left shows the max-width set to 1300px and the one on the right show no max-width set.

Screenshot showing mx-width set at 1300px.  Screenshot no max-width set.

min-width property

The min-width property sets the minimum width of an element. The min-width property does NOT include padding, borders, or margins! The min-width property is supported in all major browsers, with the exception of IE6 and earlier versions.

NOTE: None of the offered templates makes use of minimum width.

max-width property

The max-width property sets the maximum width of an element. The max-width property does not include padding, borders, or margins! The max-width property is supported in all major browsers, with the exception of IE6 and earlier versions.

NOTE: Some of the offered templates do make use of the max-width property. It can always be removed from the style rules. They also make use of min-max.js.

You can use your web stats to judge how many of your visitors are STILL using Internet Explorer 6 or less.

  • Genealogy Web Creations - Jan 2013 thru May 2013 - 2.8%
  • Family Genealogy Site  - Jan 2013 thru May 2013 - 2.5%
  • Migrating from FrontPage to Expression Web - Jan 2013 thru May 2013 - 2.7%
  • Expression Web Tutorials & Templates - Jan 2013 thru May 2013 -  1.4%

Resources

  • Min and Max Width/Height in CSS
  • max-width from Sitepoint
  • Wickham's HTML & CSS tutorial
  • max-width from Mozilla
  • min-width from Mozilla

Planning a Genealogy Website 2nd Edition is available as a 42 page EBook in pdf format for you to download. It has been totally revised and updated with new content. The EBook is zipped for faster download. Save it to your desktop, extract the file and it is ready to use.

Microsoft MVP.
April 2007 - April 2013


Disclosure: This is an affiliate link, which means that if you visit Bluehost.com through this link and purchase this product, I’ll get a commission.

Microsoft® and FrontPage® and Expression Web® are registered trademarks of Microsoft® Corporation.

Genealogy Computer Tips | Expression Web Tutorials & Templates