Archived topic
Customize Sidebar with red line
3 replies · Started by Jöran on May 11, 2021
Viewing posts 1–4 of 4
Hi,
i would like to beautify my sidebar a little with color. Here is my question.
I would like to have a red line in the header of the widget area. The headline should be between the line, like this:
------ Headline --------- (with solid line)
How could I implement this?
Thank You!
Hi there,
try adding this CSS:
h2.widget-title {
display: flex;
align-items: center;
}
h2.widget-title:before,
h2.widget-title:after {
content: '';
display: block;
flex: 1;
margin: 0 5px;
height: 2px; /* set thickness */
background-color: #f00; /* set color */
}
Thank You David.
It works fine =).
Glad to hear that
This archived topic is closed to new replies.