Min-width property

These pieces of code demonstrate how we can use the property min-width bypass the bugs of IE5 and IE6.

Min-width property

Method no. 1

/* for all browsers that understand min-width */
.container {
     position: relative;
     width: 90%;
     min-width: 400px;
}
.holder {
     display: block;
     color: #000;
}

/* method 1 a bodge for IE5.5 and IE6 browsers */
* html .container {
     border-right: 400px solid #fff;
}
* html .holder {
     display: inline-block;
     position: relative;
     margin-right: -400px;
}

Method no. 2

/* for all browsers that understand min-width */
.container2 {
     position: relative;
     width: 90%;
     min-width: 400px;
}
.holder2 {
     display: block;
     color:#000;
}
 
/* method 2 a bodge for IE browsers IE5.01, IE5.5 and IE6 */
* html .container2 {
     border-right: 400px solid #fff;
}
* html .holder2 {
     float: left;
     position: relative;
     margin-right: -400px;
}

Publication details

Category: CSS

Published by: loris.genetti on date: 08.03.2008 12:05:17

Last edit by: loris.genetti on date: 02.04.2008 16:54:26

Statistics

Details  This article has been viewed 1.210 times.

Send to

add to digg add to reddit add to furl add to facebook add to delicious add to google add to technorati

Ratings

  • Currently 0; ?>/ TOTALSTARS
  • 1
  • 2
  • 3
  • 4
  • 5

Comments

Details 0 user comments, 0 still waiting.

Leave a comment

All comments must be approved by site administrator.
Please write comments on topic. Spam will be never approved.


Confirmation code

Please take a look to image and insert character into the form field.