Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. +------------------------+
  2. |+-------+ ~~~~ TITLE| <--how can I stop the text wrapping up the
  3. || | ~~~~~~~~~~~~~ | left hand side here?
  4. || | ~~~~~~~~~~~~~ |
  5. || | ~~~~~~~~~~~~~ |
  6. || | ~~~~~~~~~~~~~ |
  7. |+-------+ ^ | Title Div (class="widgetHeader" in example)
  8. +---------------------|--+
  9. ^ |
  10. |
  11. Thermometer div
  12. (all good)
  13. "widgetContent" in example fiddle
  14.  
  15. +------------------------+
  16. |+-------+ TITLE|
  17. || | ~~~~~~~~~~~~~ |
  18. || | ~~~~~~~~~~~~~ |
  19. || | ~~~~~~~~~~~~~ |
  20. || | ~~~~~~~~~~~~~ |
  21. |+-------+ ~~~~~ |
  22. +------------------------+
  23.  
  24. .widgetHeader {
  25. padding-top:5%;
  26. float:right;
  27. margin-right:4px;
  28. font-weight:bold;
  29. text-decoration:underline;
  30. }
  31. .widgetContent {
  32. float:left;
  33. text-align:left;
  34. padding-top:20%;
  35. }
  36.  
  37. .widgetHeader {
  38. padding-top:5%;
  39. margin-right:4px;
  40. font-weight:bold;
  41. text-align:right;
  42. text-decoration:underline;
  43. }
  44.  
  45. .widgetHeader {
  46. text-align:right; <--- add this
  47. margin-right:4px;
  48. font-weight:bold;
  49. text-decoration:underline;
  50. }
  51.  
  52. .widgetHeader {
  53. display: block;
  54. text-align: right;
  55. padding-top:5%;
  56. margin-right:4px;
  57. font-weight:bold;
  58. text-decoration:underline;
  59. }
  60.  
  61. .widgetHeader {
  62. max-width: 150px;
  63. float: right;
  64. padding-top:5%;
  65. margin-right:4px;
  66. font-weight:bold;
  67. text-decoration:underline;
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement