• Technology Leader & Musician
  • Home
  • About
    • Terms
  • Blog
  • Contact
  • Webmail

Robert Owen — Technology Leader & Musician

Technology leadership, music, and the space where they overlap

  • Blog
  • Internet
    • IIS 6
    • IIS 7.5
    • Javascript
    • Web Design
      • WordPress
      • Coldfusion
  • Support
    • MicroSoft
      • Powershell
      • Surface
      • Windows10
      • Zune
    • PC-Care
    • Software
    • Virus
      • Email Scam
    • Vista Quest
    • Windows 7
  • Pictures
    • Instagram
  • Music
  • Friday Funnies
  • General
    • CoWorking
    • Gadgets
    • Politico
    • Random – TidBit
    • Rant
    • Review
    • Site of the Week
    • Useless
    • Xbox
      • Games
You are here: Home / Internet / Web Design / CSS – Max width help

CSS – Max width help

February 1, 2007 By Robert Owen

Trying to keep things simple, sometimes I use the 'max-width' and 'min-width' properties of CSS. Makes it simple if you are letting someone upload images to a site for you.

For example, blogCFC has a slideshow function. Here's an example. Ok.. so you've got this slideshow and you are letting someone else upload the images or create totally new slideshows.. Telling them to keep the images a to a certain width is all fine but.. People tend to “forget” and then you may have an image or two soooo big that they break your lay-out. Well, that's were the 'max-width' property would come in.
In your style sheet you could add something like:

.slideshow img {
max-width: 150px;
}

This would effectively make every image in the slideshow class have a max width of 150 pixels.

Another property is the 'min-width' which, the liquid skin of blogCFC uses in the layout css. It sets the minimum width of the page to 800 pixels.. looking like this in the style sheet:

#page{
width:90%;
min-width:800px;
margin: 0 auto 0 auto;
padding: 0 0 10px 0;
}

Now.. all this is great but…. doesn't really work in Internet Explorer for Windows prior to version 7. I was looking for some other solutions when I ran across this javascript from Doxdesk. Their minmax module fixes the css 'min | max' height problems. All you need to do is add this js to your site and call it by inserting a link:



I've attached the file to this entry.. If you make use of this please do not change the author credits found in the file. The author had a few other interesting javascripts.. I havent had time to check those out though. But you can! 😉
Doxdesk.com

© 2007, Robert Owen. All rights reserved.

Related posts:

Default ThumbnailGoogle-a-holic Default ThumbnailFriday Funny – Cool Test Default ThumbnailHappy New Year! Default ThumbnailRemove Words from Firefox Custom Dictionary

Filed Under: Web Design

Robert Owen I lead technology organizations and perform professionally as a musician. Those worlds may seem unrelated, but both revolve around complex systems, disciplined preparation, and people working together under pressure.
Over time, that overlap has shaped how I approach leadership, collaboration, and the work I do every day. More about me →.
FacebookInstagramLinkedInTwitter

To Stay up-to-date on all of my crazy Ramblings, enter your e-mail address below.

You'll be amazed!

Recent Posts…

  • The Accidental Genesis (Friday’s Performance) – Night two
  • The Accidental Genesis – Horn player musings of creation
  • The Great Tab Debate: A Conversation with My AI Friend, Tabitha
  • What If? – Gig Edition
  • Feedback – two way street

Recent Comments

  • David Gray on Create a Shortcut to open in your Alternate BrowserTwelve years on, this tip remains useful. Though I…
  • Sue K on Use the Snipping Tool to Capture MenusThanks you so much! I could never figure out how t…
  • aa on Increase IIS File Upload LimitsSuperb Robert..after wasting 2 days..this is perfe…
  • León on Windows 7 error 86Funciono para Windows 7 , también descubrí que la…
  • Nicole Larkin on Use the Snipping Tool to Capture MenusNine years later and your post is still helpful. T…

[footer_backtotop]
Content Copyright © 2026 OWEN CONSULTING · All Rights Reserved · Log in