This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > September 2005 > link to fill 100% of cell height





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author link to fill 100% of cell height
Gabriel Petrioli

2005-09-29, 6:17 pm

so i have a horizontal table where each <td> contains a link and has
specified width

i want the link inside to fit the cell exactly so that on :hover i can
change the background
all works fine if i declare a style like

a.category{
display:block;
height: 100%;
}
a.category:hover{
background-color: #ffffff;
}

the problem is if one of the links (which are dynamic) breaks in two
lines because of the fixed width
then all links except the two line links will act as if they were one
line (background of one line only)

so is it possible to make the links (one or two lines in the same row of
the table) to fill their cells ?



thanks in advance

gabriel
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews