We have a page with a <DIV style="overflow:auto; height:400px;>
...</DIV>
section populated with info from a database. Sometimes it contains more text than is visible (hence overflow:auto
) and we get a vertical scrollbar.
We would like to change the bottom-border of the <DIV>
section to red color IF the text overflows - and as such NOT when we don't have a vertical scrollbar (= the red bottom-border indicates there is more data, because people don't always see pay attention to the scrollbar).
How can this be accomplished?
Setting "border-bottom:1px solid red;
" will make the bottom-border red all the time, also when the amount of text doesn't dictate overflow/scrollbars, so that alone won't cut it.
EDIT: You guys are fast, thanks! I will look into the suggestions - thanks again!