Gossamer Forum
Home : General : Internet Technologies :

<TD> style options - height, width, more....

Quote Reply
<TD> style options - height, width, more....
Hi All

I have some table cells with links and rollover colors:

Quote:
<td onmouseover="this.style.background='#666666'" onmouseout="this.style.background='#303730'" onclick="window.location.href='http://www.mysite.com'" align="center" width="12%" height="18" valign="middle"><a href="http://www.mysite.com/" class="headernav">Home</a></td>

I'm trying to get down to something like this:

Quote:
<td onclick="window.location.href='http://www.mysite.com'" class="headernavcell"><a href="http://www.mysite.com/" class="headernav">Home</a></td>

by including something like the following in a stylesheet:

Quote:
.headernavcell { vertical-align:middle; align:center; width:12%; height:18; background-color: #303730; onmouseover:this.style.background='#666666'; onmouseout=this.style.background='#303730'; }

Is it possible to encompass all of those attributes in a style tag?

What I've found so far doesn't tell me either way.

Thanks very much Smile

------------------------------------------
Subject Author Views Date
Thread <TD> style options - height, width, more.... DogTags 7751 Feb 19, 2004, 5:50 AM
Thread Re: [DogTags] <TD> style options - height, width, more....
cornball 7517 Feb 29, 2004, 6:44 AM
Post Re: [cornball] <TD> style options - height, width, more....
DogTags 7511 Feb 29, 2004, 10:10 AM