MyBB Community Forums

Full Version: theme XHTML and CSS validation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm validating my theme with the W3C validator and I only have one error left in the XHTML part:
Character Encoding mismatch!

Quote:The character encoding specified in the HTTP header (iso-8859-1) is different from the value in the <meta> element (utf-8). I will use the value from the HTTP header (iso-8859-1) for this validation.

Is this something I did or is it myBB standard?

My CSS is valid, but I get a lot of warning, does anybody know what I did wrong?
http://jigsaw.w3.org/css-validator/valid...medium=all
nobody?
Sorry for bumping, but i'm kinda stuck right now.
Could you try this? Smile
Add:
header("Content-type: text/html; charset={$lang->settings['charset']}");
above:
echo $contents;
Inside inc/functions.php Smile

xiao Wrote:My CSS is valid, but I get a lot of warning, does anybody know what I did wrong?
http://jigsaw.w3.org/css-validator/valid...medium=all
Did you even read the warnings? It says it clearly there that you have the same color in both the color attribute and background-color (You won't see the text then)
Yup, that fixed the encoding error Smile
But what's the difference between that and the header_includes?
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
Quote:Did you even read the warnings? It says it clearly there that you have the same color in both the color attribute and background-color (You won't see the text then)

Yes, I did.
But I don't see how for example .quote_header and .thead a:link having the same color and background color would be a problem.
The easiest way to fix it would be by changing the thead text, but I need that white.
xiao Wrote:Yup, that fixed the encoding error Smile
But what's the difference between that and the header_includes?
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
Because meta is handled user side. header is handled serverside. So if the server sends out iso and the header is utf-8 it will throw an error.
This should be fixed in the source.
xiao Wrote:Yes, I did.
But I don't see how for example .quote_header and .thead a:link having the same color and background color would be a problem.
The easiest way to fix it would be by changing the thead text, but I need that white.
Change the background to black or something then. As it won't show as you have an image as background.
You won't have any problems with it as you have it now but the problem is CSS is strict and will throw warnings if you have it like that.
But right now the background is blue, made it like this so it doesn't jump from one color to another when loading takes long.
But I think the validator is aiming at the .quote_header's white background and the .thead's white text. Is that possible?
And I can't really change the background of the quote's. Although I could try something 99.9% white or something...