Guest User

HTML & CSS

a guest
Nov 9th, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. CSS:
  2. #main {
  3. width: 0%;
  4. height: 100%;
  5. background-color: lightgreen;
  6. margin: 0;
  7. padding: 0;
  8. position: fixed;
  9. }
  10.  
  11. #sliderImage {
  12. position: relative;
  13. top: 20%;
  14. right: 50%;
  15. left: 0;
  16. width: 40%;
  17. background: red;
  18. margin: 0;
  19. }
  20.  
  21. #image1, #image2, #image3 {
  22. width: 40%;
  23. position: absolute;
  24. right: 0;
  25. }
  26.  
  27. #image2, #image3 {
  28. width: 10%;
  29. height: 300px;
  30. }
  31.  
  32. HTML:
  33. <div id="main">
  34. <div id="sliderImage">
  35. <img src="http://lorempixel.com/600/300/sports" alt="image 1" />
  36. <img src="http://lorempixel.com/600/300/sports" alt="image 2" id="image2"/>
  37. <img src="http://lorempixel.com/600/300/sports" alt="image 3" id="image3"/>
  38. </div>
  39. </div>
Add Comment
Please, Sign In to add comment