I want to create a div which contains an image and text on it. Something similar to http://wearyoubelong.com/ How do I go about doing this? I am using Zerb Foundation Framework. As of now I have tried using position : absolute on the text, but that seems to break at a lot of places. Can you please advice me on how to go about this?
Share
Let say you have a sample HTML like this
HTML
CSS
Just gave the main
div#containerabackground-image, positioneddiv#contenttoabsoluteand then usingtopandleftproperty float it according to your needs.Live Demo
Hope this helps.
Edited to set #container div’s height and width to auto
Updated Demo