...

View Full Version : mysterious line above headings



sixrfan
08-02-2011, 02:07 AM
how come the little line shows above the page titles here (http://unityquestdesigns.com/wordpress/general-services/) and here (http://unityquestdesigns.com/wordpress/about-us/) but not on any of the other pages of the site?

please advise. thanks in advance.

Sammy12
08-02-2011, 03:08 AM
http://i1114.photobucket.com/albums/k535/auroralight1/Untitled-52.png

sixrfan
08-02-2011, 01:24 PM
i dont understand what HTML item that CSS is attached to. when i do a search of the source code, i dont see anything that says
.wp-caption-text::before

please advise.

Rowsdower!
08-02-2011, 01:47 PM
It's in the CSS file located at this URL:
http://unityquestdesigns.com/wordpress/wp-content/themes/twentyeleven/style.css

Check lines 867-877:

.wp-caption .wp-caption-text:before {
color: #666;
content: '\2014';
font-size: 14px;
font-style: normal;
font-weight: bold;
margin-right: 5px;
position: absolute;
left: 10px;
top: 7px;
}

sixrfan
08-02-2011, 02:09 PM
i understand that the CSS code is in the CSS file, but what HTML element is it hooked on to? i don't see anything with this class (.wp-caption .wp-caption-text:before).

Rowsdower!
08-02-2011, 02:22 PM
On the general services page, this is one culprit:

<p class="wp-caption-text">Photography</p>

But if you get rid of that one there are still two more (set design and lighting blueprint).

Similar story on the other page. Just look at any of your image captions. They are going to be the offenders.

Note that the :before part is a pseudoclass for CSS. You will never actually see the :before part in the HTML, just as you do not see a :hover part for any links. The :before part just tells the CSS to make the styles appear BEFORE the matching element.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum