Αποτελέσματα Αναζήτησης
Learn how to style an hr element with CSS. How To Style HR. Horizontal Line. You can use the border property to style a hr element: Example. /* Red border */ hr.new1 { border-top: 1px solid red; } /* Dashed red border */ hr.new2 { border-top: 1px dashed red; } /* Dotted red border */ hr.new3 { border-top: 1px dotted red; } /* Thick red border */
- Tryit Editor V3.6
The W3Schools online code editor allows you to edit code and...
- Circles
Well organized and easy to understand Web building tutorials...
- Tryit Editor V3.6
Collection of free HTML and CSS <hr> code examples. Update of August 2018 collection. 6 new items.
CSS. body { background-color: #f0f0f0; width: 700px; float: center; } hr.style1 { border-top: 1px solid #8c8b8b; } hr.style2 { border-top: 3px double #8c8b8b; } hr.style3 { border-top: 1px dashed #8c8b8b; } hr.style4 { border-top: 1px dotted #8c8b8b; } hr.style5 { background-color: #fff; border-top: 2px dashed #8c8b8b; } hr.style6 ...
The <hr> tag defines a thematic break in an HTML page (e.g. a shift of topic). The <hr> element is most often displayed as a horizontal rule that is used to separate content (or define a change) in an HTML page.
hr { background-color: #fff; padding: 0; margin: 80px; } hr.hr-1 { border: 0; height: 1px; background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0)); } hr.hr-2 { border: 0; border-bottom: 2px dashed #eee; background: #999; } hr.hr-3 { border: 0; height: 0; border-top: 1px solid #8c8c8c; } hr.hr-4 ...
16 Ιουλ 2020 · In these examples I played around with the “border” attribute and experimented with different colors, thickness, and styles for the borders. Here is the CSS code I used to style each one of those HR’s in turn.
16 Σεπ 2024 · Instead of a solid line, you can make the <hr> look dotted or dashed by applying a border style. CSS Example: hr {border: none; border-top: 2px dashed #ccc; /* Dashed or dotted line */...