Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. <div id="main">
  2. <div class="comments-comments">
  3. <div id="comment-1">
  4. <ul>
  5. <li>
  6. <div class="user-img-sub"><img class="user-avatar-sub"
  7. src="http://wallpapers.wallhaven.cc/wallpapers/full/wallhaven-17.jpg"/>
  8. </div>
  9. </li>
  10. <li>
  11. <div class="user-name-sub"><a href="">John Doe</a></div>
  12.  
  13. </li>
  14. <li id="comment-1-itself">Hello Stackoverflow! I hope I can get an answer for this question! As you can
  15. see, starting from the third
  16. line, I am experiencing this flow issue with CSS.
  17. </li>
  18.  
  19. </ul>
  20. </div>
  21. </div>
  22. </div>
  23.  
  24. #main {
  25. width: 400px;
  26. min-height: 200px;
  27. border: 1px solid black;
  28. margin: 0 auto;
  29. margin-top: 100px;
  30. overflow: hidden;
  31. position: relative;
  32. border-radius: 3px;
  33. }
  34.  
  35. .comments-comments {
  36. width: 100%;
  37. border: 1px solid black;
  38. min-height: 50px;
  39. padding: 5px 0 20px 10px;
  40. }
  41.  
  42. #comment-1 ul {
  43. margin: 5px 5px 0 5px;
  44. padding: 0;
  45. }
  46.  
  47. #comment-1 ul li {
  48. list-style-type: none;
  49. display: inline;
  50. }
  51.  
  52. .user-avatar-sub {
  53. width: 24px;
  54. height: 24px;
  55. border-radius: 3px;
  56. float: left;
  57. }
  58.  
  59. .user-name-sub {
  60. float: left;
  61. margin: 0 0 0 3px;
  62. font-size: 14px;
  63. }
  64.  
  65. #comment-1-itself {
  66. margin-left: 3px;
  67. padding: 0;
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement