With use of HTML and CSS this is easy. keep in mind that we should not use dreamwaver, frontpage or any Graphic User Interface program. we should done it directly with a bit of CSS and HTML coding . At the first create Any HTML Document whatever you want. See the example below..
Note : We have used Internal CSS in example Below.
Create HTML file using notepad and save it as htmlandcss.html Now copy the code below and paste it, and again save the file and run with web browser.
See The Output :
|Preview on mouseover|