Home › Forums › CSS › partial text in a div hidden behind parent div › Re: partial text in a div hidden behind parent div
August 25, 2012 at 11:00 pm
#108469
Participant
This is a long string
.win{
position:relative;
width:700px;
height:100px;
margin-left: auto;
margin-right: auto;
background:#e20;
overflow: hidden; /* <-- add this */
}
.winText{
position: absolute; /* <-- change this */
top: 20px; /* <-- and this */
left: -40px; /* <-- and this too */
}