Advertisement
Guest User

Untitled

a guest
Sep 17th, 2014
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. <html>
  2. <head>
  3. <meta charset="utf-8">
  4. <title>JS Bin</title>
  5. </head>
  6. <body>
  7.  
  8. <div class="row-Item">
  9. <div class="left-column">
  10. <div class="left-column-padding">
  11. <div class="warpper">
  12. <div class="text-container">
  13. Some Title Here<br>
  14. May be multi-line
  15. </div>
  16. <div class="img-container">
  17. <img src= "http://static.jsbin.com/images/jsbin_static.png">
  18. </div>
  19. </div>
  20. </div>
  21. </div>
  22. <div class="right-column">
  23. <div class="right-column-padding">
  24. Content text go heres. Content text go heres. Content text go heres. Content text go heres. Content text go heres. Content text go heres.
  25. <ul>
  26. <li>some list item..</li>
  27. <li>some list item..</li>
  28. <li>some list item..</li>
  29. <li>some list item..</li>
  30. </ul>
  31. Content text go heres. Content text go heres. Content text go heres.Content text go heres. Content text go heres. Content text go heres.Content text go heres. Content text go heres. Content text go heres.Content text go heres. Content text go heres. Content text go heres. Content text go heres. Content text go heres. Content text go heres.
  32. </div>
  33. </div>
  34.  
  35. </body>
  36. </html>
  37.  
  38. .row-Item{
  39. border: 3px solid #F9BE00;
  40. position: relative;
  41. }
  42.  
  43. .left-column{
  44. position: absolute;
  45. width:200px;
  46. background : #F9BE00;
  47. top: 0;
  48. left: 0;
  49. bottom: 0;
  50. }
  51.  
  52. .right-column{
  53. margin-left:200px;
  54. vertical-align: middle;
  55. background: #FEF2CC;
  56. }
  57.  
  58. .warpper{
  59. display:table;
  60. min-height: 100%;
  61. }
  62.  
  63. .left-column .text-container{
  64. display:table-row;
  65. height:1px;
  66. font-size:20px;
  67. font-weight:bold;
  68. }
  69.  
  70. .left-column .img-container{
  71. display:table-row;
  72. height:100%;
  73. text-align:center;
  74. }
  75.  
  76. .left-column .img-container:before{
  77. content: ' ';
  78. display: inline-block;
  79. vertical-align: middle;
  80. height: 100%;
  81. }
  82.  
  83. .left-column .img-container img{
  84. max-width:170px;
  85. vertical-align: middle;
  86. }
  87.  
  88. .left-column-padding,
  89. .right-column-padding{
  90. padding:15px;
  91. height:100%;
  92. box-sizing:border-box;
  93. position:relative;
  94. overflow:hidden;
  95. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement