Adding Lines to Widget Title
-
The blog i need help with is http://www.thebraidedgirl.com
I want to add lines on either side of the widget title.
It would look something like this:
—— WIDGET TITLE ——The standard theme only comes with a line after the title – i want de line before and after the title. I would also like to change the color of the line. The color should be #F7AABE.
Thank you so much for your help – i appreciate!
The blog I need help with is: (visible only to logged in users)
-
Hi there, first off on all of your font-family declarations, replace the space between sans and serif with a dash since that is the actual font name (with the dash).
Next, change your .widget-title CSS rule to show what is below and then add the second and third rule to your custom CSS.
.widget-title { position: relative; display: inline-block; transform: translateX(-50%); margin-left: 50%; overflow: visible; text-indent: 0.35em; } .widget-title:before { position: absolute; box-sizing: content-box; display: block; content: "20"; padding: 0 0.5em; width: 100%; height: 100%; top: 0; left: -0.5em; background: white; z-index: -1; } .widget-title:after { border-color: #f7aabe; position: absolute; width: 100em; left: -50em; z-index: -2; } -
Oops, I forgot something on the first rule.
widget-title { position: relative; display: inline-block; transform: translateX(-50%); -webkit-transform: translateX(-50%); -moz-transform: translateX(-50%); margin-left: 50%; overflow: visible; text-indent: 0.35em; } -
-
-
- The topic ‘Adding Lines to Widget Title’ is closed to new replies.