0

I have some very long divs which every div have only a line of text. So, when user scroll, its content will be invisible. So I want to make the content of these divs always visible.

Could anyone please give me some suggestion about that?

Example:

span {
    vertical-align: middle;
    height: 2000px;
    width: 100px;
    border: 1px solid black;
    display: table-cell;
}

.red {
  background: rgba(255,0,0,0.3);
}

.green {
  background: rgba(0,255,0,0.3);
}
<div>
<span class="red">
aaaaa
</span>
</div>
<div>
<span class="green">
bbbbb
</span>
</div>
Sayakiss
  • 6,878
  • 8
  • 61
  • 107

0 Answers0