min-width for IE

On 2-24-2005, in Coding, CSS, HTML, JavaScript, by Alex

width: expression((document.body.clientWidth || document.documentElement.clientWidth) > 800 ? ‘auto’ : ‘780px’);

 

IE 5 css hacks

On 2-18-2005, in Coding, CSS, by Alex

/* IE 5.5 can’t see the next line but all others can \*/
#column2 { margin-top: 10px;}
/* End hack – BTW it works for Mac IE too */

div#id {
position: static; [1]
position/* */:/**/:relative; [2]
position:relative; [3]
}

Line [1] is read by all browsers – final value for IE5.0
Line [2] is ignored by IE5.0 and IE5.5 but read by all other browsers
Line [3] is also ignored by IE5.0 but is read by IE5.5 – final value for IE5.5

And Conditional Comments:

Continue reading »

 
 

overflow: for all browsers

On 2-3-2005, in Coding, CSS, by Alex


body {
overflow: -moz-scrollbars-vertical;
overflow-x: hidden;
}

for all browsers (body rel div):

#wrapper {
width: 100%;
height: auto;
overflow: hidden;
}

 

gradient back in % height or width

On 2-1-2005, in Coding, CSS, HTML, by Alex

.grad {filter:progid:DXImageTransform.Microsoft.Gradient(endColorstr=’#0010c0′, startColorstr=’#dddddd’, gradientType=’0′)}

IE only of course