![]() Some content text here with no break tag after it. Sure, the default styling of a horizontal rule gets the job done – but where’s the fun in that? Take a cue from the examples above and create something that compliments all of your great design work.There are several methods, if you want a horizontal "rule" under a paragraph, full paragraph width you can either: My text plus at least two break tags for padding See the Pen Zigzag Horizontal Rule by m0cha (Horizontally) Divide and Conquer Now, which character does it best represent? Let’s go with Bart’s hair. It’s a combination of two tags with angled CSS gradients. When viewing this zig-zag pattern, one conjures up images of cartoon characters. See the Pen 18 Simple Styles for Horizontal Rules (hr CSS Design) by Ibrahim Jabbari Charlie Brown’s Shirt or Bart Simpson’s Hair? by m0cha The effects are well-executed without going over the top with flashy features. This collection of 18 simple styles is for you. Perhaps you’d like your dividers to look nice without distracting from the rest of your content. See the Pen Accessible Medium Style Dividers by Zoë Bijl Decorative & Minimal HR Designs by Ibrahim Jabbari It not only offers a cool Medium-style aesthetic, but it’s friendly to screen readers as well. This snippet is different, as it utilizes content from tags. It often involves techniques that aren’t very accessible. Placing text inside a horizontal rule can be tricky. See the Pen Some HR Styles by Mark Murray Medium Style with Accessibility by Zoë Bijl Examples include the usage of symbols, centered text, colors and border patterns. This snippet offers nine interesting horizontal rules that can fit a variety of styles and use cases. See the Pen Accordion Effect with Horizontal Rules by Will Boyd Simple HR Style Variations by Mark Murray A rare instance of the good old being used for functional purposes. ![]() This pure CSS take on the feature includes horizontal rules as part of the user interface. See the Pen Fancy Horizontal Rules by szpakoli Accordion Rules by Will BoydĪccordions have become one of the more popular UI elements due to their penchant for being space savers. Combined with the rule’s short width and bright color, it helps readers delineate one section of content from another. A standard horizontal rule is enhanced with shapes (circle, diamond, star, etc.) and provides for an attractive visual. Here’s proof that subtlety can still stand out. See the Pen Inline horizontal rule by Ohad Iconic HR Shapes by szpakoli It’s also delightfully simple in terms of code. Text or other design elements can be placed inline with the divider, making for an attention-grabbing effect. While this snippet doesn’t use an actual horizontal rule, it simulates the effect with CSS. See the Pen A Horizontal rule-er by John W Inline Lines by Ohad It features a large conglomerate of tags (100 in all) that are styled to simulate the look of a ruler. This example is incredibly clever, if a bit on the extreme side. If you’re looking to take your HR up to the next level, you’ll want to check out this collection of fanciful dividers that go beyond the default. They can also be used as an enhanced branding mechanism, complete with color and logo elements in tow. Horizontal rules can be quite decorative, whether you prefer a bold or subtle design. It’s easy to simply place them within our content without any attention to detail.īut this venerable HTML tag is capable of doing so much more – thanks to some clever CSS. The horizontal rule ( hr) is one of them. Some design elements are so common that they almost become afterthoughts.
0 Comments
Leave a Reply. |