Minimum Height for a DIV for any browser

Another quickie today. This time, it’s how you can create a CSS block that has a minimumheight, but still grows larger should the content need more space.

selector { min-height:500px; height:auto!important; height:500px; }
Advertisements

Get the row count from each table in a database

Just an SQL Snippet for today:

createtable #rowcount (tablename varchar(128),rowcnt int)exec sp_MSforeachtable insertinto #rowcount select ?,count(*) from ? select * from#rowcount order by rowcnt desc drop table #rowcount