Advertisement
Guest User

spiritfarms

a guest
Oct 1st, 2012
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. Your CSS goes like this:
  2.  
  3. div.icons {
  4. width: 130px;
  5. height: 150px;
  6. float: left;
  7. margin: 0 10px 10px 0;
  8. background-color: #999;
  9. }
  10. div.icons img {
  11. margin: 10px 10px 10px 10px;
  12. border: 1px #777 solid;
  13. width: 100px;
  14. height: 100px;
  15. display: block;
  16. }
  17. div.icons p {
  18. margin: 0;
  19. padding: 0 20px 30px 10px;
  20. background-color: blue;
  21. color: yellow;
  22. }
  23.  
  24. Your HTML Code goes like this:
  25.  
  26. <div class="icons">
  27. <img src="http://www.spiritfarms.com/wp-content/uploads/2012/09/Com-Icon.png" alt="">
  28. <p>Your text goes here</p>
  29. </div>
  30. <div class="icons">
  31. <img src="http://www.spiritfarms.com/wp-content/uploads/2012/09/Display.png" alt="">
  32. <p>Your text goes here</p>
  33. </div>
  34. <div class="icons">
  35. <img src="http://www.spiritfarms.com/wp-content/uploads/2012/09/Chart-150x150.png" alt="">
  36. <p>Your text goes here</p>
  37. </div>
  38. <div class="icons">
  39. <img src="http://www.spiritfarms.com/wp-content/uploads/2012/09/Wrench.png" alt="">
  40. <p>Your text goes here</p>
  41. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement