Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   [SOLVED] classes work, but div's don't (http://forum.bytesforall.com/showthread.php?t=23302)

RHCdG Oct 12, 2015 04:24 PM

[SOLVED] classes work, but div's don't
 
Dear all,

I am using a class called "mysub-header" on my multisite installation with the following properties:

.mysub-header {
font-size: 14pt;
padding-top: 15pt;
padding-bottom: 10pt;
border-bottom: thin solid Silver;
}

This has been working for years. It works on the main site, see for example this page where it affects the sub-header "Over een uitspraak van Leo Trotski".

However, it does not work anymore on one of the other sites, e.g. on this page where the sub-header is "Over amateurs en professionals in de poëzie".

I noticed that classes in general still work, e.g. <p class="example"> and the problem is mostly with <div>.

Would you have any clue what's going on?

Thanks!

juggledad Oct 12, 2015 05:34 PM

If the CSS is in the CSS Inserts, what generally what that generally means is that you have a syntax error in a peice of the CSS that is before this CSS.

So go to your CSS Inserts and find that class, then scan thru the css before that to see if you can find the syntax error.

or you could move that css to teh top of the CSS inserts and see if it works. If it does, move is down half way and see if it works, if it does move it down again. If it doesn't move it up till it startes working and you will narrow in on the syntax error.

RHCdG Oct 12, 2015 05:46 PM

Thank you JD,
Upon reading your response, I actually got the idea to use an online CSS Validator, and it did point out an error in one of the classes. It's now fixed. Thanks!


All times are GMT -6. The time now is 04:13 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.