![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[community profile]](https://www.dreamwidth.org/img/silk/identity/community.png)
I sometimes post a line (code is <hr>) in my entries to seperate topics and I noticed that the line doesn't spread out over the entire lenght of my entry holder, like it should and does in some of my friend's posts. I don't know if that's due to some code in my CSS or if there's another reason for this. However, I would like to change it. Does anybody know how?
P.S. I don't have an example image, but I can make one if necessary. Thanks in advance!
P.S. I don't have an example image, but I can make one if necessary. Thanks in advance!
Tags:
no subject
Date: 2011-05-17 03:26 pm (UTC).entry-content hr,
.comment-content hr {
display: block;
margin: 1em 10%;
}
You can input the edited css here: http://www.dreamwidth.org/customize/options?group=customcss - I assume this would work:
.entry-content hr,
.comment-content hr {
margin: 0;
}
I'm not actually sure what
display: block
does for a horizontal line, but I'm sure someone else does.no subject
Date: 2011-05-17 03:31 pm (UTC)no subject
Date: 2011-05-17 04:01 pm (UTC)no subject
Date: 2011-05-17 04:28 pm (UTC)no subject
Date: 2011-05-17 06:27 pm (UTC)At any rate, I was unable to persuade an hr element to allow any content to its left or right by putting { display:inline; } in its styling, but that may be peculiar to IE7. I'll try later when I have access to Chrome.
no subject
Date: 2011-05-17 06:56 pm (UTC)no subject
Date: 2011-05-17 07:37 pm (UTC)no subject
Date: 2011-05-17 06:33 pm (UTC)display: inline-block
, which makes it horizontal, but inline. So it ... may have been doing something at some point to explicitly declaredisplay: block
, but who knows.no subject
Date: 2011-05-28 12:55 am (UTC)My guess: it separates it presentation-wise from the rest of the style elements. So it doesn't wrap into sentences above and below it, for example. And so you can set margins for it so it won't hang right under the last sentence and right over the next one (because the point of hr is to put lots of space between your last set of thoughts and your next, within one post - to change the subject entirely, in other words).