Archive for March, 2007

CSS trick: Always show scrollbars

Wednesday, March 28th, 2007

I worked on a site a few weeks ago where the user wanted visible scrollbars no matter how much space the content takes up on the page. Internet Explorer is happy to oblige, just put in a overflow: scroll; in your CSS and your good to go. However, Mozilla Firefox wouldn’t play ball. A bit of Googling revealed Mozillas own implementation -
overflow: -moz-scrollbars-vertical;.

So to sum up, add the following CSS code to your site if you want the scrollbars visible at all times:

html {
     overflow: -moz-scrollbars-vertical;
     overflow: scroll;
}

Toggling services on/off with VBScripting

Sunday, March 18th, 2007

I was tired of always having to start/stop my IIS and MSSQL services (I turn then off when I’m not developing), so I decided to write a small VBScript to help me do it. This script can be used to start/stop a number of services and their dependents, in a toggle start/stop fashion. It also allows you to specify a explicit action, either start or stop.

I’ve made it easy to modify it for use with other services, so have a look and let me know what you think:

Download: StartStopServices.vbs