How do I change the colour of a table when I put my mouse over it?

  • Thread starter Testing testing one two
  • Start date
S

Steve Easton

By using CSS creating a class for the A tag, creating the hover attribute within the class
and then assigning the class to the a
Here's the css from the page:

A.clMain:hover
{
COLOR: #003366;
FONT-FAMILY: Arial, Helvetica, sans-serif;
FONT-SIZE: 11px;
FONT-WEIGHT: bold;
TEXT-DECORATION: underline
}

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer
 
M

MD Websunlimited

Hi John,

Those "buttons" are text within a table using CSS to change the style of the cell. You can accomplish this by hand or use a tool
such as J-Bots CSS Link Bar Menu Maker
http://www.websunlimited.com/order/Product/CssMenu/css_menu.htm

Note the menu used on the WU site are created using the above.

--
Mike -- FrontPage MVP '97-'02
http://www.websunlimited.com
J-Bots Plus 2002 87 components for FrontPage
http://www.websunlimited.com/order/Product/JBP2002/jbp_help_dir.htm
FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
 
J

Jon Spivey

Hi,
Make the whole table cell into a clickable link, eg
<style type="text/css">
#theTable a{
color: #fff;
background-color: #f00;
display:block;
position:relative;
}
#theTable a:hover{
background-color: #00f;
}
#theTable td{
width:150px;
}
</style>
<table id="theTable">
<tr>
<td><a href="page.htm">link text</a></td>
...etc

Change font/colors etc to suit. Although it might be better practice to use
a list for this type of menu - "semantics" is the current buzzword :)
 
J

John Jansen \(MSFT\)

If you have FrontPage 2003, you can simply select the table cell and click
on Format > Behaviors and create a change property behavior using the
taskpane.
 
Top