0
.olddiv
{
    overflow:visible;
    background-color:#1D41A4;
    padding-right: 10px;
    padding-bottom: 20px;
    padding-left: 10px;
}

<div id="old" class="olddiv">

My text that overflows is visible but it does not have the div's background color. How do I get it to keep the background color?

Edited by mike_2000_17: Fixed formatting

1
Contributor
1
Reply
2
Views
6 Years
Discussion Span
Last Post by skald89
0

Just in case anyone else has the same question.

My problem was that I had set a fixed height to my div. I changed the height to auto and it worked.


If threads are marked as solve, please mark this one as solved. Thanks-

Edited by skald89: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.