[personal profile] lauchlen posting in [community profile] style_system
Hello everyone,

I'm having a little bit of a problem with the horizontal rule (hr) in entries. Specifically, it shows up where I add the hr tag, but then it repeats twice at the bottom of the entry (below the tags and comment boxes). I've tried closing the tag, but that doesn't work - probably because hr doesn't need a close.

I've styled the hr in my css as follows:


hr{
border: 0;
width: 90%;
height: 1px;
margin-top:15px;
margin-bottom:0px;
background: #1f150e;
background-image: -webkit-linear-gradient(left, #e4c295, #1f150e, #e4c295);
background-image: -moz-linear-gradient(left, #e4c295, #1f150e, #e4c295);
background-image: -ms-linear-gradient(left, #e4c295, #1f150e, #e4c295);
background-image: -o-linear-gradient(left, #e4c295, #1f150e, #e4c295);
}

Is there something missing in my code? Something I need to add?

I've tried googling for a solution to the problem to no avail. Everything is about how to turn a repeating image into an hr.

Thanks in advance for any help!

ETA: The entry/journal having issues is here.

(The bulk of the css for my hr rule is from here.)

Date: 2015-03-17 05:13 am (UTC)
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
From: [personal profile] afuna
The two hr elements you're seeing at the bottom are available from the original layout. What I suggest is to style only the hr in your entry content by changing the selector hr to .entry-content hr.

Then if you want to do anything with the two hrs in the bottom, try: .entry .footer hr { /* your desired styling */ }

Date: 2015-03-17 03:06 pm (UTC)
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
From: [personal profile] afuna

You're very welcome!

Profile

Dreamwidth style system discussion

October 2025

S M T W T F S
   1 234
567891011
12131415161718
19202122232425
262728293031 

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 8th, 2026 11:35 am
Powered by Dreamwidth Studios