Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1.  
  2. +---------------+ +------------------------/
  3. | float: left; | | float: right;
  4. | | | /
  5. | | |content stretching Screen Edge
  6. | | |the div off the screen / <---
  7. +---------------+ +------------------------
  8. /
  9.  
  10. .minwidth { min-width:100px; width: auto !important; width: 100px; }
  11.  
  12. .parent {
  13. white-space: nowrap;
  14. }
  15.  
  16. .child {
  17. display:inline-block;
  18. width:300px;
  19. white-space: normal;
  20. }
  21.  
  22. .floated {
  23. float: left;
  24. ...
  25. box-sizing: border-box;
  26. }
  27.  
  28. <div class="floatNoWrap">
  29. <div id="A" style="float: left;">
  30. Content A
  31. </div>
  32. <div id="B" style="float: left;">
  33. Content B
  34. </div>
  35. <div style="clear: both;"></div>
  36. </div>
  37.  
  38. .floatNoWrap
  39. {
  40. width: 100%;
  41. height: 100%;
  42. }
  43.  
  44. $("[class~='floatNoWrap']").each(function () {
  45. $(this).css("width", $(this).outerWidth());
  46. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement