Posted By

dottDesign on 07/28/11


Tagged

css textmate html


Versions (?)

Fullscreen Background (IE included)


 / Published in: Other
 

  1. .content {
  2. position: relative;
  3. width: 760px;
  4. z-index: 10;
  5. }
  6. .background {
  7. top: 0;
  8. left: 0;
  9. width: 100%;
  10. height: 100%;
  11. position: absolute;
  12. z-index:2;
  13. }
  14. .portrait {
  15. height: 100%;
  16. }
  17. .landscape {
  18. width: 100%;
  19. }
  20. .full {
  21. width: 100%;
  22. height: 100%;
  23. }
  24. <div class="content">
  25. <p>aaaaaaaaaaaaaaaaaaaaaaaaaaaa</p>
  26. </div>
  27. <div class="background">
  28. <img class="full | portrait | landscape" src="imgURL" alt="" />
  29. </div>

Report this snippet  

You need to login to post a comment.