- This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
The question I have is that I have a box of text overlapped by its title, and I wish to hide the text that goes behind said title until it is scrolled down.
Basically, it looks like this:
http://i.imgur.com/yJWLrEZ.png
But I want something like this:
http://i.imgur.com/QA6DQDh.png
Is there a way to do this? Thanks in advance.
The code I’m using:
.text
{width: 480px;
height 195px;
background-color: #fafafa;
border: 2px solid #3D0909;
text-align: justify;
padding: 5px;
font-family: Arial;
font-size: 11px;
font-color: #000000;
overflow: auto;
}
position: relative;
z-index: 1;
will probably help, but I’d like to see a Codepen of your code first.
Totally did the trick. Thank you!
Aren’t those two images the same?
And we’d definitely need a demo to help further.