Tuesday, December 23, 2014

Text overlaying image inside a div with a background image.

<style type="text/css">

section {
   background: url("http://subtlepatterns.com/patterns/symphony.png") repeat;
   height: 1000px;
   position: relative;
}
div.block {
   position: absolute;
   padding: 10px;
}
img {
   position: absolute;
   top: 0;
   width: 100%;
}

</style>

<section>
    <img src="http://img2.tvtome.com/i/u/ac51b5ad45b24475c4667f74aefdc9a5.png">
    <div class="block">
        Video provides a powerful way to help you prove your point. When you click Online Video, you can paste in the embed code for the video you want to add. You can also type a keyword to search online for the video that best fits your document.To make your document look professionally produced, Word provides header, footer, cover page, and text box designs that complement each other. For example, you can add a matching cover page, header, and sidebar. Click Insert and then choose the elements you want from the different galleries.
    </div>
</section>


Output :)


No comments:

Post a Comment