1
My code.
Css:
td div{
width:100%;
height: 40px;
overflow: hidden;
padding-top: 9px;
}
td div:hover{
overflow: auto;
}
Html:
<td><div><?php echo $objProg->getagen(); ?></div></td>
When putting the mouse on top of the td
would like the option to scroll with the mouse scroll not to work, to only be able to scroll the text by clicking the arrows.
Just for the record, if you’re interested you have the "Fiddle" of the site itself, which is the < > leaf icon in the answer toolbar (but it’s perfectly normal to use JS Fiddle as well)
– Bacco
I used the one from the site, but if I click off accidentally it doesn’t save the code, then I prefer to use jsfiddle. but vlw by tip.
– Raphael Caldas
Only thing I didn’t find very interesting is that when the mouse is on top of the
div
the scroll of the page itself does not scroll either.– KevinF