This is my code http://jsfiddle.net/noppanit/8D7QN/
As you can already see that the text overflows out of the container, I tried putting overflow:hidden into the text already but it didn’t work. I understand that because it’s absolute position, so technically it’s out of the container. But I’m not sure how to fix this. The text has to be on top of the image that’s why I make it absolute position.
If you guys could shed some light to me, that’s be awesome. I’m very new at CSS.
Problem courtesy of: toy
Solution courtesy of: 0b10011
You assume that it is overflowing out of the container. It is not. The container has a background that is not repeated and is smaller than the container. The container has no
css and thus sizes to the content.
Discussion courtesy of: DMoses
I would do something like this:
Discussion courtesy of: Sammy
This recipe can be found in it’s original form on Stack Over Flow