Advertisement
Guest User

Untitled

a guest
Apr 24th, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.70 KB | None | 0 0
  1. <html>
  2. <head>
  3.     <style>
  4.         .imageContainer {
  5.             background-image:url('calenderPic.jpg');
  6.             background-position:center;
  7.             background-repeat:none;
  8.         }
  9.    
  10.         .textContainerWithinImage {
  11.             position:relative; /* relative to imageContainer */
  12.             margin:auto; /* *should* vertically/horizontally center your text */
  13.             color:white;
  14.             font-weight:bold; /* so text stands out */
  15.         }
  16.     </style>
  17.    
  18.     <script type="PsuedoJavaScript">
  19.         dateOfPost = functionToLoadPostData();
  20.         getElementById('textContainerWithinImage').innerHTML = dateOfPost;
  21.     </script>
  22. </head>
  23.  
  24. <body>
  25.     <div id="imageContainer">
  26.         <div id="textContainerWithinImage">Text will be shown on top of image.</div>
  27.     </div>
  28. </body>
  29.  
  30. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement