hr {
background:#d0d0d0;
color:#d0d0d0;
margin:15px 0;
height:1px;
border:none;
}
Why:
- because Chrome creates some borders
- because FireFox set color from css background value
- but IE set color from css color value
Technology and process fine points, notes and thoughts. Public blog of Whirix web development company from Barnaul, Russia.
hr {
background:#d0d0d0;
color:#d0d0d0;
margin:15px 0;
height:1px;
border:none;
}
Sometimes you have situation which require writing of native SQL query in project fully based on Doctrine ORM. Doing DQL queries is very easy, but simple SQL queries maybe difficult to execute because you have to reuse database connection opened inside Doctrine.
Example given below is easy to understand and use in your project(s). Enjoy!// get Doctrine_Connection object
$con = Doctrine_Manager::getInstance()->connection();
// execute SQL query, receive Doctrine_Connection_Statement
$st = $con->execute("...............");
// fetch query result
$result = $st->fetchAll();
IE6 ignores CSS 'min-height' property. Fortunately it works with 'height' property exactly like other modern browsers with 'min-height'. That's why there is a possibility to write cross browser CSS, here it is:
min-height: 100px;Three lines instead of one, but it works excellent in all major browsers including IE6. Modern browsers accept 'min-height', then second line set 'height' to be automatic because there is !important keyword, which makes third line ignored. Now IE6: it ignores first line, then make height automatic but due to IE6 bug it also ignores !important keyword. That's why third line overwrites automatic height property and IE6 shows desired result.
height: auto !important;
height: 100px;
# setupSecond method use redirect of standard output to your log file.
log='logger -t logger-id'
# usage
$log "log message..."
# setup
function log() {
echo "`date +'%Y-%m-%d %H:%M:%S'` [$$] $1" >> script.log
}
# usage
log "log message..."
// add editor
tinyMCE.execCommand("mceAddControl", true, elementId);
// remove editor
tinyMCE.execCommand("mceRemoveControl", true, elementId);