Technology computers-hardware

How to Change the Background & Text Color on Mouse Over

    • 1). Write the HTML code for the elements you want the user to interact with. Note that you can apply the mouse-over effect to all elements of a certain type, or all elements of a certain class, or specific elements of a given ID. Be sure to identify your elements correctly. Examples:
      <a href="/links/?u=linked_url">Any link and its background that will change color</a>
      <a href="/links/?u=linked_url">A link in class "turn-red" and its background that will change color</a>
      <a href="/links/?u=linked_url">A link with the ID of "unique-color" and its background that will change color</a>

    • 2). Write the style rules in the <head> section of the page. You can set any styles, including text color and background color by designating a style with the pseudo-class ":hover." Examples (element, class and ID types respectively):
      a:hover {color: blue; background-color: white; }
      a.turn-red:hover{ color: red; background-color: black; }
      a#unique-color:hover { color: purple; background-color: yellow; }

    • 3). Publish the Web page and test the settings.

SHARE
RELATED POSTS on "Technology"
How to Download Pictures Into Your Computer Using an SD Card
How to Download Pictures Into Your Computer Using an SD Card
How to Transfer DOS Random Type Data From the AS400 to a PC
How to Transfer DOS Random Type Data From the AS400 to a PC
Ways to Improve the Machine
Ways to Improve the Machine
How To Change a Hard Drive In a Macbook Aluminum
How To Change a Hard Drive In a Macbook Aluminum
Printed Circuit Boards - Understanding the Requirements of the European RoHS
Printed Circuit Boards - Understanding the Requirements of the European RoHS
Asus 1005HAB Specs: Specifications Of The Asus Eee Pc 1005HAB, And Where To Find The Best Deals
Asus 1005HAB Specs: Specifications Of The Asus Eee Pc 1005HAB, And Where To Find The Best Deals
How to Troubleshoot Home Computers
How to Troubleshoot Home Computers
How to Replace the Cartridge on a Compaq IJ650 Printer
How to Replace the Cartridge on a Compaq IJ650 Printer
How to Disable a Screen Saver in Vista
How to Disable a Screen Saver in Vista
How to Remove a 939 Processor
How to Remove a 939 Processor
Can a USB Wireless Modem Be Used for Laptops?
Can a USB Wireless Modem Be Used for Laptops?
How to Remove a Screensaver Password
How to Remove a Screensaver Password
Features of Brother Cartridges
Features of Brother Cartridges
How to Check HP RAM
How to Check HP RAM
How to Clone a Laptop HD
How to Clone a Laptop HD
Innovative Technologies Used In Hp C7973a Lto-3 Tape
Innovative Technologies Used In Hp C7973a Lto-3 Tape
Pitney Bowes Printer and Toner Products for Government Use
Pitney Bowes Printer and Toner Products for Government Use
Amazing Features of the HP Compaq 6710B Battery
Amazing Features of the HP Compaq 6710B Battery
How to Refill a Canon Ink Cartridge Without Resetting
How to Refill a Canon Ink Cartridge Without Resetting
How Do I Refill a Brother Inkjet LC51BK?
How Do I Refill a Brother Inkjet LC51BK?
How to Open an Inspiron 1000
How to Open an Inspiron 1000
5 Steps to Speed Up Your Computer and Stop Slowing Down Your Life
5 Steps to Speed Up Your Computer and Stop Slowing Down Your Life
How to Get Into Compaq Advanced BIOS Information
How to Get Into Compaq Advanced BIOS Information
How to Use Decorative Fonts & Dingbats
How to Use Decorative Fonts & Dingbats

Leave Your Reply

*