divider.mdx 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. ---
  2. title: Divider
  3. description: Dividers help organize content and make the interface layout clear and uncluttered. Greater clarity adds up to better user experience and enhanced interaction with a website or app.
  4. bootstrapLink: components/dropdowns/#dividers
  5. ---
  6. ## Default markup
  7. Use dividers to visually separate content into parts. You can use a line only or add text that will be centered by default.
  8. ```html code example
  9. <p>
  10. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias, dolore dolores doloribus est ex.
  11. </p>
  12. <div class="hr-text">See also</div>
  13. <p>
  14. Dicta error hic illo iure necessitatibus nihil officiis omnis perferendis, praesentium repellendus rerum, saepe sed, sit!
  15. </p>
  16. ```
  17. ## Text position
  18. You can modify the position of the text which is to be included in a separator and make it left- or right-aligned. Otherwise, the text will remain centered.
  19. ```html code example height="380px"
  20. <p>
  21. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias, dolore dolores doloribus est ex.
  22. </p>
  23. <div class="hr-text hr-text-left">Left divider</div>
  24. <p>
  25. Dicta error hic illo iure necessitatibus nihil officiis omnis perferendis, praesentium repellendus rerum, saepe sed, sit!
  26. </p>
  27. <div class="hr-text">Centered divider</div>
  28. <p>
  29. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias, dolore dolores doloribus est ex.
  30. </p>
  31. <div class="hr-text hr-text-right">Right divider</div>
  32. <p>
  33. Dicta error hic illo iure necessitatibus nihil officiis omnis perferendis, praesentium repellendus rerum, saepe sed, sit!
  34. </p>
  35. ```
  36. ## Divider color
  37. Customize the color of dividers to make them go well with your design. Click [here](colors) to see the list of available colors.
  38. ```html code example height="380px"
  39. <p>
  40. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias, dolore dolores doloribus est ex.
  41. </p>
  42. <div class="hr-text text-green">Green divider</div>
  43. <p>
  44. Dicta error hic illo iure necessitatibus nihil officiis omnis perferendis, praesentium repellendus rerum, saepe sed, sit!
  45. </p>
  46. <div class="hr-text text-red">Red divider</div>
  47. <p>
  48. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias, dolore dolores doloribus est ex.
  49. </p>
  50. <div class="hr-text text-primary">Primary divider</div>
  51. <p>
  52. Dicta error hic illo iure necessitatibus nihil officiis omnis perferendis, praesentium repellendus rerum, saepe sed, sit!
  53. </p>
  54. ```