I've got a list of items with with associated details. Rather than do a regular #name link to send the user somewhere else to view the details, I thought it would be good to just have the details with the name, and grow the <p> when the user hovers.
it seems intuitive that the following arrangement would work:
CSS
a.grow {height=20px;overflow=hidden;}
a.grow:hover {overflow=visible;}
HTML
<a class="grow">Item 1<br />
details details<br />
more details</a>
This arrangement should show just "Item 1" (due to the restricted height) until the user hovers, and then the overflow property should change to 'visible', thus revealing the details...
I imagine I'm doing something silly like putting breaks in <a>, but I was hoping someone could point me in the right direction.
Thanks for the help.



Reply With Quote


Bookmarks