Note that there are some explanatory texts on larger screens.

plurals
  1. POWay to Fix Lines behind title when Title is Two Lines Long
    primarykey
    data
    text
    <p>My CSS is set up so that my post titles have two red lines behind the text (the line disappears behind the text). The effect works fine when the title is one line, but when it goes onto a second line, the effect goes kind of wonky. You can check it out here:</p> <p><a href="http://onedirectionconnection.com/2013/08/one-direction-win-song-of-the-summer/" rel="nofollow">http://onedirectionconnection.com/2013/08/one-direction-win-song-of-the-summer/</a></p> <p>I just want the lines in the back to move to the middle of the div and just display at the ends of the longest line of the title (like it does on the left in the page above).</p> <p>If anyone could help me figure out how to fix this issue, it would be greatly appreciated. I've made a jsfiddle to help here: <a href="http://jsfiddle.net/tC99W/" rel="nofollow">http://jsfiddle.net/tC99W/</a></p> <p>Here's my CSS:</p> <pre><code>.section-title{ font-family: 'Arvo', serif; position: relative; font-size: 25px; z-index: 1; overflow: hidden; text-transform: uppercase; text-align: center; text-shadow: #FFF 1px 1px,#ccc 2px 2px; background-color: #fff; } .section-title:before, .section-title:after { position: absolute; top: 40%; overflow: hidden; width: 50%; height: 4px; content: '\a0'; border-bottom: 3px solid #DA5969; border-top: 1px solid #DA5969; box-sizing: content-box; /* + vendor specific versions here */ } .section-title:before { margin-left: -52%; text-align: right; } .section-title:after { margin-left:2%; text-align:left; } </code></pre> <p>HTML:</p> <pre><code>&lt;h1 class="section-title"&gt;The Title Goes Here&lt;/h1&gt; </code></pre> <p>Thanks for your help in advance!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload