Jump to content

Recommended Posts

Why does this doc declaration turn all my text white and how can I fix it? I know NOTHING about these declarations. I know ... that's blasphemy to say, but I don't. I know this isn't php, but please don't shoot me! I'm using PHP and this is messing up my layout.

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">

Link to comment
https://forums.phpfreaks.com/topic/172048-solved-please-dont-shoot-me/
Share on other sites

I can't be assed to check if that declaration is right, but there is less than a 1% chance that is your problem. Go make sure it's exact, or look through your code, the browser does NOT set text color based on declaration of doctype.

You're right and I'm an idiot! But we both already knew this because ... well ... there are just too many reasons to list. I found the problem. It just didn't appear until I put that code in, but you were right ... the problem was elsewhere.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.