Guest User

Untitled

a guest
Mar 20th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. <div class="content">
  2. <h1>heading 1</h1>
  3. <h2>heading 2</h2>
  4. <p>Some more or less text</p>
  5. <a href="/" class="button">Click me</a>
  6. </div>
  7.  
  8. -------------------
  9. |heading 1 |
  10. |heading 2 |
  11. |paragraph text |
  12. |can have many |
  13. |rows |
  14. | |
  15. | |
  16. | |
  17. |link-button |
  18. -------------------
  19.  
  20. .container {
  21. display: flex;
  22. }
  23.  
  24. .button {
  25. align-self: flex-end;
  26. }
  27.  
  28. .content {
  29. height: 400px;
  30. background: #000;
  31. color: #fff;
  32. }
  33. .button {
  34. transform: translateY(-100%);
  35. display: inline-block;
  36. }
  37.  
  38. .content{
  39. display: flex;
  40. justify-content: space-between;
  41. flex-direction: column;
  42. }
  43.  
  44. <div class="content">
  45. <div>
  46. <h1>heading 1</h1>
  47. <h2>heading 2</h2>
  48. <p>Some more or less text</p>
  49. </div>
  50.  
  51. <div>
  52. <a href="/" class="button">Click me</a>
  53. </div>
  54. </div>
  55.  
  56. -------------------
  57. |heading 1 |
  58. |heading 2 |
  59. |paragraph text |
  60. |can have many |
  61. |rows |
  62. | |
  63. | |
  64. | |
  65. |link-button |
  66. -------------------
  67.  
  68. .content{
  69. display: flex;
  70. flex-direction: column;
  71. }
  72. .content a{
  73. position: fixed;
  74. bottom: 0;
  75. }
Add Comment
Please, Sign In to add comment