Categories
Hints/Tips

IE – Scrollbar in Html textarea

In IE, a scrollbar will always be visible in a textarea unlike in Chrome or Safari where the scrollbar will only appear after the user reaches the bottom of the box.

To make the behaviour the same in IE, use the following CSS code

textarea{
    overflow: auto; 
}
Categories
Hints/Tips

Chrome – Remove resize in textarea

The Chrome and Safari browsers provide the ability for a user to resize a textarea.

However, you may want to disable this feature in order to prevent your carefully designed layout from being broken. In addition, this feature is not provided in Internet Explorer and you may want to keep the appearance the same across all browsers.

Simply use the following CSS to disable this feature

textarea{resize: none}
Categories
Hints/Tips

Open URL Shortcut in non-default Browser

I use a number of different web browsers and when I create Desktop shortcuts to URLs they are always opened using the current default browser, in my case Chrome. Sometimes, you may want to open the URL in a different browser and an easy way to do this is to create a new shortcut.

This is how I managed to create a new, relevant shortcut on my Windows 7 Desktop.

  • Right Click on the Desktop and choose New … Shortcut
  • This launches a dialog “What item would you like to create a shortcut for? Insert the full path to the Web Browser program. On my Windows 7 64-bit machine, this was “C:\Program Files (x86)\Internet Explorer\iexplore.exe”
    Click Next, and in the next page enter a name for the shortcut, then click Finish.
  • This will create a shortcut on the desktop.
  • Right Click on the Shortcut and choose Properties.
  • In the Shortcut tab, enter the required URL at the end of the string in the Target: box so that the complete entry now reads “C:\Program Files (x86)\Internet Explorer\iexplore.exe” http://bbc.co.uk
  • Cick OK to close the properties dialog.

Now, when you click on the shortcut, the required Web Browser will open on the relevant web page.