I have run across an error with this xhtml, and I was wondering, how can I replace <div align="center"> with CSS, or so it will be xhtml strict??

Also, this next bit is specifically for Kerm, since it is the code for the BE...


Quote:
Warning Line 20 column 156: cannot generate system identifier for general entity "hash".
...icelite/certified.php?user=tifreak8x&hash=670f1a90a89a4da3472403fd463f2cd2" b
An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (Wink. The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".

Entity references start with an ampersand (&) and end with a semicolon (Wink. If you want to use a literal ampersand in your document you must encode it as "&amp;" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and &aelig; are different characters.

If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem.

Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed.



Error Line 20 column 156: general entity "hash" not defined and no default entity.
...icelite/certified.php?user=tifreak8x&hash=670f1a90a89a4da3472403fd463f2cd2" b
This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.



Warning Line 20 column 160: reference not terminated by REFC delimiter.
...ite/certified.php?user=tifreak8x&hash=670f1a90a89a4da3472403fd463f2cd2" borde
If you meant to include an entity that starts with "&", then you should terminate it with ";". Another reason for this error message is that you inadvertently created an entity by failing to escape an "&" character just before this text.



Warning Line 20 column 160: reference to external entity in attribute value.
...ite/certified.php?user=tifreak8x&hash=670f1a90a89a4da3472403fd463f2cd2" borde
This is generally the sign of an ampersand that was not properly escaped for inclusion in an attribute, in a href for example. You will need to escape all instances of '&' into '&amp;'.



Error Line 20 column 160: reference to entity "hash" for which no system identifier could be generated.
...ite/certified.php?user=tifreak8x&hash=670f1a90a89a4da3472403fd463f2cd2" borde
This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.



Info Line 20 column 155: entity was defined here.
...sicelite/certified.php?user=tifreak8x&hash=670f1a90a89a4da3472403fd463f2cd2"

Code:

div { text-align: center }


Replace "div" with whatever selector you want.
Surprisingly, I found that only IE takes this correctly. It will center anything within it. FF only centers text (not other divs, tables, etc.). I don't know if it's supposed to only do text, but if it is, then there needs to be an align: attribute in CSS...
Very Happy It pretty much explains it right there... you need to use:
<img src="http://www.cemetech.net/img/projects/basicelite/certified.php?user=tifreak8x&amp;hash=670f1a90a89a4da3472403fd463f2cd2" border="0">

In XHMTL strict, any time you have a character such as an ampersand in a URL, you need to use entities link &amp; , otherwise it gets confused.
That's still improper: no alt, border isn't allowed, and the tag isn't closed. Wink
<img src="http://www.cemetech.net/img/projects/basicelite/certified.php?user=tifreak8x&amp;hash=670f1a90a89a4da3472403fd463f2cd2" border="0" alt="The BASIC Elite" />
Nope, border isn't a valid attribute. Try style="border-width:0px;".
Are you sure? I've been able to use border in XHTML strict before, if I remember correctly. I might not be remembering correctly, though.
Confused Are you sleep-deprived right now?
Let me try what he has, we shall see what it is.
The "border" isn't a valid attribute in XHTML Strict. jpez is right.
well, whether it is or isn't, it accepted it. That lil snippet of Code alone removed 3 errors...
jpez wrote:
Confused Are you sleep-deprived right now?
No, why do you ask? That post seemed completely coherent to me.
Just because the browser display's it right doesn't mean anything. Fix it so it is valid XHTML strict or don't use XHTML strict.
Kllrnohj wrote:
Just because the browser display's it right doesn't mean anything. Fix it so it is valid XHTML strict or don't use XHTML strict.
He meant that it passed W3C's validator with no problems, if I understood him correctly.
KermMartian wrote:
Kllrnohj wrote:
Just because the browser display's it right doesn't mean anything. Fix it so it is valid XHTML strict or don't use XHTML strict.
He meant that it passed W3C's validator with no problems, if I understood him correctly.


I think Kllrnohj was refering to:

Kirb wrote:

Surprisingly, I found that only IE takes this correctly. It will center anything within it. FF only centers text (not other divs, tables, etc.). I don't know if it's supposed to only do text, but if it is, then there needs to be an align: attribute in CSS...


I don't think he meant that it passed with W3C's validator with no pronlems. I also agree with Kllrnohj.
hah no jpez is right
ive been doing way to much of this before i started using php for my site
but even so it runs the css and stuff
What? I think you were trying to say that you have PHP generating your CSS stylesheet, which is incredibly inefficient.
KermMartian wrote:
What? I think you were trying to say that you have PHP generating your CSS stylesheet, which is incredibly inefficient.


hah what no i was saying even tho my site runs on php now i know how to code this stuff. the way i work my site now is w/ 1 stylesheet and the whole page is compiled on the browser using php. The sidebars and middle content is generated from other files so its easy to update, but serch engines hate that stuff lol
Noooo ... there's nothing wrong with having areas of your site generated by Javascript or PHP. Google can still find the other pages in your site via such methods.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 2
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement