Added html content to display when mouse position changes

Also, refactored css to take advantage of inheritance.