Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   [SOLVED] W3C and CSS font-weight property (http://forum.bytesforall.com/showthread.php?t=8871)

Jazoja Aug 12, 2010 03:12 PM

[SOLVED] W3C and CSS font-weight property
 
I am using atahualpa 3.5.3
I have just finished making my site w3c valid (LOL), and I found some strange things.
Becouse of W3C CSS validator I commented some lines to "make" it valid. Then I realized, that there are other font-weight lines that it accepted without errors.

css.php line 631-650 looks as follows:

Code:

div.widget ul li a:active {
        text-decoration: none;
        /*font-weight: normal;*/
        color: #<?php echo $bfa_ata['widget_lists']['link-color']; ?>;
        /*font-weight: <?php echo $bfa_ata['widget_lists']['link-weight']; ?>;*/
        }

div.widget ul li ul li a:link,
div.widget ul li ul li a:visited,
div.widget ul li ul li a:active {
        color: #<?php echo $bfa_ata['widget_lists2']['link-color']; ?>;
        /*font-weight: <?php echo $bfa_ata['widget_lists2']['link-weight']; ?>;*/
        }

div.widget ul li ul li ul li a:link,
div.widget ul li ul li ul li a:visited,
div.widget ul li ul li ul li a:active {
        color: #<?php echo $bfa_ata['widget_lists3']['link-color']; ?>;
        /*font-weight: <?php echo $bfa_ata['widget_lists3']['link-weight']; ?>;*/
        }

line 251-256:

Code:

h2.blogtitle a:hover {
    text-decoration: none;
        color: #<?php echo $bfa_ata['blog_title_color_hover']; ?>;
        font-weight: <?php echo $bfa_ata['blog_title_weight']; ?>;
        }

lines 1554-1559:

Code:

p.giTitle {
margin: 0.3em 0 !important;
font-size: 1em;
font-weight: normal;
color: #666;
}

Looking these lines I couldn't figure out what the problem was.

Dark_Fox Aug 13, 2010 04:54 AM

Try putting the entire file with the code which fails validation into the page below for direct validation.

http://validator.w3.org/#validate_by_input

Strange that your site should fail validation, i'm testing a site using the latest version of the theme and it passes validation, are you sure its not a plugin causing your failure since some plugins do fail and i tend to avoid those ones.

Jazoja Aug 13, 2010 07:02 AM

Becouse it is a php file, it is a bit harder to copy-paste those small codes, but those lines are shown valid.
How did you manage to accept w3c those -moz/-webkit/etc. lines?

Jazoja Aug 13, 2010 07:29 AM

I put on a fresh wp 3.0.1 and an atahualpa 3.5.3

W3C CSS3 validation of jazoja.dyndns.info

42 errors and the first is the word-wrap I was talkin' about.
No plugins or anything installed.

lmilesw Aug 13, 2010 07:58 AM

Please read this thread on W3C validaton.

Jazoja Aug 13, 2010 12:26 PM

Sorry, the original error was not with word-wrap:normal but with font-weight:normal. Now it is gone and I don't know why. The validator showed the error in css.php and gone after I commented it out.

But I think that I found some real error. In CSS insert there is a line:
Code:

ul.rMenu-ver li { margin-top: 0xp; }
where xp should be replaced to px.

Next I don't know what to do with this. (now I deleted the entire code, becouse it is an IE6 fix)
* html div#wrapper Parse Error {<!--width:expression"95%");
* html div#wrapper Parse Error -->}

And the error
div#container 0 is not a box-shadow value : 0 0 15px #333 0 0 15px #333
which comes from Style & configure LAYOUT
can be eliminated by putting px-es after the zeros.


All times are GMT -6. The time now is 04:47 AM.

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