Advertisement
octomoosey

Crowned CSS

May 23rd, 2015
1,922
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. #lilboxposition {
  2. position:absolute;
  3. margin-top:50px; /* change the distance from the top of your page */
  4. right:20px; /* the distance from the right of the page, you can also change this to 'left' if you like to position the boxes - remember they will expand to the left! */
  5. background-color:transparent;
  6. z-index:9999;}
  7.  
  8. #lilbox{
  9. margin-bottom:10px;
  10. height:10px;
  11. border-left:10px solid #ED9600; /* change the color of the small boxes here - it's a good idea to match it to the border color in the next section */
  12. -webkit-transition: all 1s ease-in-out;
  13. -moz-transition: all 1s ease-in-out;
  14. -o-transition: all 1s ease-in-out;}
  15.  
  16. #boxcontent{
  17. text-align:center; /* change the text alignment in your boxes here, use left, right, center or justify! */
  18. margin-left:-10px;
  19. height:0px;
  20. width:0px;
  21. overflow:hidden;
  22. opacity:0;
  23. border-top:10px solid #ED9600; /* change the color of the expanded top border here */
  24. background-color: transparent;
  25. -webkit-transition: all 1s ease-in-out;
  26. -moz-transition: all 1s ease-in-out;
  27. -o-transition: all 1s ease-in-out;}
  28.  
  29. #lilbox:hover #boxcontent {
  30. text-align:center;
  31. color:#000; /* change the color of your box text here */
  32. font-size:10px; /* and the font size! */
  33. height:300px;
  34. width:150px;
  35. margin-left:-200px;
  36. opacity:1;
  37. padding:20px;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement